Description of problem: Can not unregister system after setting an invalid service level Version-Release number of selected component (if applicable): Satellite-6.1.0 How reproducible: always. Steps to Reproduce: 1. Register RHEL-7.2-20151008.0 to Satellite-6.1.0: [root@dell-pem605-01 ~]# subscription-manager register Registering to: satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal:443/rhsm Username: admin Password: The system has been registered with ID: e2c4fe40-6721-4fd3-8cae-4bee00890501 2. Set an invalid service level for the system. [root@dell-pem605-01 ~]# subscription-manager service-level --set=notreal Task e60d65ee-3464-4b3d-be3a-cad2e098cad6: Katello::Errors::CandlepinError: Service level 'notreal' is not available to units of organization Default_Organization. 3. Unregister the system. [root@dell-pem605-01 ~]# subscription-manager unregister Required lock is already taken by other running tasks. Please inspect their state, fix their errors and resume them. Required lock: read Conflicts with tasks: - https://satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal/foreman_tasks/tasks/e60d65ee-3464-4b3d-be3a-cad2e098cad6 Actual results: As step 3. Expected results: System can be unregistered in step 3. Additional info: [root@dell-pem605-01 ~]# cat /var/log/rhsm/rhsm.log 2015-10-13 05:03:50,129 [DEBUG] subscription-manager:13483 @ga_loader.py:89 - ga_loader GaImporterGtk3 2015-10-13 05:03:50,136 [DEBUG] subscription-manager:13483 @plugins.py:569 - loaded plugin modules: [] 2015-10-13 05:03:50,136 [DEBUG] subscription-manager:13483 @plugins.py:570 - loaded plugins: {} 2015-10-13 05:03:50,136 [DEBUG] subscription-manager:13483 @identity.py:131 - Loading consumer info from identity certificates. 2015-10-13 05:03:50,136 [DEBUG] subscription-manager:13483 @identity.py:146 - Reload of consumer identity cert /etc/pki/consumer/cert.pem raised an exception with msg: [Errno 2] No such file or directory: '/etc/pki/consumer/key.pem' 2015-10-13 05:03:50,199 [INFO] subscription-manager:13483 @managercli.py:356 - Client Versions: {'python-rhsm': '1.15.4-5.el7', 'subscription-manager': '1.15.9-14.el7'} 2015-10-13 05:03:50,201 [INFO] subscription-manager:13483 @connection.py:778 - Connection built: host=satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False 2015-10-13 05:03:50,202 [INFO] subscription-manager:13483 @connection.py:778 - Connection built: host=satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal port=443 handler=/rhsm auth=none 2015-10-13 05:03:50,229 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:03:50,229 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: GET /rhsm/ 2015-10-13 05:03:50,557 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:03:50,560 [DEBUG] subscription-manager:13483 @connection.py:795 - Server supports the following resources: {'available_releases': '/katello/api/available_releases', 'status': '/katello/api/status/', 'distributors': '/katello/api/distributors/', 'content_overrides': '/katello/api/content_overrides', 'environments': '/katello/api/environments/', 'content_views': '/katello/api/content_views/', 'content_view_filters': '/katello/api/content_view_filters/', 'puppet_modules': '/katello/api/puppet_modules/', 'host_collections': '/katello/api/host_collections/', 'guestids': '/katello/api/guestids', 'docker_tags': '/katello/api/docker_tags/', 'systems': '/katello/api/systems/', 'gpg_keys': '/katello/api/gpg_keys/', 'grouped_docker_tags': '/katello/api/grouped_docker_tags/', 'capsules': '/katello/api/capsules/', 'users': '/katello/api/users/', 'sync_plans': '/katello/api/sync_plans/', 'subscriptions': '/katello/api/subscriptions/', 'docker_images': '/katello/api/docker_images/', 'content_view_versions': '/katello/api/content_view_versions/', 'packages': '/katello/api/packages/', 'organizations': '/katello/api/organizations/', 'package_groups': '/katello/api/package_groups/', 'repository_sets': '/katello/api/repository_sets/', 'repositories': '/katello/api/repositories/', 'products': '/katello/api/products/', 'activation_keys': '/katello/api/activation_keys/', 'errata': '/katello/api/errata/'} 2015-10-13 05:03:50,562 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:03:50,562 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: GET /rhsm/status 2015-10-13 05:03:51,101 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:03:51,104 [INFO] subscription-manager:13483 @managercli.py:367 - Server Versions: {'rules-version': '5.16', 'candlepin': '2.2.0.73-Unknown', 'server-type': 'This system is currently not registered.'} 2015-10-13 05:03:51,105 [INFO] subscription-manager:13483 @managercli.py:356 - Client Versions: {'python-rhsm': '1.15.4-5.el7', 'subscription-manager': '1.15.9-14.el7'} 2015-10-13 05:03:51,105 [INFO] subscription-manager:13483 @managercli.py:332 - Consumer Identity name=None uuid=None 2015-10-13 05:03:51,114 [INFO] subscription-manager:13483 @managercli.py:332 - Consumer Identity name=None uuid=None 2015-10-13 05:03:54,629 [INFO] subscription-manager:13483 @connection.py:778 - Connection built: host=satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal port=443 handler=/rhsm auth=basic username=admin 2015-10-13 05:03:54,674 [DEBUG] subscription-manager:13483 @hwprobe.py:554 - cpu info: {'cpu.cpu(s)': 4, 'cpu.core(s)_per_socket': 2, 'cpu.thread(s)_per_core': 1, 'cpu.topology_source': 'kernel /sys cpu sibling lists', 'cpu.cpu_socket(s)': 2} 2015-10-13 05:03:54,696 [DEBUG] subscription-manager:13483 @hwprobe.py:772 - Running 'virt-what' 2015-10-13 05:03:54,752 [DEBUG] subscription-manager:13483 @hwprobe.py:776 - virt-what stdout: 2015-10-13 05:03:54,752 [DEBUG] subscription-manager:13483 @hwprobe.py:777 - virt-what stderr: 2015-10-13 05:03:54,784 [INFO] subscription-manager:13483 @hwprobe.py:854 - collected virt facts: virt.is_guest=False, virt.host_type=Not Applicable, virt.uuid=Not Set 2015-10-13 05:03:54,787 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:03:54,787 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: GET /rhsm/users/admin/owners 2015-10-13 05:03:55,155 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:03:55,158 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:03:55,159 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: GET /rhsm/ 2015-10-13 05:03:55,501 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:03:55,504 [DEBUG] subscription-manager:13483 @connection.py:795 - Server supports the following resources: {'available_releases': '/katello/api/available_releases', 'status': '/katello/api/status/', 'distributors': '/katello/api/distributors/', 'content_overrides': '/katello/api/content_overrides', 'environments': '/katello/api/environments/', 'content_views': '/katello/api/content_views/', 'content_view_filters': '/katello/api/content_view_filters/', 'puppet_modules': '/katello/api/puppet_modules/', 'host_collections': '/katello/api/host_collections/', 'guestids': '/katello/api/guestids', 'docker_tags': '/katello/api/docker_tags/', 'systems': '/katello/api/systems/', 'gpg_keys': '/katello/api/gpg_keys/', 'grouped_docker_tags': '/katello/api/grouped_docker_tags/', 'capsules': '/katello/api/capsules/', 'users': '/katello/api/users/', 'sync_plans': '/katello/api/sync_plans/', 'subscriptions': '/katello/api/subscriptions/', 'docker_images': '/katello/api/docker_images/', 'content_view_versions': '/katello/api/content_view_versions/', 'packages': '/katello/api/packages/', 'organizations': '/katello/api/organizations/', 'package_groups': '/katello/api/package_groups/', 'repository_sets': '/katello/api/repository_sets/', 'repositories': '/katello/api/repositories/', 'products': '/katello/api/products/', 'activation_keys': '/katello/api/activation_keys/', 'errata': '/katello/api/errata/'} 2015-10-13 05:03:55,506 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:03:55,506 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: GET /rhsm/owners/Default_Organization/environments 2015-10-13 05:03:55,821 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:03:55,823 [DEBUG] subscription-manager:13483 @managercli.py:1180 - Using the only available environment: "Library" 2015-10-13 05:03:55,825 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:03:55,825 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: POST /rhsm/environments/1/consumers 2015-10-13 05:03:59,558 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:03:59,563 [DEBUG] subscription-manager:13483 @cache.py:110 - Wrote cache: /var/lib/rhsm/cache/installed_products.json 2015-10-13 05:03:59,566 [INFO] subscription-manager:13483 @managerlib.py:75 - Consumer created: {'consumer_name': 'dell-pem605-01.rhts.eng.bos.redhat.com', 'uuid': 'e2c4fe40-6721-4fd3-8cae-4bee00890501'} 2015-10-13 05:03:59,568 [DEBUG] subscription-manager:13483 @utils.py:287 - No virt-who pid file, not attempting to restart 2015-10-13 05:03:59,568 [DEBUG] subscription-manager:13483 @identity.py:131 - Loading consumer info from identity certificates. 2015-10-13 05:03:59,572 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:03:59,572 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: GET /rhsm/status 2015-10-13 05:04:00,107 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:04:00,109 [INFO] subscription-manager:13483 @managercli.py:367 - Server Versions: {'rules-version': '5.16', 'candlepin': '2.2.0.73-Unknown', 'server-type': 'Red Hat Subscription Management'} 2015-10-13 05:04:00,111 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:00,112 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: GET /rhsm/ 2015-10-13 05:04:00,470 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:04:00,473 [DEBUG] subscription-manager:13483 @connection.py:795 - Server supports the following resources: {'available_releases': '/katello/api/available_releases', 'status': '/katello/api/status/', 'distributors': '/katello/api/distributors/', 'content_overrides': '/katello/api/content_overrides', 'environments': '/katello/api/environments/', 'content_views': '/katello/api/content_views/', 'content_view_filters': '/katello/api/content_view_filters/', 'puppet_modules': '/katello/api/puppet_modules/', 'host_collections': '/katello/api/host_collections/', 'guestids': '/katello/api/guestids', 'docker_tags': '/katello/api/docker_tags/', 'systems': '/katello/api/systems/', 'gpg_keys': '/katello/api/gpg_keys/', 'grouped_docker_tags': '/katello/api/grouped_docker_tags/', 'capsules': '/katello/api/capsules/', 'users': '/katello/api/users/', 'sync_plans': '/katello/api/sync_plans/', 'subscriptions': '/katello/api/subscriptions/', 'docker_images': '/katello/api/docker_images/', 'content_view_versions': '/katello/api/content_view_versions/', 'packages': '/katello/api/packages/', 'organizations': '/katello/api/organizations/', 'package_groups': '/katello/api/package_groups/', 'repository_sets': '/katello/api/repository_sets/', 'repositories': '/katello/api/repositories/', 'products': '/katello/api/products/', 'activation_keys': '/katello/api/activation_keys/', 'errata': '/katello/api/errata/'} 2015-10-13 05:04:00,474 [DEBUG] subscription-manager:13483 @cache.py:138 - Checking current system info against cache: /var/lib/rhsm/packages/packages.json 2015-10-13 05:04:00,474 [DEBUG] subscription-manager:13483 @cache.py:393 - Cache does not exist 2015-10-13 05:04:00,474 [DEBUG] subscription-manager:13483 @cache.py:140 - System data has changed, updating server. 2015-10-13 05:04:00,474 [DEBUG] subscription-manager:13483 @profile.py:97 - Loading current RPM profile. 2015-10-13 05:04:00,672 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:00,676 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: PUT /rhsm/consumers/e2c4fe40-6721-4fd3-8cae-4bee00890501/packages 2015-10-13 05:04:03,299 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:04:03,344 [DEBUG] subscription-manager:13483 @cache.py:110 - Wrote cache: /var/lib/rhsm/packages/packages.json 2015-10-13 05:04:03,346 [DEBUG] subscription-manager:13483 @cache.py:110 - Wrote cache: /var/lib/rhsm/facts/facts.json 2015-10-13 05:04:03,346 [DEBUG] subscription-manager:13483 @cache.py:138 - Checking current system info against cache: /var/lib/rhsm/cache/installed_products.json 2015-10-13 05:04:03,347 [DEBUG] subscription-manager:13483 @cache.py:155 - No changes. 2015-10-13 05:04:03,347 [DEBUG] subscription-manager:13483 @cache.py:138 - Checking current system info against cache: /var/lib/rhsm/cache/installed_products.json 2015-10-13 05:04:03,347 [DEBUG] subscription-manager:13483 @cache.py:155 - No changes. 2015-10-13 05:04:03,347 [DEBUG] subscription-manager:13483 @certdirectory.py:216 - Installed product IDs: ['69'] 2015-10-13 05:04:03,349 [DEBUG] subscription-manager:13483 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:03,350 [DEBUG] subscription-manager:13483 @connection.py:523 - Making request: GET /rhsm/consumers/e2c4fe40-6721-4fd3-8cae-4bee00890501/compliance 2015-10-13 05:04:03,888 [DEBUG] subscription-manager:13483 @connection.py:555 - Response: status=200 2015-10-13 05:04:03,891 [DEBUG] subscription-manager:13483 @cache.py:273 - Started thread to write cache: /var/lib/rhsm/cache/entitlement_status.json 2015-10-13 05:04:03,891 [INFO] subscription-manager:13483 @cert_sorter.py:205 - Product status: valid_products= partial_products= expired_products= unentitled_producs=69 future_products= valid_until=None 2015-10-13 05:04:03,892 [DEBUG] subscription-manager:13483 @cert_sorter.py:207 - partial stacks: [] 2015-10-13 05:04:03,892 [DEBUG] subscription-manager:13483 @cache.py:110 - Wrote cache: /var/lib/rhsm/cache/entitlement_status.json 2015-10-13 05:04:03,892 [DEBUG] subscription-manager:13483 @cache.py:138 - Checking current system info against cache: /var/lib/rhsm/cache/installed_products.json 2015-10-13 05:04:03,895 [DEBUG] subscription-manager:13483 @cache.py:155 - No changes. 2015-10-13 05:04:03,895 [DEBUG] subscription-manager:13483 @identity.py:131 - Loading consumer info from identity certificates. 2015-10-13 05:04:04,196 [INFO] rhsmd:13541 @rhsmd:229 - rhsmd started 2015-10-13 05:04:04,207 [DEBUG] rhsmd:13541 @rhsmd:184 - D-Bus interface com.redhat.SubscriptionManager.EntitlementStatus.update_status called with status = 1 2015-10-13 05:04:04,304 [DEBUG] rhsmd:13541 @identity.py:131 - Loading consumer info from identity certificates. 2015-10-13 05:04:04,313 [DEBUG] rhsmd:13541 @rhsmd:152 - D-Bus signal com.redhat.SubscriptionManager.EntitlementStatus.entitlement_status_changed emitted 2015-10-13 05:04:14,098 [DEBUG] subscription-manager:13543 @ga_loader.py:89 - ga_loader GaImporterGtk3 2015-10-13 05:04:14,105 [DEBUG] subscription-manager:13543 @plugins.py:569 - loaded plugin modules: [] 2015-10-13 05:04:14,106 [DEBUG] subscription-manager:13543 @plugins.py:570 - loaded plugins: {} 2015-10-13 05:04:14,106 [DEBUG] subscription-manager:13543 @identity.py:131 - Loading consumer info from identity certificates. 2015-10-13 05:04:14,177 [INFO] subscription-manager:13543 @managercli.py:356 - Client Versions: {'python-rhsm': '1.15.4-5.el7', 'subscription-manager': '1.15.9-14.el7'} 2015-10-13 05:04:14,178 [INFO] subscription-manager:13543 @connection.py:778 - Connection built: host=satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False 2015-10-13 05:04:14,179 [INFO] subscription-manager:13543 @connection.py:778 - Connection built: host=satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal port=443 handler=/rhsm auth=none 2015-10-13 05:04:14,207 [DEBUG] subscription-manager:13543 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:14,207 [DEBUG] subscription-manager:13543 @connection.py:523 - Making request: GET /rhsm/ 2015-10-13 05:04:14,566 [DEBUG] subscription-manager:13543 @connection.py:555 - Response: status=200 2015-10-13 05:04:14,569 [DEBUG] subscription-manager:13543 @connection.py:795 - Server supports the following resources: {'available_releases': '/katello/api/available_releases', 'status': '/katello/api/status/', 'distributors': '/katello/api/distributors/', 'content_overrides': '/katello/api/content_overrides', 'environments': '/katello/api/environments/', 'content_views': '/katello/api/content_views/', 'content_view_filters': '/katello/api/content_view_filters/', 'puppet_modules': '/katello/api/puppet_modules/', 'host_collections': '/katello/api/host_collections/', 'guestids': '/katello/api/guestids', 'docker_tags': '/katello/api/docker_tags/', 'systems': '/katello/api/systems/', 'gpg_keys': '/katello/api/gpg_keys/', 'grouped_docker_tags': '/katello/api/grouped_docker_tags/', 'capsules': '/katello/api/capsules/', 'users': '/katello/api/users/', 'sync_plans': '/katello/api/sync_plans/', 'subscriptions': '/katello/api/subscriptions/', 'docker_images': '/katello/api/docker_images/', 'content_view_versions': '/katello/api/content_view_versions/', 'packages': '/katello/api/packages/', 'organizations': '/katello/api/organizations/', 'package_groups': '/katello/api/package_groups/', 'repository_sets': '/katello/api/repository_sets/', 'repositories': '/katello/api/repositories/', 'products': '/katello/api/products/', 'activation_keys': '/katello/api/activation_keys/', 'errata': '/katello/api/errata/'} 2015-10-13 05:04:14,571 [DEBUG] subscription-manager:13543 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:14,571 [DEBUG] subscription-manager:13543 @connection.py:523 - Making request: GET /rhsm/status 2015-10-13 05:04:15,057 [DEBUG] subscription-manager:13543 @connection.py:555 - Response: status=200 2015-10-13 05:04:15,060 [INFO] subscription-manager:13543 @managercli.py:367 - Server Versions: {'rules-version': '5.16', 'candlepin': '2.2.0.73-Unknown', 'server-type': 'Red Hat Subscription Management'} 2015-10-13 05:04:15,060 [INFO] subscription-manager:13543 @managercli.py:332 - Consumer Identity name=dell-pem605-01.rhts.eng.bos.redhat.com uuid=e2c4fe40-6721-4fd3-8cae-4bee00890501 2015-10-13 05:04:15,062 [DEBUG] subscription-manager:13543 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:15,062 [DEBUG] subscription-manager:13543 @connection.py:523 - Making request: GET /rhsm/consumers/e2c4fe40-6721-4fd3-8cae-4bee00890501 2015-10-13 05:04:15,636 [DEBUG] subscription-manager:13543 @connection.py:555 - Response: status=200 2015-10-13 05:04:15,642 [DEBUG] subscription-manager:13543 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:15,642 [DEBUG] subscription-manager:13543 @connection.py:523 - Making request: PUT /rhsm/consumers/e2c4fe40-6721-4fd3-8cae-4bee00890501 2015-10-13 05:04:17,719 [DEBUG] subscription-manager:13543 @connection.py:555 - Response: status=500 2015-10-13 05:04:17,720 [ERROR] subscription-manager:13543 @managercli.py:890 - Task e60d65ee-3464-4b3d-be3a-cad2e098cad6: Katello::Errors::CandlepinError: Service level 'notreal' is not available to units of organization Default_Organization. Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/managercli.py", line 881, in _do_command self.set_service_level(self.options.service_level) File "/usr/share/rhsm/subscription_manager/managercli.py", line 900, in set_service_level self._set_service_level(service_level) File "/usr/share/rhsm/subscription_manager/managercli.py", line 839, in _set_service_level self.cp.updateConsumer(self.identity.uuid, service_level=service_level) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 947, in updateConsumer ret = self.conn.request_put(method, params) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 653, in request_put return self._request("PUT", method, params) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 564, in _request self.validateResponse(result, request_type, handler) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 611, in validateResponse raise RestlibException(response['status'], error_msg, response.get('headers')) RestlibException: Task e60d65ee-3464-4b3d-be3a-cad2e098cad6: Katello::Errors::CandlepinError: Service level 'notreal' is not available to units of organization Default_Organization. 2015-10-13 05:04:17,723 [ERROR] subscription-manager:13543 @managercli.py:891 - Error: Unable to retrieve service levels: Task e60d65ee-3464-4b3d-be3a-cad2e098cad6: Katello::Errors::CandlepinError: Service level 'notreal' is not available to units of organization Default_Organization. 2015-10-13 05:04:24,327 [DEBUG] subscription-manager:13544 @ga_loader.py:89 - ga_loader GaImporterGtk3 2015-10-13 05:04:24,335 [DEBUG] subscription-manager:13544 @plugins.py:569 - loaded plugin modules: [] 2015-10-13 05:04:24,335 [DEBUG] subscription-manager:13544 @plugins.py:570 - loaded plugins: {} 2015-10-13 05:04:24,335 [DEBUG] subscription-manager:13544 @identity.py:131 - Loading consumer info from identity certificates. 2015-10-13 05:04:24,406 [INFO] subscription-manager:13544 @managercli.py:356 - Client Versions: {'python-rhsm': '1.15.4-5.el7', 'subscription-manager': '1.15.9-14.el7'} 2015-10-13 05:04:24,408 [INFO] subscription-manager:13544 @connection.py:778 - Connection built: host=satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False 2015-10-13 05:04:24,409 [INFO] subscription-manager:13544 @connection.py:778 - Connection built: host=satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal port=443 handler=/rhsm auth=none 2015-10-13 05:04:24,435 [DEBUG] subscription-manager:13544 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:24,436 [DEBUG] subscription-manager:13544 @connection.py:523 - Making request: GET /rhsm/ 2015-10-13 05:04:24,788 [DEBUG] subscription-manager:13544 @connection.py:555 - Response: status=200 2015-10-13 05:04:24,792 [DEBUG] subscription-manager:13544 @connection.py:795 - Server supports the following resources: {'available_releases': '/katello/api/available_releases', 'status': '/katello/api/status/', 'distributors': '/katello/api/distributors/', 'content_overrides': '/katello/api/content_overrides', 'environments': '/katello/api/environments/', 'content_views': '/katello/api/content_views/', 'content_view_filters': '/katello/api/content_view_filters/', 'puppet_modules': '/katello/api/puppet_modules/', 'host_collections': '/katello/api/host_collections/', 'guestids': '/katello/api/guestids', 'docker_tags': '/katello/api/docker_tags/', 'systems': '/katello/api/systems/', 'gpg_keys': '/katello/api/gpg_keys/', 'grouped_docker_tags': '/katello/api/grouped_docker_tags/', 'capsules': '/katello/api/capsules/', 'users': '/katello/api/users/', 'sync_plans': '/katello/api/sync_plans/', 'subscriptions': '/katello/api/subscriptions/', 'docker_images': '/katello/api/docker_images/', 'content_view_versions': '/katello/api/content_view_versions/', 'packages': '/katello/api/packages/', 'organizations': '/katello/api/organizations/', 'package_groups': '/katello/api/package_groups/', 'repository_sets': '/katello/api/repository_sets/', 'repositories': '/katello/api/repositories/', 'products': '/katello/api/products/', 'activation_keys': '/katello/api/activation_keys/', 'errata': '/katello/api/errata/'} 2015-10-13 05:04:24,794 [DEBUG] subscription-manager:13544 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:24,794 [DEBUG] subscription-manager:13544 @connection.py:523 - Making request: GET /rhsm/status 2015-10-13 05:04:25,337 [DEBUG] subscription-manager:13544 @connection.py:555 - Response: status=200 2015-10-13 05:04:25,339 [INFO] subscription-manager:13544 @managercli.py:367 - Server Versions: {'rules-version': '5.16', 'candlepin': '2.2.0.73-Unknown', 'server-type': 'Red Hat Subscription Management'} 2015-10-13 05:04:25,340 [INFO] subscription-manager:13544 @managercli.py:332 - Consumer Identity name=dell-pem605-01.rhts.eng.bos.redhat.com uuid=e2c4fe40-6721-4fd3-8cae-4bee00890501 2015-10-13 05:04:25,341 [DEBUG] subscription-manager:13544 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-default-ca.pem, katello-server-ca.pem 2015-10-13 05:04:25,342 [DEBUG] subscription-manager:13544 @connection.py:523 - Making request: DELETE /rhsm/consumers/e2c4fe40-6721-4fd3-8cae-4bee00890501 2015-10-13 05:04:25,825 [DEBUG] subscription-manager:13544 @connection.py:555 - Response: status=500 2015-10-13 05:04:25,826 [ERROR] subscription-manager:13544 @managercli.py:160 - Unregister failed 2015-10-13 05:04:25,826 [ERROR] subscription-manager:13544 @managercli.py:161 - Required lock is already taken by other running tasks. Please inspect their state, fix their errors and resume them. Required lock: read Conflicts with tasks: - https://satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal/foreman_tasks/tasks/e60d65ee-3464-4b3d-be3a-cad2e098cad6 Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/managercli.py", line 1241, in _do_command managerlib.unregister(self.cp, self.identity.uuid) File "/usr/share/rhsm/subscription_manager/managerlib.py", line 789, in unregister uep.unregisterConsumer(consumer_uuid) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 1079, in unregisterConsumer return self.conn.request_delete(method) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 656, in request_delete return self._request("DELETE", method, params) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 564, in _request self.validateResponse(result, request_type, handler) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 611, in validateResponse raise RestlibException(response['status'], error_msg, response.get('headers')) RestlibException: Required lock is already taken by other running tasks. Please inspect their state, fix their errors and resume them. Required lock: read Conflicts with tasks: - https://satellite-ab4a1678-be6c-4045-86a9-b5dca9918d2b.novalocal/foreman_tasks/tasks/e60d65ee-3464-4b3d-be3a-cad2e098cad6
The additional bug is https://bugzilla.redhat.com/show_bug.cgi?id=1276241. Closing out the bug.