The following are output which is desired from the RHN and Subscription Managment yum plugins. This bug is for the Subscription Management side of the changes: Registered to Neither ---------------------------- RHN: This system is not registered to RHN classic. You can can use rhn_reg_ks to register. SM: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Registered to RHN Classic (Or Satellite) ---------------------------------------------------- RHN: This system is receiving updates from RHN Classic SM: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Registered to Customer Portal (Or SAM or CFSE) --------------------------------------------------------------- RHN: This system is not registered to RHN classic. You can can use rhn_reg_ks to register. SM: This system is receiving updates from Red Hat Subscription Management. -- OR -- SM: This system is registered to Red Hat Subscription Management, but not recieving updates. You can use subscription-manager to assign subscriptions. Registered to both ------------------------ RHN: This system is receiving updates from RHN Classic SM: This system is receiving updates from Red Hat Subscription Management. -- OR -- SM: This system is registered to Red Hat Subscription Management, but not recieving updates. You can use subscription-manager to assign subscriptions.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
fixed in master at e1293521a66afd6f9ca93f33d2fad706b56056b8
(In reply to comment #0) > Registered to RHN Classic (Or Satellite) > ---------------------------------------------------- > RHN: This system is receiving updates from RHN Classic > SM: This system is not registered to Red Hat Subscription Management. You > can use subscription-manager to register. > > Registered to both > ------------------------ > RHN: This system is receiving updates from RHN Classic > SM: This system is receiving updates from Red Hat Subscription Management. > -- OR -- > SM: This system is registered to Red Hat Subscription Management, but not > recieving updates. You can use subscription-manager to assign subscriptions. Bryan, The original bug 818383 that spawned these yum plugin improvement messaging called for silence from subscription-manager yum plugin when already registered classically. Current implementation still honors this silence. Do you wish to revise the two cases above for SM ? If not, then this bug fails qa.
Jeff, this bug takes precendence and represents how Lars woud like to see things work.
(In reply to comment #5) > John, this bug takes precedence and represents how Lars woud like to see > things work. If this bug takes precedence over bug 818383, then as stated in comment 4 this new bug FailsQA since the subscription-manager yum plugin still remains silent when already registered classically. Moving status back to ASSIGNED/FailsQA.
*** Bug 826616 has been marked as a duplicate of this bug. ***
This should only occur if you are running as non-root. Is that how the test is occuring?
nm.. found it...
fixed in master a 5a87c72b2cb83ae73875c586b4e4c2215a9b0760.
Verifying Version... [root@rhsm-accept-rhel5 ~]# rpm -q --whatprovides /etc/yum/pluginconf.d/subscription-manager.conf subscription-manager-1.0.22-1.el5 [root@rhsm-accept-rhel5 ~]# rpm -q --whatprovides /etc/yum/pluginconf.d/rhnplugin.conf yum-rhn-plugin-0.5.4-29.el5 > Registered to Neither > ---------------------------- > RHN: This system is not registered to RHN classic. You can can use rhn_reg_ks to register. > SM: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. > [root@rhsm-accept-rhel5 ~]# subscription-manager clean All local data removed [root@rhsm-accept-rhel5 ~]# rm -f /etc/sysconfig/rhn/systemid [root@rhsm-accept-rhel5 ~]# yum info foo Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. This system may not be registered to RHN Classic or RHN Satellite. SystemId could not be acquired. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. Error: No matching Packages to list SM: Verified yum plugin messages from subscription-manager RHN: See bug 830194 for verification of yum plugin messages from rhnplugin > Registered to RHN Classic (Or Satellite) > ---------------------------------------------------- > RHN: This system is receiving updates from RHN Classic > SM: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. > [root@rhsm-accept-rhel5 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=*** --profilename=rhsm-automation --force --norhnsd --nohardware --nopackages --novirtinfo [root@rhsm-accept-rhel5 ~]# yum info foo Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. This system is receiving updates from RHN Classic or RHN Satellite. Error: No matching Packages to list SM: Verified yum plugin messages from subscription-manager RHN: See bug 830194 for verification of yum plugin messages from rhnplugin > Registered to Customer Portal (Or SAM or CFSE) > --------------------------------------------------------------- > RHN: This system is not registered to RHN classic. You can can use rhn_reg_ks to register. > SM: This system is receiving updates from Red Hat Subscription Management. > -- OR -- > SM: This system is registered to Red Hat Subscription Management, but not recieving updates. You can use subscription-manager to assign subscriptions. > [root@rhsm-accept-rhel5 ~]# rhn-migrate-classic-to-rhsm --no-auto Red Hat account: qa Password: Retrieving existing RHN Classic subscription information ... +----------------------------------+ System is currently subscribed to these RHN Classic Channels: +----------------------------------+ rhel-x86_64-server-5 +-----------------------------------------------------+ Installing product certificates for these RHN Classic channels: +-----------------------------------------------------+ rhel-x86_64-server-5 Product certificates installed successfully to /etc/pki/product. Preparing to unregister system from RHN Classic ... System successfully unregistered from RHN Classic. Attempting to register system to Red Hat Subscription Management ... The system has been registered with id: 7cff22ad-b7e0-4435-ab8f-89356e658302 System 'rhsm-accept-rhel5.usersys.redhat.com' successfully registered to Red Hat Subscription Management. [root@rhsm-accept-rhel5 ~]# yum info foo Loaded plugins: product-id, security, subscription-manager This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions. Error: No matching Packages to list [root@rhsm-accept-rhel5 ~]# ^^^ NOTICE THAT THE MIGRATION TOOL ACTUALLY DISABLES rhnplugin [root@rhsm-accept-rhel5 ~]# yum info foo --enableplugin=rhnplugin Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions. This system may not be registered to RHN Classic or RHN Satellite. SystemId could not be acquired. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. Error: No matching Packages to list [root@rhsm-accept-rhel5 ~]# [root@rhsm-accept-rhel5 ~]# subscription-manager subscribe --auto Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@rhsm-accept-rhel5 ~]# yum info foo --enableplugin=rhnplugin Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. This system may not be registered to RHN Classic or RHN Satellite. SystemId could not be acquired. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. rhel-5-server-cf-tools-1-rpms | 2.8 kB 00:00 rhel-5-server-rpms | 3.7 kB 00:00 rhel-ha-for-rhel-5-server-rpms | 3.7 kB 00:00 rhel-rs-for-rhel-5-server-rpms | 3.7 kB 00:00 rhel-scalefs-for-rhel-5-server-rpms | 2.8 kB 00:00 Error: No matching Packages to list SM: Verified yum plugin messages from subscription-manager RHN: See bug 830194 for verification of yum plugin messages from rhnplugin > Registered to both > ------------------------ > RHN: This system is receiving updates from RHN Classic > SM: This system is receiving updates from Red Hat Subscription Management. > -- OR -- > SM: This system is registered to Red Hat Subscription Management, but not recieving updates. You can use subscription-manager to assign subscriptions. > [root@rhsm-accept-rhel5 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=*** --profilename=rhsm-automation --force --norhnsd --nohardware --nopackages --novirtinfo [root@rhsm-accept-rhel5 ~]# yum info foo Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. This system is receiving updates from RHN Classic or RHN Satellite. rhel-5-server-cf-tools-1-rpms | 2.8 kB 00:00 rhel-5-server-rpms | 3.7 kB 00:00 rhel-ha-for-rhel-5-server-rpms | 3.7 kB 00:00 rhel-rs-for-rhel-5-server-rpms | 3.7 kB 00:00 rhel-scalefs-for-rhel-5-server-rpms | 2.8 kB 00:00 Error: No matching Packages to list [root@rhsm-accept-rhel5 ~]# subscription-manager unsubscribe --all This machine has been unsubscribed from 1 subscriptions [root@rhsm-accept-rhel5 ~]# yum info foo Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions. This system is receiving updates from RHN Classic or RHN Satellite. Error: No matching Packages to list SM: Verified yum plugin messages from subscription-manager RHN: See bug 830194 for verification of yum plugin messages from rhnplugin Moving 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. http://rhn.redhat.com/errata/RHBA-2013-0033.html