Bug 781449

Summary: Error during update list of guests:$esx uuid: No such consumer type: hypervisor
Product: [Retired] Subscription Asset Manager Reporter: Hui Wang <huiwang>
Component: candlepinAssignee: Michael Stead <mstead>
Status: CLOSED CURRENTRELEASE QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 1.0.0CC: cduryee, khong, mstead, rnovacek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-08 04:50:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 703617, 761569    

Description Hui Wang 2012-01-13 13:22:23 UTC
Description of problem:
virt-who returns error when reporting ESX host/guest mappings to candlepin:  
Error during update list of guests: 44454c4c-4c00-1031-8053-b8c04f4e3258: No such consumer type: hypervisor

Version-Release number of selected component (if applicable):
virt-who-0.5-3.el5
python-rhsm-0.98.8-1.el5
subscription-manager-0.98.9-1.el5
subscription-manager-gnome-0.98.9-1.el5
subscription-manager-firstboot-0.98.9-1.el5
katello-glue-candlepin-0.1.150-2.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-cli-common-0.1.30-2.el6.noarch
katello-configure-0.1.42-2.el6.noarch
katello-headpin-all-0.1.119-2.el6.noarch
katello-cli-headpin-0.1.13-2.el6.noarch
katello-certs-tools-1.0.1-2.el6.noarch
katello-headpin-0.1.119-2.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-common-0.1.150-2.el6.noarch
katello-glue-candlepin-0.1.150-2.el6.noarch
candlepin-0.5.8-1.el6.noarch
candlepin-tomcat6-0.5.8-1.el6.noarch
thumbslug-0.0.21-1.el6.noarch


How reproducible:

always

Steps to Reproduce:
1. prepared one rhel5.8-snapshot2.0 host, and register to SAM:
#subscription-namager register --org=org1 --environment=org1-env1
--username=$username --password=$password

2.Deployed the env of ESX as following:
Vcenter server IP : 10.66.5.176
Vsphere client Ip : 10.66.6.128
ESX IP: 10.66.6.66
Installed some Guests on ESX

3.Set the /etc/sysconfig/virt-who on rhel5.8-snapshot2.0 host (or on one of the
guests that is installed on ESX).

#vim /etc/sysconfig/virt-who
VIRTWHO_BACKGROUND=1
VIRTWHO_DEBUG=1
VIRTWHO_ESX=1
VIRTWHO_ESX_OWNER=org1
VIRTWHO_ESX_ENV=org1-env1
VIRTWHO_ESX_SERVER=https://10.66.5.176
VIRTWHO_ESX_USERNAME=Administrator
VIRTWHO_ESX_PASSWORD=123qweP

4.Start the virt-who service
#service virt-who restart
Stopping virt-who:                                         [  OK  ]
Starting virt-who: Listening for events is not available in VDSM or ESX mode
Virt-who is running in esx mode
Starting infinite loop with 60 seconds interval and event handling
                                                           [  OK  ]
[root@localhost ~]# Sending updates in hosts-to-guests mapping: {44454c4c-4c00-1031-8053-b8c04f4e3258: [564d0437-372d-b84d-8a6c-dd6e92b91d89, 564daad1-a9dc-d0d9-9bfb-d2a730a888ce, 564d6e32-2f23-d7cd-09b1-e5861086c087, 564dcd6a-01ab-d413-5ea9-1275dff5ff58, 564d5f4c-b07f-22cf-a9fd-234ba11f46f9, 423bad51-b0ba-cb54-6154-2b6bcc4cae7b]}
Error during update list of guests: 44454c4c-4c00-1031-8053-b8c04f4e3258: No such consumer type: hypervisor
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Error info 
  
Actual results:

virt-who returns error when reporting ESX host/guest mappings to candlepin:  
Error during update list of guests: 44454c4c-4c00-1031-8053-b8c04f4e3258: No such consumer type: hypervisor

Expected results:

no error returns.
 
Additional info:

Comment 1 Chris Duryee 2012-01-13 14:02:57 UTC
Hui,

When you set up katello, did you do a manfiest import? You may be running into a bug where default consumer types are deleted on import. This was fixed in the candlepin code, but is not in 0.5.8. Once 0.5.9 is built, it should be in there.

Reassigning to mstead (author of fix) and marking bug as MODIFIED.

79f023bae62c1aa master 0.5.9+

