Description of problem: (in the gui) If you import a cert (taken from a cp server) and then register to that cp server, and try to subscribe to that pool, nothing happens. It still shows up in the available list. It should not show as available but not let you subscribe to it. Version-Release number of selected component (if applicable): 0.92-1 How reproducible: always Steps to Reproduce: 1. Register to cp on-prem server. Subscribe to RHEL Workstation. 2. Copy the cert from /etc/pki/entitlements/product to /tmp 3. Unregister. 4. Import the cert from /tmp 5. Register 6. Click Add. Select RHEL Workstation Actual results: Nothing happens, you can keep going back to "Add" and selecting RHEL Workstation and subscribing to it, but it will keep showing that you're subscribed on that main panel, but still available on the Add panel. Expected results: This pool should not be considered available. Or if it is, subscribing to it should remove it from the available list. Additional info:
You can unsubscribe from RHEL Workstation, and subscribe to it. It *STILL* shows up on the available list after that, but sm-gui throws an appropriate error if you try to subscribe a 2nd time. It shouldn't be on the available list though.
I tested this against a 6.2 install (sub-mgr 0.96.17) and it appears to work. I'm not able to subscribe to products that I'm already subscribed to, I would assume this is a filtering bug that has been fixed already in a previous commit. Marking as MODIFIED for QE to verify. Note that I had to concatenate the copied pem and the -key file together in order for the import to succeed, but the steps other than that were the same as indicated in comment #1.
Created attachment 571962 [details] Quantity of available subscriptions after importing the cert
Created attachment 571963 [details] Quantity of available subscriptions before importing the cert
Moving back to new as the product still shows up in the available list even after importing. RPM used: [root@skallesh entitlement]# rpm -qa | grep subscription-manager subscription-manager-gnome-0.99.10-1.git.85.057ca98.el6.x86_64 subscription-manager-migration-0.99.10-1.git.85.057ca98.el6.x86_64 subscription-manager-firstboot-0.99.10-1.git.85.057ca98.el6.x86_64 subscription-manager-0.99.10-1.git.85.057ca98.el6.x86_64
Shwetha, In the screenshot, the "have no overlap with existing subscriptions" checkbox is unchecked, which would make the extra subscription show up. Here are the steps I used to attempt to repro the bug: * subscribe to something * copy the entitlement cert to /tmp (cert + key concatenated) * unsubscribe * import the copied cert, which automatically applies it to my system * look at the all available subscriptions tab, the subscription for the product that was imported should not show up since it was already covered by the import in the previous step. Moving back to MODIFIED, let me know if the steps above don't work, or if I'm not reproducing the bug correctly.
Created attachment 573567 [details] the product doesnot show up in all available tab Verified... RPM used: [root@skallesh entitlement]# rpm -qa | grep subscription-manager subscription-manager-debuginfo-0.99.12-1.el6.x86_64 subscription-manager-firstboot-0.99.12-1.git.5.5f0e228.el6.x86_64 subscription-manager-migration-data-1.12.1.2-1.git.0.9e244c8.el6.noarch subscription-manager-gnome-0.99.12-1.git.5.5f0e228.el6.x86_64 subscription-manager-migration-0.99.12-1.git.5.5f0e228.el6.x86_64 subscription-manager-0.99.12-1.git.5.5f0e228.el6.x86_64 [root@skallesh entitlement]# ll total 8 -rw-------. 1 root root 1675 Mar 29 13:30 538756090038514596-key.pem -rw-r--r--. 1 root root 3244 Mar 29 13:30 538756090038514596.pem [root@skallesh entitlement]# cat 538756090038514596.pem >> new.pem [root@skallesh entitlement]# cat 538756090038514596-key.pem >> new.pem [root@skallesh entitlement]# mv new.pem /etc/pki/tmp/ [root@skallesh entitlement]# subscription-manager unsubscribe --all [root@skallesh entitlement]# subscription-manager import --certificate=/etc/pki/tmp/new.pem Successfully imported certificate new.pem
HASH(0x1cc8e0d0)
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: s
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -s+No Documentation Required
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-2012-0804.html