<subscription-manager register> fails, only returns ' '

Latest response

I am trying to evaluate RHEL 7.2 and its virtualization (4.0) offerings. Following the instructions here https://access.redhat.com/products/red-hat-virtualization#getstarted I am supposed to install rhevm using yum. Obviously that requires being subscribed so yum has access to the RHEL repositories.

When I go to register my system to my account, I get the following output:

[root@localhost ~]# subscription-manager register
Registering to: subscription.rhn.redhat.com:443/subscription
Username:
Password:
''

For username, I have attempted to use two different usernames, one with active subscritions and one with eval subscriptions. Both output the same single quotes ('').

Any further attempt to attach subscriptions results in an error stating that the system isn't registered.

There does not seem to be any messages in /var/log/messages

Any suggestions would be helpful.

Responses

Additional Information from /var/log/rhsm/rhsm.log:

2016-09-21 14:56:42,469 [DEBUG] subscription-manager:4544 @connection.py:475 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem 2016-09-21 14:56:42,469 [DEBUG] subscription-manager:4544 @connection.py:523 - Making request: POST /subscription/consumers?owner=2634756 2016-09-21 14:58:45,269 [ERROR] subscription-manager:4544 @managercli.py:160 - Error during registration: '' 2016-09-21 14:58:45,269 [ERROR] subscription-manager:4544 @managercli.py:161 - '' Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/managercli.py", line 1071, in _do_command content_tags=self.installed_mgr.tags) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 876, in registerConsumer return self.conn.request_post(url, params) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 647, in request_post return self._request("POST", method, params) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 544, in _request response = conn.getresponse() File "/usr/lib64/python2.7/httplib.py", line 1051, in getresponse response.begin() File "/usr/lib64/python2.7/httplib.py", line 415, in begin version, status, reason = self._read_status() File "/usr/lib64/python2.7/httplib.py", line 379, in _read_status raise BadStatusLine(line) BadStatusLine: ''

Please check if you have any HTTPS proxy intercepting the calls between your server and the internet, we have got a very similar problem.

There must have been a proxy in between my server and the internet proper. By using --proxy:10.xxx.xxx.xxx:3128 and going through a known good proxy the system was successfully registered.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.