RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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
Target Upstream Version:
Embargoed:


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.