Bug 1803050 - [RHEL7/Bug] uninstall rh-amazon-rhui-client leaves dangling rcX.d files
Summary: [RHEL7/Bug] uninstall rh-amazon-rhui-client leaves dangling rcX.d files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Operations
Version: 3.1.3
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: RHUI Bug List
QA Contact: Radek Bíba
URL:
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2020-02-14 11:18 UTC by Oliver Falk
Modified: 2023-09-07 21:52 UTC (History)
1 user (show)

Fixed In Version: rh-amazon-rhui-client-3.0.25-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-20 12:38:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Oliver Falk 2020-02-14 11:18:18 UTC
Description of problem:
a) rh-amazon-rhui-client still uses legacy init.d
b) removing rh-amazon-rhui-client leads to dangling symlinks in /etc/rc.d/*


Version-Release number of selected component (if applicable): -


How reproducible: Always



Steps to Reproduce:
1. Run AWS image with rh-amazon-rhui-client installed.
2. # rpm -e rh-amazon-rhui-client
3. # ls -l /etc/rc.d/rc*.d/*rh-cloud-firstboot
   lrwxrwxrwx. 1 root root 28 Nov 19 12:52 /etc/rc.d/rc0.d/K95rh-cloud-firstboot -> ../init.d/rh-cloud-firstboot
   lrwxrwxrwx. 1 root root 28 Nov 19 12:52 /etc/rc.d/rc1.d/K95rh-cloud-firstboot -> ../init.d/rh-cloud-firstboot
   lrwxrwxrwx. 1 root root 28 Feb 13 08:23 /etc/rc.d/rc2.d/S45rh-cloud-firstboot -> ../init.d/rh-cloud-firstboot
   lrwxrwxrwx. 1 root root 28 Feb 13 08:23 /etc/rc.d/rc3.d/S45rh-cloud-firstboot -> ../init.d/rh-cloud-firstboot
   lrwxrwxrwx. 1 root root 28 Feb 13 08:23 /etc/rc.d/rc4.d/S45rh-cloud-firstboot -> ../init.d/rh-cloud-firstboot
   lrwxrwxrwx. 1 root root 28 Feb 13 08:23 /etc/rc.d/rc5.d/S45rh-cloud-firstboot -> ../init.d/rh-cloud-firstboot
   lrwxrwxrwx. 1 root root 28 Nov 19 12:52 /etc/rc.d/rc6.d/K95rh-cloud-firstboot -> ../init.d/rh-cloud-firstboot
   # ls -l ../init.d/rh-cloud-firstboot
   ls: cannot access ../init.d/rh-cloud-firstboot: No such file or directory


Actual results: legacy init.d + dangling symlinks after package removal


Expected results: uses systemd and correctly disabled/removes the service upon package removal.


Additional info: Customer case will be linked.

There is also a sysconfig file in /etc/sysconfig/rh-cloud-firstboot, which doesn't seem to be owned by the RPM.
This applies to both RHEL7 and RHEL8.

Comment 1 Peter Vreman 2020-02-14 11:50:30 UTC
Same applies to choose_repo rcX.d files:
/etc/rc.d/rc0.d/K50choose_repo
/etc/rc.d/rc1.d/K50choose_repo
/etc/rc.d/rc2.d/S50choose_repo
/etc/rc.d/rc3.d/S50choose_repo
/etc/rc.d/rc4.d/S50choose_repo
/etc/rc.d/rc5.d/S50choose_repo
/etc/rc.d/rc6.d/K50choose_repo

Comment 2 Oliver Falk 2020-02-14 12:02:30 UTC
Indeed Peter! I missed these - thanks for adding the comment!

Comment 4 Radek Bíba 2020-03-20 12:38:05 UTC
An updated rh-amazon-rhui-client package has been made available globally.


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