When trying to register RHEL 6 hosts I get the following error: [root@mac525400064615 rhsm]# subscription-manager register --org="Default_Organization" --name="mac525400064615.example.com" --activationkey="RHEV_Engine-fghdfghdfgh-RHEV_Engine" --force The system with UUID aaf4d121-9c9c-49ea-aaaf-40a05f848e63 has been unregistered The system has been registered with ID: ba71b6ef-3cab-40d6-881d-9fa83c140654 string indices must be integers, not str Version-Release number of selected component (if applicable): Client: subscription-manager-1.14.10-1.el6.x86_64 Server: Satellite 6.2 katello-3.0.0-2.el7sat.noarch tfm-rubygem-katello-3.0.0.9-1.el7sat.noarch How reproducible: Seems always Steps to Reproduce: 1. Install Satellite 6.2 2. Provision a RHEL 6.7 Host 3. Try to register with subscription-manager Actual results: Host seems to be partially registered, but no repos are available. I receive the same error trying to do a refresh and running other commands. Expected results: Host registers and repos are available Additional info: rhsm.log: 2016-03-29 11:02:19,223 [DEBUG] subscription-manager:1986 @plugins.py:569 - loaded plugin modules: [] 2016-03-29 11:02:19,223 [DEBUG] subscription-manager:1986 @plugins.py:570 - loaded plugins: {} 2016-03-29 11:02:19,223 [DEBUG] subscription-manager:1986 @identity.py:131 - Loading consumer info from identity certificates. 2016-03-29 11:02:19,241 [INFO] subscription-manager:1986 @managercli.py:352 - Client Versions: {'python-rhsm': '1.14.3-1.el6', 'subscription-manager': '1.14.10-1.el6'} 2016-03-29 11:02:19,242 [INFO] subscription-manager:1986 @connection.py:727 - Connection built: host=qci.example.com port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False 2016-03-29 11:02:19,242 [INFO] subscription-manager:1986 @connection.py:727 - Connection built: host=qci.example.com port=443 handler=/rhsm auth=none 2016-03-29 11:02:19,250 [DEBUG] subscription-manager:1986 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-server-ca.pem, candlepin-stage.pem, katello-default-ca.pem 2016-03-29 11:02:19,251 [DEBUG] subscription-manager:1986 @connection.py:494 - Making request: GET /rhsm/ 2016-03-29 11:02:19,300 [DEBUG] subscription-manager:1986 @connection.py:521 - Response: status=200 2016-03-29 11:02:19,301 [DEBUG] subscription-manager:1986 @connection.py:744 - Server supports the following resources: {'available_releases': '/rhsm/consumers/:id/available_releases', 'status': '/rhsm/status', 'guestids': '/rhsm/consumers/:id/guestids', 'content_overrides': '/rhsm/consumers/:id/content_overrides', 'environments': '/rhsm/owners/:organization_id/environments', 'hypervisors': '/rhsm/hypervisors', 'export': '/rhsm/consumers/:id/export', 'owner': '/rhsm/consumers/:id/owner', 'certificates': '/rhsm/consumers/:consumer_id/certificates', 'servicelevels': '/rhsm/owners/:organization_id/servicelevels', 'serials': '/rhsm/consumers/:id/certificates/serials', 'deleted_consumers': '/rhsm/deleted_consumers', 'consumers': '/rhsm/environments/:environment_id/consumers', 'entitlements': '/rhsm/entitlements', 'profile': '/rhsm/consumers/:id/profile', 'dry-run': '/rhsm/consumers/:id/entitlements/dry-run', 'subscriptions': '/rhsm/subscriptions', 'checkin': '/rhsm/consumers/:id/checkin', 'deletionrecord': '/rhsm/consumers/:id/deletionrecord', 'release': '/rhsm/consumers/:id/release', 'packages': '/rhsm/consumers/:id/packages', 'owners': '/rhsm/users/:login/owners', 'compliance': '/rhsm/consumers/:id/compliance', 'enabled_repos': '/rhsm/systems/:id/enabled_repos', 'pools': '/rhsm/pools'} 2016-03-29 11:02:19,302 [DEBUG] subscription-manager:1986 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-server-ca.pem, candlepin-stage.pem, katello-default-ca.pem 2016-03-29 11:02:19,302 [DEBUG] subscription-manager:1986 @connection.py:494 - Making request: GET /rhsm/status 2016-03-29 11:02:19,474 [DEBUG] subscription-manager:1986 @connection.py:521 - Response: status=200 2016-03-29 11:02:19,475 [INFO] subscription-manager:1986 @managercli.py:363 - Server Versions: {'rules-version': '5.15.2', 'candlepin': '3.0.0.9-Unknown', 'server-type': 'Red Hat Subscription Management'} 2016-03-29 11:02:19,475 [INFO] subscription-manager:1986 @managercli.py:352 - Client Versions: {'python-rhsm': '1.14.3-1.el6', 'subscription-manager': '1.14.10-1.el6'} 2016-03-29 11:02:19,475 [INFO] subscription-manager:1986 @managercli.py:328 - Consumer Identity name=mac525400064615.example.com uuid=aaf4d121-9c9c-49ea-aaaf-40a05f848e63 2016-03-29 11:02:19,476 [INFO] subscription-manager:1986 @managercli.py:328 - Consumer Identity name=mac525400064615.example.com uuid=aaf4d121-9c9c-49ea-aaaf-40a05f848e63 2016-03-29 11:02:19,477 [DEBUG] subscription-manager:1986 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-server-ca.pem, candlepin-stage.pem, katello-default-ca.pem 2016-03-29 11:02:19,477 [DEBUG] subscription-manager:1986 @connection.py:494 - Making request: DELETE /rhsm/consumers/aaf4d121-9c9c-49ea-aaaf-40a05f848e63 2016-03-29 11:02:20,552 [DEBUG] subscription-manager:1986 @connection.py:521 - Response: status=204 2016-03-29 11:02:20,553 [INFO] subscription-manager:1986 @managerlib.py:789 - Successfully un-registered. 2016-03-29 11:02:20,555 [DEBUG] subscription-manager:1986 @managerlib.py:835 - Removing identity cert: /etc/pki/consumer/key.pem 2016-03-29 11:02:20,555 [DEBUG] subscription-manager:1986 @managerlib.py:835 - Removing identity cert: /etc/pki/consumer/cert.pem 2016-03-29 11:02:20,555 [DEBUG] subscription-manager:1986 @identity.py:131 - Loading consumer info from identity certificates. 2016-03-29 11:02:20,555 [DEBUG] subscription-manager:1986 @identity.py:143 - 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' 2016-03-29 11:02:20,555 [DEBUG] subscription-manager:1986 @cache.py:86 - Deleting cache: /var/lib/rhsm/packages/packages.json 2016-03-29 11:02:20,555 [DEBUG] subscription-manager:1986 @cache.py:86 - Deleting cache: /var/lib/rhsm/cache/installed_products.json 2016-03-29 11:02:20,555 [DEBUG] subscription-manager:1986 @cache.py:86 - Deleting cache: /var/lib/rhsm/facts/facts.json 2016-03-29 11:02:20,556 [INFO] subscription-manager:1986 @managerlib.py:860 - Cleaned local data 2016-03-29 11:02:20,556 [INFO] subscription-manager:1986 @managercli.py:1031 - --force specified, unregistered old consumer: aaf4d121-9c9c-49ea-aaaf-40a05f848e63 2016-03-29 11:02:20,566 [DEBUG] subscription-manager:1986 @hwprobe.py:554 - cpu info: {'cpu.cpu(s)': 4, 'cpu.core(s)_per_socket': 1, 'cpu.thread(s)_per_core': 1, 'cpu.topology_source': 'kernel /sys cpu sibling lists', 'cpu.cpu_socket(s)': 4} 2016-03-29 11:02:20,571 [DEBUG] subscription-manager:1986 @hwprobe.py:772 - Running 'virt-what' 2016-03-29 11:02:20,584 [DEBUG] subscription-manager:1986 @hwprobe.py:776 - virt-what stdout: kvm 2016-03-29 11:02:20,584 [DEBUG] subscription-manager:1986 @hwprobe.py:777 - virt-what stderr: 2016-03-29 11:02:20,592 [INFO] subscription-manager:1986 @hwprobe.py:854 - collected virt facts: virt.is_guest=True, virt.host_type=kvm, virt.uuid=85C2AAED-9ADD-489A-94F4-0A997D341349 2016-03-29 11:02:20,593 [DEBUG] subscription-manager:1986 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-server-ca.pem, candlepin-stage.pem, katello-default-ca.pem 2016-03-29 11:02:20,594 [DEBUG] subscription-manager:1986 @connection.py:494 - Making request: POST /rhsm/consumers?owner=Default_Organization&activation_keys=RHEV_Engine-fghdfghdfgh-RHEV_Engine 2016-03-29 11:02:23,290 [DEBUG] subscription-manager:1986 @connection.py:521 - Response: status=200 2016-03-29 11:02:23,293 [DEBUG] subscription-manager:1986 @cache.py:110 - Wrote cache: /var/lib/rhsm/cache/installed_products.json 2016-03-29 11:02:23,293 [INFO] subscription-manager:1986 @managerlib.py:75 - Consumer created: {'consumer_name': 'mac525400064615.example.com', 'uuid': 'ba71b6ef-3cab-40d6-881d-9fa83c140654'} 2016-03-29 11:02:23,293 [DEBUG] subscription-manager:1986 @utils.py:287 - No virt-who pid file, not attempting to restart 2016-03-29 11:02:23,294 [DEBUG] subscription-manager:1986 @identity.py:131 - Loading consumer info from identity certificates. 2016-03-29 11:02:23,295 [DEBUG] subscription-manager:1986 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-server-ca.pem, candlepin-stage.pem, katello-default-ca.pem 2016-03-29 11:02:23,295 [DEBUG] subscription-manager:1986 @connection.py:494 - Making request: GET /rhsm/status 2016-03-29 11:02:23,463 [DEBUG] subscription-manager:1986 @connection.py:521 - Response: status=200 2016-03-29 11:02:23,464 [INFO] subscription-manager:1986 @managercli.py:363 - Server Versions: {'rules-version': '5.15.2', 'candlepin': '3.0.0.9-Unknown', 'server-type': 'Red Hat Subscription Management'} 2016-03-29 11:02:23,465 [DEBUG] subscription-manager:1986 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-server-ca.pem, candlepin-stage.pem, katello-default-ca.pem 2016-03-29 11:02:23,465 [DEBUG] subscription-manager:1986 @connection.py:494 - Making request: GET /rhsm/ 2016-03-29 11:02:23,505 [DEBUG] subscription-manager:1986 @connection.py:521 - Response: status=200 2016-03-29 11:02:23,506 [DEBUG] subscription-manager:1986 @connection.py:744 - Server supports the following resources: {'available_releases': '/rhsm/consumers/:id/available_releases', 'status': '/rhsm/status', 'guestids': '/rhsm/consumers/:id/guestids', 'content_overrides': '/rhsm/consumers/:id/content_overrides', 'environments': '/rhsm/owners/:organization_id/environments', 'hypervisors': '/rhsm/hypervisors', 'export': '/rhsm/consumers/:id/export', 'owner': '/rhsm/consumers/:id/owner', 'certificates': '/rhsm/consumers/:consumer_id/certificates', 'servicelevels': '/rhsm/owners/:organization_id/servicelevels', 'serials': '/rhsm/consumers/:id/certificates/serials', 'deleted_consumers': '/rhsm/deleted_consumers', 'consumers': '/rhsm/environments/:environment_id/consumers', 'entitlements': '/rhsm/entitlements', 'profile': '/rhsm/consumers/:id/profile', 'dry-run': '/rhsm/consumers/:id/entitlements/dry-run', 'subscriptions': '/rhsm/subscriptions', 'checkin': '/rhsm/consumers/:id/checkin', 'deletionrecord': '/rhsm/consumers/:id/deletionrecord', 'release': '/rhsm/consumers/:id/release', 'packages': '/rhsm/consumers/:id/packages', 'owners': '/rhsm/users/:login/owners', 'compliance': '/rhsm/consumers/:id/compliance', 'enabled_repos': '/rhsm/systems/:id/enabled_repos', 'pools': '/rhsm/pools'} 2016-03-29 11:02:23,506 [DEBUG] subscription-manager:1986 @cache.py:138 - Checking current system info against cache: /var/lib/rhsm/packages/packages.json 2016-03-29 11:02:23,506 [DEBUG] subscription-manager:1986 @cache.py:393 - Cache does not exist 2016-03-29 11:02:23,506 [DEBUG] subscription-manager:1986 @cache.py:140 - System data has changed, updating server. 2016-03-29 11:02:23,506 [DEBUG] subscription-manager:1986 @profile.py:97 - Loading current RPM profile. 2016-03-29 11:02:23,538 [DEBUG] subscription-manager:1986 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-server-ca.pem, candlepin-stage.pem, katello-default-ca.pem 2016-03-29 11:02:23,543 [DEBUG] subscription-manager:1986 @connection.py:494 - Making request: PUT /rhsm/consumers/ba71b6ef-3cab-40d6-881d-9fa83c140654/packages 2016-03-29 11:02:24,775 [DEBUG] subscription-manager:1986 @connection.py:521 - Response: status=200 2016-03-29 11:02:24,784 [DEBUG] subscription-manager:1986 @cache.py:110 - Wrote cache: /var/lib/rhsm/packages/packages.json 2016-03-29 11:02:24,785 [DEBUG] subscription-manager:1986 @cache.py:110 - Wrote cache: /var/lib/rhsm/facts/facts.json 2016-03-29 11:02:24,785 [DEBUG] subscription-manager:1986 @cache.py:138 - Checking current system info against cache: /var/lib/rhsm/cache/installed_products.json 2016-03-29 11:02:24,785 [DEBUG] subscription-manager:1986 @cache.py:155 - No changes. 2016-03-29 11:02:24,785 [INFO] subscription-manager:1986 @managercli.py:1123 - System registered, updating entitlements if needed 2016-03-29 11:02:24,786 [DEBUG] subscription-manager:1986 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, katello-server-ca.pem, candlepin-stage.pem, katello-default-ca.pem 2016-03-29 11:02:24,786 [DEBUG] subscription-manager:1986 @connection.py:494 - Making request: GET /rhsm/consumers/ba71b6ef-3cab-40d6-881d-9fa83c140654/certificates/serials 2016-03-29 11:02:24,937 [DEBUG] subscription-manager:1986 @connection.py:521 - Response: status=200 2016-03-29 11:02:24,938 [ERROR] subscription-manager:1986 @managercli.py:160 - exception caught in subscription-manager 2016-03-29 11:02:24,938 [ERROR] subscription-manager:1986 @managercli.py:161 - string indices must be integers, not str Traceback (most recent call last): File "/usr/sbin/subscription-manager", line 82, in <module> sys.exit(abs(main() or 0)) File "/usr/sbin/subscription-manager", line 73, in main return managercli.ManagerCLI().main() File "/usr/share/rhsm/subscription_manager/managercli.py", line 2618, in main return CLI.main(self) File "/usr/share/rhsm/subscription_manager/cli.py", line 159, in main return cmd.main() File "/usr/share/rhsm/subscription_manager/managercli.py", line 489, in main return_code = self._do_command() File "/usr/share/rhsm/subscription_manager/managercli.py", line 1126, in _do_command self.entcertlib.update() File "/usr/share/rhsm/subscription_manager/certlib.py", line 31, in update self.report = self.locker.run(self._do_update) File "/usr/share/rhsm/subscription_manager/certlib.py", line 17, in run return action() File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 43, in _do_update return action.perform() File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 119, in perform expected = self._get_expected_serials() File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 254, in _get_expected_serials exp = self.get_certificate_serials_list() File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 236, in get_certificate_serials_list sn = d['serial']
Created attachment 1141320 [details] rhsm log
sorry about the excessive rhsm log paste; didn't realize how long it was; also attached.
/rhsm/consumers/<uuid>/certificates/serials should return something like: [{"serial":1952313458060376419}] Instead we're getting: { candlepin_proxies: [{"serial":1952313458060376419}] } From what I can see this is somehow happening due to active_model_serializers being loaded. I updated to ams 0.10.0.rc4 and it appears it resolved the problem. Working on building an updated package for Satellite 6.2
*** This bug has been marked as a duplicate of bug 1320287 ***