Bug 1126321 - subscription-manager register throws "Unit type 'system' could not be found."
Summary: subscription-manager register throws "Unit type 'system' could not be found."
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-04 07:54 UTC by Shwetha Kallesh
Modified: 2014-08-04 18:44 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-04 18:44:39 UTC


Attachments (Terms of Use)

Description Shwetha Kallesh 2014-08-04 07:54:16 UTC
Description of problem:
subscription-manager register throws "Unit type 'system' could not be found."

Version-Release number of selected component (if applicable):
[root@dhcp-0-177 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.22-1
subscription management rules: 5.11
subscription-manager: 1.12.11-1.git.0.93a5161.el6
python-rhsm: 1.12.5-1.git.0.744254e.el6


How reproducible:


Steps to Reproduce:
[root@dhcp-0-177 ~]# subscription-manager register 
Username: admin
Password: 
Organization: admin
Unit type 'system' could not be found.

[root@dhcp-0-177 ~]# tail -f /var/log/rhsm/rhsm.log
2014-08-04 13:22:35,209 [DEBUG] subscription-manager @connection.py:414 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, candlepin-ca.pem, redhat-uep.pem, 10.pem
2014-08-04 13:22:35,209 [DEBUG] subscription-manager @connection.py:446 - Making request: GET /candlepin/users/admin/owners
2014-08-04 13:22:35,222 [DEBUG] subscription-manager @connection.py:469 - Response: status=200
2014-08-04 13:22:37,733 [DEBUG] subscription-manager @connection.py:414 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, candlepin-ca.pem, redhat-uep.pem, 10.pem
2014-08-04 13:22:37,733 [DEBUG] subscription-manager @connection.py:446 - Making request: GET /candlepin/
2014-08-04 13:22:37,743 [DEBUG] subscription-manager @connection.py:469 - Response: status=200
2014-08-04 13:22:37,744 [DEBUG] subscription-manager @connection.py:686 - Server supports the following resources:
2014-08-04 13:22:37,744 [DEBUG] subscription-manager @connection.py:687 - {'': '/', 'guestids': '/consumers/{consumer_uuid}/guestids', 'cdn': '/cdn', 'content_overrides': '/consumers/{consumer_uuid}/content_overrides', 'hypervisors': '/hypervisors', 'serials': '/serials', 'deleted_consumers': '/deleted_consumers', 'consumers': '/consumers', 'migrations': '/migrations', 'content': '/content', 'entitlements': '/entitlements', 'events': '/events', 'status': '/status', 'jobs': '/jobs', 'users': '/users', 'subscriptions': '/subscriptions', 'rules': '/rules', 'distributor_versions': '/distributor_versions', 'statistics/generate': '/statistics/generate', 'activation_keys': '/activation_keys', 'atom': '/atom', 'owners': '/owners', 'roles': '/roles', 'admin': '/admin', 'products': '/products', 'pools': '/pools', 'consumertypes': '/consumertypes', 'crl': '/crl'}
2014-08-04 13:22:37,745 [DEBUG] subscription-manager @connection.py:414 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, candlepin-ca.pem, redhat-uep.pem, 10.pem
2014-08-04 13:22:37,745 [DEBUG] subscription-manager @connection.py:446 - Making request: POST /candlepin/consumers?owner=admin
2014-08-04 13:22:37,765 [DEBUG] subscription-manager @connection.py:469 - Response: status=400
2014-08-04 13:22:37,766 [ERROR] subscription-manager @managercli.py:1049 - Unit type 'system' could not be found.
Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 1044, in _do_command
    installed_products=self.installed_mgr.format_for_server())
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 738, in registerConsumer
    return self.conn.request_post(url, params)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 553, in request_post
    return self._request("POST", method, params)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 478, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 520, in validateResponse
    raise RestlibException(response['status'], error_msg)
RestlibException: Unit type 'system' could not be found.


Actual results:


Expected results:


Additional info:


Note You need to log in before you can comment on or make changes to this bug.