Bug 1367375 - Service storaged should be stopped during uninstallation process
Summary: Service storaged should be stopped during uninstallation process
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat
Component: distribution
Version: 2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3
Assignee: Nishanth Thomas
QA Contact: sds-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-16 09:51 UTC by Daniel Horák
Modified: 2017-03-23 04:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-23 04:03:29 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Daniel Horák 2016-08-16 09:51:03 UTC
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:

Comment 1 Daniel Horák 2016-08-16 13:29:24 UTC
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
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Note You need to log in before you can comment on or make changes to this bug.