Hide Forgot
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.
this is by design. CLEAN affects only the local system. UNREGISTER affects the local system and the server.