Bug 559485 - 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 Satellite 5
Classification: Red Hat
Component: Server
Version: 530
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On: 543509 560636
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-28 09:36 UTC by Miroslav Suchý
Modified: 2010-02-01 17:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 543509
Environment:
Last Closed: 2010-02-01 15:34:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2010-01-28 09:36:46 UTC
+++ 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 15:34:05 UTC
Scratch this, we should fix this in client tool and not send that string at all.


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