Bug 1432231
Summary: | rhn-migrate-classic-to-rhsm is failing to stop and disable services | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | candlepin-bugs |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | low | Docs Contact: | |
Priority: | high | ||
Version: | 7.4 | CC: | bcourt, khowell, redakkan, skallesh |
Target Milestone: | rc | Keywords: | EasyFix, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | subscription-manager-1.19.15-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 19:21:47 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: |
Description
John Sefler
2017-03-14 20:30:56 UTC
Reproducing the failure: ======================== # rpm -q subscription-manager-migration python-rhsm systemd rhnsd osad subscription-manager-migration-1.19.9-1.el7.x86_64 python-rhsm-1.19.5-1.el7.x86_64 systemd-219-39.el7.x86_64 rhnsd-5.0.13-7.el7.x86_64 [root@dhcp35-71 home]# rhnreg_ks --serverUrl=https://rhsm-sat5.usersys.redhat.com/XMLRPC --username=rhsm-client --password=**** --profilename=rhsmtest --force --norhnsd --nohardware --nopackages --novirtinfo [root@dhcp35-71 home]# systemctl is-active rhnsd active [root@dhcp35-71 home]# service rhnsd status ● rhnsd.service - LSB: Starts the Spacewalk Daemon Loaded: loaded (/etc/rc.d/init.d/rhnsd; bad; vendor preset: disabled) Active: active (running) since Wed 2017-05-10 15:47:41 IST; 2 weeks 4 days ago Docs: man:systemd-sysv-generator(8) Main PID: 1113 (rhnsd) CGroup: /system.slice/rhnsd.service └─1113 rhnsd May 14 21:46:21 dhcp35-238.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 15 01:46:21 dhcp35-238.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 15 05:46:21 dhcp35-238.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 15 09:46:21 dhcp35-238.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 15 13:46:21 dhcp35-238.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 16 00:24:14 dhcp35-238.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 16 04:24:14 dhcp35-71.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 16 08:24:14 dhcp35-71.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 16 12:24:14 dhcp35-71.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 16 16:24:14 dhcp35-71.lab.eng.blr.redhat.com rhnsd[1113]: /etc/sysconfig/rhn/systemid does not exist or is unreadable [root@dhcp35-71 home]# systemctl is-enabled rhnsd rhnsd.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig rhnsd --level=5 enabled [root@dhcp35-71 home]# systemctl is-enabled rhnsd rhnsd.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig rhnsd --level=5 enabled [root@dhcp35-71 home]# chkconfig --list rhnsd Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. If you want to list systemd services use 'systemctl list-unit-files'. To see services enabled on particular target use 'systemctl list-dependencies [target]'. rhnsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@dhcp35-71 home]# rhn-migrate-classic-to-rhsm --legacy-user=rhsm-client --legacy-password=**** --destination-url=subscription.rhsm.stage.redhat.com:443/subscription --destination-user=qa --destination-password=***** Retrieving existing legacy subscription information... +-----------------------------------------------------+ System is currently subscribed to these legacy channels: +-----------------------------------------------------+ rhel-x86_64-server-7 +-----------------------------------------------------+ Installing product certificates for these legacy channels: +-----------------------------------------------------+ rhel-x86_64-server-7 Product certificates installed successfully to /etc/pki/product. Preparing to unregister system from legacy server... System successfully unregistered from legacy server. Stopping and disabling legacy services... Attempting to register system to destination server... Registering to: subscription.rhsm.stage.redhat.com:443/subscription The system has been registered with ID: c22b33c8-6eeb-4cfe-b06a-2d79ff5555d2 Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed System 'dhcp35-71.lab.eng.blr.redhat.com' successfully registered. [root@dhcp35-71 home]# echo $? 0 [root@dhcp35-71 home]# systemctl is-active rhnsd active [root@dhcp35-71 home]# systemctl is-enabled rhnsd rhnsd.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig rhnsd --level=5 enabled ^^ observed that rhnsd was still enabled on the system. VERIFYING on latest subscription-manager build : ==================================================== # rpm -q subscription-manager-migration python-rhsm systemd rhnsd osad subscription-manager-migration-1.19.16-1.el7.x86_64 python-rhsm-1.19.7-1.el7.x86_64 systemd-219-39.el7.x86_64 rhnsd-5.0.13-7.el7.x86_64 package osad is not installed [root@dhcp151-206 tester]# rhnreg_ks --serverUrl=https://rhsm-sat5.usersys.redhat.com/XMLRPC --username=rhsm-client --password=**** --profilename=rhsmtest --force --norhnsd --nohardware --nopackages --novirtinfo [root@dhcp151-206 tester]# systemctl is-active rhnsd active [root@dhcp151-206 tester]# service rhnsd status ● rhnsd.service - LSB: Starts the Spacewalk Daemon Loaded: loaded (/etc/rc.d/init.d/rhnsd; bad; vendor preset: disabled) Active: active (running) since Fri 2017-05-26 09:58:47 EDT; 2 days ago Docs: man:systemd-sysv-generator(8) Main PID: 1191 (rhnsd) CGroup: /system.slice/rhnsd.service └─1191 rhnsd May 27 17:13:13 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 27 21:13:13 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 28 01:13:13 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 28 05:13:13 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 28 09:13:13 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 28 12:17:14 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 28 16:17:14 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 28 20:17:14 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 29 00:17:14 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable May 29 04:17:14 dhcp151-206.mpc.lab.eng.bos.redhat.com rhnsd[1191]: /etc/sysconfig/rhn/systemid does not exist or is unreadable [root@dhcp151-206 tester]# systemctl is-enabled rhnsd rhnsd.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig rhnsd --level=5 enabled [root@dhcp151-206 tester]# chkconfig --list rhnsd Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. If you want to list systemd services use 'systemctl list-unit-files'. To see services enabled on particular target use 'systemctl list-dependencies [target]'. rhnsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@dhcp151-206 tester]# rhn-migrate-classic-to-rhsm --legacy-user=rhsm-client --legacy-password=**** --destination-url=subscription.rhsm.stage.redhat.com:443/subscription --destination-user=qa --destination-password=***** Retrieving existing legacy subscription information... +-----------------------------------------------------+ System is currently subscribed to these legacy channels: +-----------------------------------------------------+ rhel-x86_64-server-7 +-----------------------------------------------------+ Installing product certificates for these legacy channels: +-----------------------------------------------------+ rhel-x86_64-server-7 Product certificates installed successfully to /etc/pki/product. Preparing to unregister system from legacy server... System successfully unregistered from legacy server. Stopping and disabling legacy services... rhnsd.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig rhnsd off Attempting to register system to destination server... Registering to: subscription.rhsm.stage.redhat.com:443/subscription The system has been registered with ID: 343b31fa-7eed-4dab-a642-4fb90351091e Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed Product Name: Red Hat Enterprise Linux 7 Server High Touch Beta Status: Subscribed System 'dhcp151-206.mpc.lab.eng.bos.redhat.com' successfully registered. ^^ observed that now stopping service is redirecting to /sbin/chkconfig and the services are now disabled post migration [root@dhcp151-206 tester]# systemctl is-active rhnsd unknown [root@dhcp151-206 tester]# systemctl is-enabled rhnsd rhnsd.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig rhnsd --level=5 disabled based on the above observations , moving this bug to verified!! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2083 |