Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1803050

Summary: [RHEL7/Bug] uninstall rh-amazon-rhui-client leaves dangling rcX.d files
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Oliver Falk <ofalk>
Component: OperationsAssignee: RHUI Bug List <rhui-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Radek Bíba <rbiba>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.1.3CC: peter.vreman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rh-amazon-rhui-client-3.0.25-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-20 12:38:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1122832    

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.