Problem: Subscription manager issue on severver host
Expected outcome:
Foreman and Proxy versions: Foreman Version 1.20.3
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data:
Forbidden: Invalid credentials for request.
[root@fhi0150testsat02 rhsm]# til
-bash: til: command not found
[root@fhi0150testsat02 rhsm]# tail /var/log/rhsm/rhsm.log
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 631, in _request
self.validateResponse(result, request_type, handler)
File “/usr/lib64/python2.7/site-packages/rhsm/connection.py”, line 707, in validateResponse
handler=handler)
ForbiddenException: Server error attempting a POST to /rhsm/consumers?owner=IBD-COHI&activation_keys=IBD-COHI-RH7-PROD returned status 403
Forbidden: Invalid credentials for request.
thanks for your answer, i am running this command from host
subscription manager record --org = “IBD-COHI” --activationkey = “IBD-COHI-RH7-PROD” --force
Hello, this is the content of the rhsm.conf file, as you can see in the server section, it has the foreman’s server data, by ip I can change it by name but it will surely give the same failure, I have tried communication through port 443 from this server and it is correct
I have changed the server for the fqdn and now I have this error when registering
Server error attempting a POST to /rhsm/consumers?owner=IBD-COHI&activation_keys=IBD-COHI-RH7-P
ROD returned status 404
2021-05-31 08:36:41,313 [ERROR] subscription-manager:174436:MainThread @managercli.py:217 - Error during registration:
Server error attempting a POST to /rhsm/consumers?owner=IBD-COHI&activation_keys=IBD-COHI-RH7-PROD returned status 40
4
2021-05-31 08:36:41,313 [ERROR] subscription-manager:174436:MainThread @managercli.py:218 - Server error attempting a
POST to /rhsm/consumers?owner=IBD-COHI&activation_keys=IBD-COHI-RH7-PROD returned status 404
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 91, in register
usage=usage
File “/usr/lib64/python2.7/site-packages/rhsm/connection.py”, line 1025, in registerConsumer
return self.conn.request_post(url, params)
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 631, in _request
self.validateResponse(result, request_type, handler)
File “/usr/lib64/python2.7/site-packages/rhsm/connection.py”, line 699, in validateResponse
handler=handler)
RemoteServerException: Server error attempting a POST to /rhsm/consumers?owner=IBD-COHI&activation_keys=IBD-COHI-RH7-P
ROD returned status 404
I would suggest to download katello-ca-consumer rpm & install subscription-manager from it. The instructions how to do it should be at Hosts > Content hosts > Register host (if I remember correctly)
One last question in the foreman repositories for Redhat 7 I need the update of the products to collect the information from the Redhat url to perform the aprcheos correctly just as for centos 7 I need the url similar to this for redhat http: // CentOS Mirror
Do you know where I can locate it or which mirror I can use?
another question when I try to attach to a poolid it gives me the following message This unit has already had the subscription matching pool ID “2c969b0d795bbd7701795bc8e59d0001” attached.
Entitlement Certificate (s) update failed due to the following reasons:
- unknown string format
And it does not show me the available repos to perform update dbo to create the repos by hand or should it automatically download these repos?