Problem:
Hello! I am migrating hosts from an old Foreman instance to a new one. Similar hosts have been able to register successfully with no issues but others are unable to and I am currently stumped. Connectivity is all in place.
When running the generated curl command:
Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.
This system is not yet registered. Try ‘subscription-manager register --help’ for more information.
ERROR: not_found
Host was not found by the subscription UUID: ’ ', this can happen if the host is registered already, but not to this instance
output of /var/log/rhsm/rhsm.log:
2023-02-21 11:24:27,415 [INFO] subscription-manager:23251:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:27,431 [INFO] subscription-manager:23251:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:27,432 [INFO] subscription-manager:23251:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=none
2023-02-21 11:24:27,776 [INFO] subscription-manager:23279:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:28,137 [INFO] yum:23292:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:28,137 [INFO] yum:23292:MainThread @entcertlib.py:132 - certs updated:
Total updates: 0
Found (local) serial# []
Expected (UEP) serial# []
Added (new)
<NONE>
Deleted (rogue):
<NONE>
2023-02-21 11:24:29,010 [INFO] yum:23304:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:29,010 [INFO] yum:23304:MainThread @entcertlib.py:132 - certs updated:
Total updates: 0
Found (local) serial# []
Expected (UEP) serial# []
Added (new)
<NONE>
Deleted (rogue):
<NONE>
2023-02-21 11:24:30,464 [INFO] rhsmd:23332:MainThread @rhsm_d.py:382 - D-Bus API: com.redhat.SubscriptionManager provided by rhsmd is deprecated
2023-02-21 11:24:30,464 [INFO] rhsmd:23332:MainThread @rhsm_d.py:383 - Consider using D-Bus API: com.redhat.RHSM1 provided by rhsm.service
2023-02-21 11:24:30,489 [INFO] subscription-manager:23318:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:30,852 [INFO] subscription-manager:23346:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:31,212 [INFO] subscription-manager:23359:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:31,579 [INFO] subscription-manager:23374:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:31,593 [INFO] subscription-manager:23374:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:31,594 [INFO] subscription-manager:23374:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=none
2023-02-21 11:24:31,598 [INFO] subscription-manager:23374:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=none
2023-02-21 11:24:52,713 [ERROR] subscription-manager:23374:MainThread @managercli.py:217 - Error during registration: ''
2023-02-21 11:24:52,713 [ERROR] subscription-manager:23374:MainThread @managercli.py:218 - ''
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1389, in _do_command
type=self.options.consumertype
File "/usr/lib64/python2.7/site-packages/rhsmlib/services/register.py", line 93, in register
jwt_token=jwt_token
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 1063, in registerConsumer
return self.conn.request_post(url, params, headers=headers)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 733, in request_post
return self._request("POST", method, params, headers=headers)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 756, in _request
info=info, headers=headers)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 607, in _request
response = conn.getresponse()
File "/usr/lib64/python2.7/httplib.py", line 1144, in getresponse
response.begin()
File "/usr/lib64/python2.7/httplib.py", line 457, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python2.7/httplib.py", line 421, in _read_status
raise BadStatusLine(line)
BadStatusLine: ''
2023-02-21 11:24:53,086 [INFO] subscription-manager:23647:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:53,100 [INFO] subscription-manager:23647:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2023-02-21 11:24:53,101 [INFO] subscription-manager:23647:MainThread @connection.py:915 - Connection built: host=<proxy-address-here> port=443 handler=/rhsm auth=none
2023-02-21 11:46:27,622 [ERROR] rhsmcertd-worker:28288:MainThread @rhsmcertd_worker.py:211 - Either the consumer is not registered or the certificates are corrupted. Certificate update using daemon failed.
Expected outcome:
The system to be successfully registered
Foreman and Proxy versions:
3.1.3
Foreman and Proxy plugin versions:
3.1.3
Distribution and version:
RHEL 7.9
Other relevant data:
Any insight would be appreciated.