Bug 616403 - guests running on rhel6 kvm host consumes regular entitlement
Summary: guests running on rhel6 kvm host consumes regular entitlement
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Virtualization
Version: 540
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Jiri Kastner
URL:
Whiteboard:
Depends On:
Blocks: sat540-blockers sat540-flexguest
TreeView+ depends on / blocked
 
Reported: 2010-07-20 11:23 UTC by Jiri Kastner
Modified: 2012-04-02 12:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-28 14:56:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jiri Kastner 2010-07-20 11:23:39 UTC
Description of problem:
guests running on rhel6 kvm host are consuming regular entitlements, not flex entitlements as rhel6 guests running on rhel5 host.

Version-Release number of selected component (if applicable):


How reproducible:
always on sw nightly

Steps to Reproduce:
1. install spacewalk nightly
2. prepare kvm host on rhel5
3. prepare kvm host on rhel6
4. create kvm guest on rhel5
5. create kvm guest on rhel6
6. register kvm guest created in step 4 to spacewalk
7. register kvm guest created in step 5 to spacewalk
8. check results
  
Actual results:
 - kvm guest running on rhel5 is visible as virtual pc and consumes flex entitlement
 - lvm guest running on rhel6 is visible as regular pc and consumes regular entitlement


Expected results:
all guests consumes flex guest entitlements

Additional info:

Comment 2 Justin Sherrill 2010-08-05 15:27:39 UTC
Hrm, I am not able to reproduce this:


[root@localhost ~]# rpm -qa | grep rhn
rhnlib-2.5.22-6.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
rhn-client-tools-1.0.0-33.el6.noarch
rhn-setup-1.0.0-33.el6.noarch
rhn-check-1.0.0-33.el6.noarch


Can you provide me with a guest that exhibits the problem?

Thanks,

-Justin

Comment 4 Justin Sherrill 2010-08-10 18:38:39 UTC
fixed issue where guests getting 'free' entitlements would show up under "Guests consuming regular entitlements':

d67b9758609fec42cf8481793d49a555ce5600e6

Comment 6 Jan Hutař 2010-08-18 11:18:44 UTC
Hello Justin, I see changes are in some XML file. In which package/nightly build this change lives? Also could you move this bug to ON_QA or so once it is ready to be tested?

Comment 7 Clifford Perry 2010-08-18 16:21:44 UTC
links provided in comment 5 are not working :(

Justin please try looking and see if we can move this to modified or on_qa.

Comment 8 Justin Sherrill 2010-08-18 16:43:39 UTC
Cliff, so getting this to modified or on_qa will require client side changes.  Do you want me to go ahead and make those?

Comment 9 Justin Sherrill 2010-08-18 17:17:59 UTC
errr, ignore my comment #8, got confused with a different bugzilla #

Comment 10 Justin Sherrill 2010-08-18 17:18:59 UTC
This should be on latest ISO, package version spacewalk-java-1.2.4-1 or newer

Comment 15 Jiri Kastner 2010-10-07 07:37:50 UTC
tested with 
http://download.devel.redhat.com/nightly/latest-RHEL5.6-Server/5/i386/os/Server/rhn-{check,client-tools,setup}-0.4.20-33.el5_5.2.noarch.rpm
result:

An error has occurred:
exceptions.NameError
See /var/log/up2date for more information
tail /var/log/up2date
An error has occurred:
exceptions.NameError
See /var/log/up2date for more information
[root@localhost ~]# tail /var/log/up2date 
  File "/usr/share/rhn/up2date_client/rhncli.py", line 65, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 157, in main
    rhnreg.sendHardware(systemId, hardwareList)
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 630, in sendHardware
    s.registration.add_hw_profile(systemId, _encode_characters(hardwareList))
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 613, in _encode_characters
    if item_type == StringType or item_type == UnicodeType:
exceptions.NameError: global name 'StringType' is not defined

Comment 17 Miroslav Suchý 2010-10-07 08:29:53 UTC
TB in #15 and #16 are problem with BZ 618250, I'm going to fix it

Comment 18 Miroslav Suchý 2010-10-07 09:34:57 UTC
New rhn-client-tools built, you can retest it again.

Comment 19 Jiri Kastner 2010-10-07 11:24:01 UTC
verified with rhn-client-tools-0.4.20-44.el5

Comment 21 Clifford Perry 2010-10-28 14:51:48 UTC
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. 


RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332

RHEA-2010:0803 - RHN Tools enhancement update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333

RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334

RHEA-2010:0800 - RHN Satellite Server 5.4.0
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335

Docs are available:

http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html 

Regards,
Clifford


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