Bug 560636 - error during rhn_register of virtual machine without uuid
Summary: error during rhn_register of virtual machine without uuid
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Network
Classification: Retired
Component: RHN/Backend
Version: rhn512
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bryan Kearney
QA Contact: Red Hat Network Quality Assurance
URL:
Whiteboard:
Depends On: 543509
Blocks: space08 559485
TreeView+ depends on / blocked
 
Reported: 2010-02-01 13:27 UTC by Miroslav Suchý
Modified: 2013-01-10 09:33 UTC (History)
3 users (show)

Fixed In Version:
Clone Of: 543509
Environment:
Last Closed: 2010-02-01 14:14:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2010-02-01 13:27:33 UTC
You may want to apply fix from this bug as well.

+++ This bug was initially created as a clone of Bug #543509 +++

Created an attachment (id=375451)
Traceback

Description of problem:
When you try to rhn_register qemu machine, which do not have uuid. You get traceback on server and registration will fail.

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


How reproducible:
several time

Steps to Reproduce:
1.  lshal  |grep smbios.system.uuid
smbios.system.uuid = 'Not Settable'  (string)
If you have there some number, grab another virtual machine, this is prerequisity.
2. rhn_register
  
Actual results:
error

Expected results:
you will be registered

Additional info:

--- Additional comment from msuchy on 2009-12-02 10:16:24 EST ---

Solution is to replace:
  uuid_as_number = string.atol(uuid, 16)
with:
  if uuid == 'Not Settable':
      uuid_as_number = 0
  else:
      uuid_as_number = string.atol(uuid, 16)

--- Additional comment from msuchy on 2009-12-07 07:52:40 EST ---

commited as 7cdd2dd93f7fe05da6aab3e8b104bb3aa0d23801

Comment 1 Miroslav Suchý 2010-02-01 14:14:48 UTC
Scratch this. We should catch this case in client tools and not send it at all.


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