Bug 795820 - KTEnvironment(#70223987213820) expected, got ActiveSupport::HashWithIndifferentAccess(#70224017037820)
Summary: KTEnvironment(#70223987213820) expected, got ActiveSupport::HashWithIndiffere...
Keywords:
Status: CLOSED DUPLICATE of bug 795452
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high vote
Target Milestone: Unspecified
Assignee: Tom McKay
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 703617 786730 795715
TreeView+ depends on / blocked
 
Reported: 2012-02-21 15:42 UTC by Tom McKay
Modified: 2018-08-30 21:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 795715
Environment:
Last Closed: 2012-02-21 15:54:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Tom McKay 2012-02-21 15:42:47 UTC
+++ This bug was initially created as a clone of Bug #795715 +++

Description of problem:

After regitering the host to SAM, the guest will give confused info when registering the guset to SAM.
The guest can be found on the sam web UI,but it is abnormal.
Firstly, if we click the guest, we can't see the fact's details.
Secondly, we can't list available pool of the guest. 
Thirdly, We can't unregister the guest. 

Version-Release number of selected component (if applicable):
katello-headpin-0.1.140-2.el6.noarch
katello-headpin-all-0.1.140-2.el6.noarch
katello-cli-headpin-0.1.15-2.el6.noarch
katello-glue-candlepin-0.1.238-3.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-certs-tools-1.0.2-2.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-0.1.40-2.el6.noarch
katello-common-0.1.238-3.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-configure-0.1.64-7.el6.noarch
katello-selinux-0.1.5-3.el6.noarch
candlepin-0.5.21-1.el6.noarch
candlepin-tomcat6-0.5.21-1.el6.noarch
thumbslug-0.0.21-1.el6.noarch


How reproducible:

always

Steps to Reproduce:

1.Install GUEST G on HOST
2.Resgister HOST to SAM useing username/password/org(admin/admin/ACME_Corporation)
3.Start virt-who service on HOST
#service virt-who restart
.............

Sending update to updateConsumer: ['8480ebe4-3875-4fcc-ac6f-c0676ec8b0c5']

4.Resgister GUEST G to SAM useing username/password/org(admin/admin/ACME_Corporation)
# subscription-manager  register --org=ACME_Corporation --force --name guest001
Username: admin
Password: 
KTEnvironment(#70223987213820) expected, got ActiveSupport::HashWithIndifferentAccess(#70224017037820)



Actual results:
After regitering the host to SAM, the guest will give confused info when registering the guset to SAM.

Expected results:

After regitering the host to SAM, the guest will give info: The system has been registered with id: $consumer ID

Additional info:

1.[root@localhost ~]# subscription-manager list --available
	Error updating system data, see /var/log/rhsm/rhsm.log for more details.
	[root@localhost ~]# vim /var/log/rhsm/rhsm.log 
	.........
	2012-02-22 10:46:16,806 [INFO]  @connection.py:362 - Connection Established: host: samserv.redhat.com, port: 443, handler: /headpin/api
	2012-02-22 10:46:27,689 [INFO]  @connection.py:350 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
	2012-02-22 10:46:27,689 [DEBUG]  @connection.py:188 - Loading CA PEM certificates from: /etc/rhsm/ca/
	2012-02-22 10:46:27,690 [DEBUG]  @connection.py:171 - Loading CA certificate: '/etc/rhsm/ca/candlepin-local.pem'
	2012-02-22 10:46:27,690 [DEBUG]  @connection.py:171 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
	2012-02-22 10:46:27,691 [DEBUG]  @connection.py:171 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
	2012-02-22 10:46:27,692 [DEBUG]  @connection.py:209 - Making request: GET /headpin/api/
	2012-02-22 10:46:27,740 [WARNING]  @connection.py:383 - Error fetching supported resources, this UEPConnection is likely not usable:
	2012-02-22 10:46:27,741 [ERROR]  @connection.py:385 - tlsv1 alert unknown ca
	Traceback (most recent call last):
	  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 376, in _load_supported_resources
	    resources_list = self.conn.request_get("/")
	  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 252, in request_get
	    return self._request("GET", method)
	  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 214, in _request
	    response = conn.getresponse()
	  File "/usr/lib/python2.6/httplib.py", line 990, in getresponse
	    response.begin()
	  File "/usr/lib/python2.6/httplib.py", line 391, in begin
	    version, status, reason = self._read_status()
	  File "/usr/lib/python2.6/httplib.py", line 349, in _read_status
	"/var/log/rhsm/rhsm.log" 487L, 39759C  
        
2.[root@localhost ~]# subscription-manager unregister
	tlsv1 alert unknown ca

3.service virt-who report info:
	Sending update to updateConsumer: ['8480ebe4-3875-4fcc-ac6f-c0676ec8b0c5']
	KTEnvironment(#70223987213820) expected, got ActiveSupport::HashWithIndifferentAccess(#70224017037820)
	Traceback (most recent call last):
	  File "/usr/share/virt-who/virt-who.py", line 143, in _send
	  File "/usr/share/virt-who/subscriptionmanager.py", line 80, in sendVirtGuests
	SubscriptionManagerError: KTEnvironment(#70223987213820) expected, got ActiveSupport::HashWithIndifferentAccess(#70224017037820)
	Error in communication with candlepin, trying to recover

--- Additional comment from cduryee on 2012-02-21 09:07:09 EST ---

This error appears to be coming from katello/headpin, changing component.

Comment 1 Tom McKay 2012-02-21 15:54:12 UTC

*** This bug has been marked as a duplicate of bug 795452 ***


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