Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1365248

Summary: virt-who check-in on registered libvirt hypervisor creates a 2nd consumer
Product: [Community] Candlepin (Migrated to Jira) Reporter: Justin Sherrill <jsherril>
Component: candlepinAssignee: William Poteat <wpoteat>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.9.54CC: fgarciad, redakkan, skallesh, vrjain, wpoteat
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-2.3.5-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-06 15:08:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
rhsm.log
none
candlepin.log none

Description Justin Sherrill 2016-08-08 17:12:04 UTC
Description of problem:

When running virt-who with this configuration:

[libvirt]
type=libvirt
server=qemu:///system
owner=Default_Organization
env=Library
hypervisor_id=hostname
rhsm_prefix=/rhsm

On a libvirt based hypervisor that has registered with subscription-manager, it has been expressed that candlepin should re-use the existing consumer.  What we are seeing is that a second consumer is created.  One for the subscription-manager register, and one for the virt-who checkin.

This makes some types of subscriptions not fully usable such as:
"Red Hat Enterprise Linux, up to 8 guests"


Version-Release number of selected component (if applicable):
candlepin-0.9.54-1.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1.  On a libvirt hypervisor, register with subscription-manager
2.  Install and Configure virt-who as per my config above
3.  Run virt-who -o

Actual results:
Two consumers created

Expected results:
Only one consumer exists, the initial subscription-manager registered consumer is re-used.

Additional info:
Its possible that candlepin is handling this properly but no know one can tell us for sure either way.  As far as we can see it is not.  Regardless of whether candlepin is handling this properly or not, katello will likely need to be enhanced for it to work properly.

Comment 1 Justin Sherrill 2016-08-08 17:13:05 UTC
Created attachment 1188874 [details]
rhsm.log

Comment 2 Justin Sherrill 2016-08-08 17:16:06 UTC
Created attachment 1188878 [details]
candlepin.log