Comment 2 Hui Wang 2012-01-16 03:07:58 UTC
(In reply to comment #1)
> Hui,
> 
> When you set up katello, did you do a manfiest import? You may be running into
> a bug where default consumer types are deleted on import. This was fixed in the
> candlepin code, but is not in 0.5.8. Once 0.5.9 is built, it should be in
> there.
> 
> Reassigning to mstead (author of fix) and marking bug as MODIFIED.
> 
> 79f023bae62c1aa master 0.5.9+

Hi,Chris

Pls update the candlepin package in latest build.
Now the candlepin package is candlepin-0.5.8-1.el6.noarch.rpm in 
http://download.devel.redhat.com/brewroot/repos/sam-1-rhel-6-build/latest/x86_64/pkglist

Thanks.

Comment 4 Michael Stead 2012-01-16 20:39:36 UTC
Candlepin-0.5.10-1.el6 now appears to be in sam-1-rhel-6-build.

Comment 5 Hui Wang 2012-01-17 04:46:53 UTC
(In reply to comment #4)
> Candlepin-0.5.10-1.el6 now appears to be in sam-1-rhel-6-build.

Deployed sam-1-rhel-6-build failed.Details see bug https://bugzilla.redhat.com/show_bug.cgi?id=781916.

Comment 6 Hui Wang 2012-02-06 10:50:41 UTC
I verified the issue.The result is PASS.

Version of verification:
katello-configure-0.1.55-2.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-headpin-0.1.130-2.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-certs-tools-1.0.2-2.el6.noarch
katello-cli-headpin-0.1.15-2.el6.noarch
katello-glue-candlepin-0.1.211-2.el6.noarch
katello-headpin-all-0.1.130-2.el6.noarch
katello-cli-common-0.1.40-2.el6.noarch
katello-common-0.1.211-2.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
thumbslug-0.0.21-1.el6.noarch
gthumb-2.10.11-8.el6.x86_64
candlepin-tomcat6-0.5.15-1.el6.noarch
katello-glue-candlepin-0.1.211-2.el6.noarch
candlepin-0.5.15-1.el6.noarch

Step
1. prepared one rhel5.8-snapshot4.0 host, and register to SAM:
#subscription-namager register --org=ACME_Corporation --environment=env1
--username=$username --password=$password

2.Deployed the env of ESX as following:
Set the vcenter's username/password 
Vcenter username : Administrator
Vcenter password :123qweP
Vcenter server IP : 10.66.5.106
Vsphere client Ip : 10.66.6.128
ESX IP: 10.66.6.66
ESX username=$username
ESX password=$password
Installed some Guests on ESX

3.Set the /etc/sysconfig/virt-who on rhel5.8-snapshot5.0 host (or on one of the
guests that is installed on ESX).

#vim /etc/sysconfig/virt-who
VIRTWHO_BACKGROUND=1
VIRTWHO_DEBUG=1
VIRTWHO_ESX=1
VIRTWHO_ESX_OWNER=ACME_Corporation
VIRTWHO_ESX_ENV=env1
VIRTWHO_ESX_SERVER=10.66.5.106
VIRTWHO_ESX_USERNAME=Administrator
VIRTWHO_ESX_PASSWORD=123qweP

4.Restart virt-who service
#service virt-who restart
....
Sending updates in hosts-to-guests mapping: {None: [],
44454c4c-4400-104d-8036-b2c04f583258: [564de060-fa51-849d-d4bd-18bc8d840c98,
42175cbd-64c2-da7f-93d5-3b6236ac9f1c, 564d0ffe-a533-b2d5-5084-13490b17cc6f,
42372c55-ea2d-52dc-9ab1-960940e04acb, 423773ac-894d-8444-9520-2c55876f1b9e]}
Updated host: 44454c4c-4400-104d-8036-b2c04f583258 with guests:
[564de060-fa51-849d-d4bd-18bc8d840c98, 42175cbd-64c2-da7f-93d5-3b6236ac9f1c,
564d0ffe-a533-b2d5-5084-13490b17cc6f, 564d0cd9-5b06-70d9-9b9a-e00c9f7207cb,  
423773ac-894d-8444-9520-2c55876f1b9e]
Updated host: null with guests: []

Comment 7 Keqin Hong 2012-02-08 04:50:09 UTC
closed as per comment 6.