Bug 2048018 - Failed to stop iscsi-shutdown.service on uninstall
Summary: Failed to stop iscsi-shutdown.service on uninstall
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Chris Leech
QA Contact: Martin Hoyer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-29 04:19 UTC by Jiri Jaburek
Modified: 2023-07-29 07:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-29 07:28:06 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-110273 0 None None None 2022-01-29 04:27:36 UTC

Description Jiri Jaburek 2022-01-29 04:19:49 UTC
Description of problem:

When removing the iscsi-initiator-utils package, I see this error message:

Running transaction
  Preparing        :                                                        1/1 
  Running scriptlet: iscsi-initiator-utils-6.2.1.4-2.git2a8f9d8.el9.x86_6   1/2 
Removed /etc/systemd/system/sockets.target.wants/iscsid.socket.
Removed /etc/systemd/system/sysinit.target.wants/iscsi-onboot.service.
Removed /etc/systemd/system/remote-fs.target.wants/iscsi.service.
Failed to stop iscsi-shutdown.service: Operation refused, unit iscsi-shutdown.service may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status iscsi-shutdown.service' for details.


This is likely caused by

preuninstall scriptlet (using /bin/sh):
 
if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then 
    # Package removal, not upgrade 
    if [ -d /run/systemd/system ]; then 
          /usr/bin/systemctl --no-reload disable --now iscsi.service iscsid.service iscsid.socket iscsi-onboot.service iscsi-init.service iscsi-shutdown.service || : 
    else 
          /usr/bin/systemctl --no-reload disable iscsi.service iscsid.service iscsid.socket iscsi-onboot.service iscsi-init.service iscsi-shutdown.service || : 
    fi 
fi


which tries to stop (disable --now) a service which explicitly prohibits it:

# grep Refuse /usr/lib/systemd/system/iscsi-shutdown.service
RefuseManualStop=yes

Either allow manual stop of the service, or issue disable without --now for it when uninstalling.


Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.1.4-2.git2a8f9d8.el9

Comment 2 RHEL Program Management 2023-07-29 07:28:06 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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