Hide Forgot
Description of problem: Service storaged remains running, when rhscon-core is uninstalled. Version-Release number of selected component (if applicable): storaged-2.2.0-3.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Install rhscon-core with all required dependences. # yum install collectd collectd-debuginfo collectd-ping liboping liboping-debuginfo libstoraged openpgm openpgm-debuginfo python-cpopen python-cpopen-debuginfo python-crypto python-crypto-debuginfo python-daemon python-lockfile python-msgpack python-msgpack-debuginfo python-zmq python-zmq-debuginfo rhscon-agent rhscon-core-selinux salt salt-minion salt-selinux storaged storaged-debuginfo storaged-lvm2 zeromq3 zeromq3-debuginfo 2. Start storaged service and check if it is running. # systemctl start storaged # systemctl status storaged 3. Uninstall rhscon-core package (and all other previously installed packages). # yum remove collectd collectd-debuginfo collectd-ping liboping liboping-debuginfo libstoraged openpgm openpgm-debuginfo python-cpopen python-cpopen-debuginfo python-crypto python-crypto-debuginfo python-daemon python-lockfile python-msgpack python-msgpack-debuginfo python-zmq python-zmq-debuginfo rhscon-agent rhscon-core-selinux salt salt-minion salt-selinux storaged storaged-debuginfo storaged-lvm2 zeromq3 zeromq3-debuginfo 4. Check the status of storaged service # systemctl status storaged Actual results: # systemctl status storaged ● storaged.service Loaded: not-found (Reason: No such file or directory) Active: active (running) since Tue 2016-08-16 10:04:37 CEST; 1h 45min ago Main PID: 10673 (storaged) CGroup: /system.slice/storaged.service └─10673 /usr/libexec/storaged/storaged --no-debug Aug 16 10:04:37 dhcp-126-125.lab.eng.brq.redhat.com systemd[1]: Starting Storaged... Aug 16 10:04:37 dhcp-126-125.lab.eng.brq.redhat.com storaged[10673]: storaged daemon version 2.2.0 starting Aug 16 10:04:37 dhcp-126-125.lab.eng.brq.redhat.com systemd[1]: Started Storaged. Aug 16 10:04:37 dhcp-126-125.lab.eng.brq.redhat.com storaged[10673]: Acquired the name org.storaged.Storaged on the system message bus Aug 16 10:04:37 dhcp-126-125.lab.eng.brq.redhat.com storaged[10673]: Loading module libstoraged_lvm2.so... Expected results: Service storaged should be stopped during uninstallation process. Additional info:
Just for inspiration, this is "PREUN" script from httpd package: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if [ $1 -eq 0 ] ; then # Package removal, not upgrade systemctl --no-reload disable httpd.service htcacheclean.service > /dev/null 2>&1 || : systemctl stop httpd.service htcacheclean.service > /dev/null 2>&1 || : fi ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~