Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Seems that if I run subscription-manager clean from a registered/subscribed system does not update the SystemeEngine. If you check the web ui, you'll see that the client is still registered as far as the SE knows. If you then attempt to re-register the client from the cli, you're notified that there was a validation failure.
Version-Release number of selected component (if applicable):
Validated:
* candlepin-0.5.23-1.el6.noarch
* candlepin-tomcat6-0.5.23-1.el6.noarch
* katello-0.1.300-1.el6.noarch
* katello-all-0.1.300-1.el6.noarch
* katello-certs-tools-1.0.2-2.el6.noarch
* katello-cli-0.1.100-2.el6.noarch
* katello-cli-common-0.1.100-2.el6.noarch
* katello-common-0.1.300-1.el6.noarch
* katello-configure-0.1.100-7.el6.noarch
* katello-glue-candlepin-0.1.300-1.el6.noarch
* katello-glue-foreman-0.1.300-1.el6.noarch
* katello-glue-pulp-0.1.300-1.el6.noarch
* katello-httpd-ssl-key-pair-1.0-1.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-repos-0.1.5-1.el6.noarch
* katello-selinux-0.1.7-1.el6.noarch
* katello-trusted-ssl-cert-1.0-1.noarch
* pulp-1.0.0-4.el6.noarch
* pulp-common-1.0.0-4.el6.noarch
* pulp-selinux-server-1.0.0-4.el6.noarch
* subscription-manager-0.96.17-1.el6.x86_64
How reproducible:
Steps to Reproduce:
1. Register and subscribe a system to a SE
2. From the client, run subscription-manager clean
3. From the client, register the system again with subscription-manager
Actual results:
[root@qeclient01 ~]# subscription-manager register --username admin --password admin --org Tokyo
Validation failed: Name has already been taken
Expected results:
Additional info:
[root@qeclient01 ~]# subscription-manager clean
All local data removed
[root@qeclient01 ~]# subscription-manager register --username admin --password admin --org Tokyo
The system has been registered with id: 71d3f471-265b-46bf-943b-30982c7cfdf2
[root@qeclient01 ~]# subscription-manager refresh
All local data refreshed
[root@qeclient01 ~]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Tokyo_Community_Stable | 2.6 kB 00:00
Tokyo_Community_Stable/primary_db | 58 kB 00:00
repo id repo name status
Tokyo_Community_Stable Stable 155
repolist: 155
[root@qeclient01 ~]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Tokyo_Community_Stable | 2.6 kB 00:00
repo id repo name status
Tokyo_Community_Stable Stable 155
repolist: 155
[root@qeclient01 ~]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Tokyo_Community_Stable | 2.6 kB 00:00
Tokyo_Community_Zoo | 3.7 kB 00:00
Tokyo_Community_Zoo/primary_db | 2.9 kB 00:00
repo id repo name status
Tokyo_Community_Stable Stable 155
Tokyo_Community_Zoo Zoo 8
repolist: 163
[root@qeclient01 ~]# subscription-manager clean
All local data removed
[root@qeclient01 ~]# subscription-manager register --username admin --password admin --org Tokyo
Validation failed: Name has already been taken
[root@qeclient01 ~]# subscription-manager register --force --username admin --password admin --org Tokyo
Validation failed: Name has already been taken
[root@qeclient01 ~]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
repolist: 0
[root@qeclient01 ~]# subscription-manager refresh
Error: You need to register this system by running `register` command before using this option.