Bug 1093168 - pacemaker: using service template in preun/postun
pacemaker: using service template in preun/postun
Status: RESOLVED WONTFIX
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: High Availability
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: SUSE Linux Enterprise High Availability Team
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-14 15:46 UTC by Ruediger Oertel
Modified: 2022-09-19 08:59 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruediger Oertel 2018-05-14 15:46:28 UTC
you can not used a service template (foo@.service) without parameter
in a specfile with the %service_add/del macros:

%preun cts
%service_del_preun pacemaker-cts-dummyd@.service

%postun cts
%service_del_postun pacemaker-cts-dummyd@.service


this will just result in errors during uninstall
of the package:
(1/1) Removing pacemaker-cts-1.1.18+20180430.b12c320f5-1.4.noarch ........[done]
Additional rpm output:
Failed to stop pacemaker-cts-dummyd@.service: Unit name pacemaker-cts-dummyd@.service is missing the instance name.
See system logs and 'systemctl status pacemaker-cts-dummyd@.service' for details.
Failed to get load state of pacemaker-cts-dummyd@.service: Unit name pacemaker-cts-dummyd@.service is neither a valid invocation ID nor unit name.
Comment 1 Stefano Torresi 2021-05-12 17:46:58 UTC
closing due to inactivity and/or age.