Bug 623264
Summary: | subscription-manager-cli register with --force is not clearing out the consumed product certs | ||
---|---|---|---|
Product: | [Community] Candlepin | Reporter: | John Sefler <jsefler> |
Component: | candlepin | Assignee: | Devan Goodwin <dgoodwin> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | John Sefler <jsefler> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 0.5 | CC: | bkearney, dgoodwin |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-23 16:14:26 UTC | Type: | --- |
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: | 641129, 641479 | ||
Bug Blocks: | 636830 |
Description
John Sefler
2010-08-11 18:16:19 UTC
Fixed in c4878a0995b76833f827f5635341d77deb69c0ca. Technically these would get cleaned out the next time rhsmcertd ran which by default could be a few hours. Discovered forked code here, these would be cleaned up if you unregistered from GUI, or from CLI (both with copies of the same code), but if you were unregistering during register --force this code did not get the same copy of code. Moved all three to call the same logic. Your entitlement certs should get cleared out in each case now. Could not finish the test due to blocking bug. Once that's clear I'll retest. VERIFIED VERSION [root@jsefler-rhel6-client01 ~]# rpm -q subscription-manager subscription-manager-0.92-1.el6.x86_64 MAKE SURE THE RHSMCERTD WILL NOT AFFECT THE TEST [root@jsefler-rhel6-client01 ~]# service rhsmcertd stop Stopping rhsmcertd [ OK ] [root@jsefler-rhel6-client01 ~]# subscription-manager-cli register --username=testuser1 --password=password 29e8c0c6-87f0-44ff-9542-4b4df1b44540 testuser1 [root@jsefler-rhel6-client01 ~]# subscription-manager-cli list --available | grep PoolId PoolId: ff8080812ba6fd48012ba6fe7f5500cd PoolId: ff8080812ba6fd48012ba6fe7fa400d1 PoolId: ff8080812ba6fd48012ba6fe7fb400d2 PoolId: ff8080812ba6fd48012ba6fe7f9500d0 PoolId: ff8080812ba6fd48012ba6fe7ec200cb PoolId: ff8080812ba6fd48012ba6fe7f3400cc PoolId: ff8080812ba6fd48012ba6fe7f7500cf [root@jsefler-rhel6-client01 ~]# subscription-manager-cli subscribe --pool=ff8080812ba6fd48012ba6fe7f5500cd --pool=ff8080812ba6fd48012ba6fe7fa400d1 --pool=ff8080812ba6fd48012ba6fe7fb400d2 --pool=ff8080812ba6fd48012ba6fe7f9500d0 --pool=ff8080812ba6fd48012ba6fe7ec200cb --pool=ff8080812ba6fd48012ba6fe7f3400cc --pool=ff8080812ba6fd48012ba6fe7f7500cf [root@jsefler-rhel6-client01 ~]# subscription-manager-cli list --available No Available subscription pools to list [root@jsefler-rhel6-client01 ~]# subscription-manager-cli list --consumed | grep SerialNumber SerialNumber: 1128700462613410 SerialNumber: 1128700462613410 SerialNumber: 1128700462613410 SerialNumber: 1128700462613410 SerialNumber: 1128700462613410 SerialNumber: 1128700462613410 SerialNumber: 112870046238521 SerialNumber: 112870046238521 SerialNumber: 112870046238521 SerialNumber: 112870046238521 SerialNumber: 112870046238521 SerialNumber: 112870046238521 SerialNumber: 11287004623179196 SerialNumber: 11287004623179196 SerialNumber: 11287004623179196 SerialNumber: 11287004623179196 SerialNumber: 11287004623179196 SerialNumber: 11287004623179196 SerialNumber: 11287004622655235 SerialNumber: 11287004625027197 SerialNumber: 11287004625027197 SerialNumber: 11287004625027197 SerialNumber: 11287004625027197 SerialNumber: 11287004625027197 SerialNumber: 11287004625027197 SerialNumber: 1128700462439852 SerialNumber: 1128700462439852 SerialNumber: 1128700462439852 SerialNumber: 1128700462439852 SerialNumber: 1128700462439852 SerialNumber: 1128700462439852 SerialNumber: 1128700462563676 [root@jsefler-rhel6-client01 ~]# subscription-manager-cli register --username=testuser1 --password=password --force 70c8500d-06e1-44b0-986d-078b6cd72b5a testuser1 [root@jsefler-rhel6-client01 ~]# subscription-manager-cli list --consumed No Consumed subscription pools to list [root@jsefler-rhel6-client01 ~]# subscription-manager-cli list --available | grep PoolId PoolId: ff8080812ba6fd48012ba6fe7f9500d0 PoolId: ff8080812ba6fd48012ba6fe7ec200cb PoolId: ff8080812ba6fd48012ba6fe7f3400cc PoolId: ff8080812ba6fd48012ba6fe7f7500cf PoolId: ff8080812ba6fd48012ba6fe7f5500cd PoolId: ff8080812ba6fd48012ba6fe7fa400d1 PoolId: ff8080812ba6fd48012ba6fe7fb400d2 VERIFIED... THAT A REGISTER WITH FORCE IMMEDIATELY CLEANS OUT THE ENTITLEMENT CERTS This bug was opened/resolved/closed against the Entitlement-Alpha release. |