Hey gang: Attached is a patch to get rhn_register to send up smbios data during a remaining_subscriptions call, so that during rhn_register you won't get prompted for an IN if your account has no available channel entitlements, but you should get free guest channel entitlements due to the host having a virtualization system level entitlement.
-James
From a73c56d2ff4bed16d35ca552caac0089e6e86c1c Mon Sep 17 00:00:00 2001 From: James Bowes <[email protected]> Date: Thu, 28 May 2009 10:48:33 -0400 Subject: [PATCH] Send smbios data to remaining_subscriptions during registration For KVM or other non Xen virt types, rhn_register needs to send smbios info during a call to remaining_subscriptions, in case the user has no free channel entitlements, but would be granted a free for guest entitlement. --- .../rhn-client-tools/src/up2date_client/rhnreg.py | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py index 4e1b3be..ea4bf0f 100644 --- a/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py +++ b/client/rhel/rhn-client-tools/src/up2date_client/rhnreg.py @@ -576,15 +576,19 @@ def getRemainingSubscriptions(username, password): # If we've gotten this far, we're definitely looking at hosted. # Hosted will have to support the sending of the release, and optionally, # the virt_uuid. - if virt_uuid is not None: + + if cfg['supportsSMBIOS']: + smbios = hardware.get_hal_smbios() subs = s.registration.remaining_subscriptions(username, password, arch, release, - virt_uuid) + virt_uuid, + smbios) else: subs = s.registration.remaining_subscriptions(username, password, arch, - release) + release, + virt_uuid) log.log_debug('Server returned %s' % subs) -- 1.6.0.6
pgp6lRT4PWGyL.pgp
Description: PGP signature
_______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
