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

Bug 520812

Summary: traceback when provisioning FV Xen Guest
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: VirtualizationAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: medium Docs Contact:
Priority: medium    
Version: 530CC: benl, bkearney, cperry, edoutreleau, psklenar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-04 10:48:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 500798, 518261    

Description Jan Hutař 2009-09-02 14:21:15 UTC
Description of problem:
I'm testing RHEL5-U3 kickstarts (from Sat530) and to test
RHEL5-U3 FV XEN Guest KS, I have tried to provision one and on
the Host I have obtained traceback:


Version-Release number of selected component (if applicable):
Satellite 5.3.0 20090820.0 (updated to .1)


How reproducible:
2 of 2 attepts


Steps to Reproduce:
1. try to provision FV Xen guest


Actual results:
[root@dhcp-lab-126 ~]# rhn_check -vv
D: check_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>packages.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><array><data>\n<value><string>spacewalk-koan</string></value>\n<value><string>0.1.11</string></value>\n<value><string>12.el5sat</string></value>\n<value><string></string></value>\n<value><string>noarch</string></value>\n</data></array></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 900}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at  1251741180.83  with expiration of  1251744780.83  seconds.
successfully retrieved authentication token from up2date server
D: logininfo: {'X-RHN-Server-Id': 1000010083, 'X-RHN-Auth-Server-Time': '1251719579.31', 'X-RHN-Auth': 'zWtTPWnHbHy4yL0r5L0m7A==', 'X-RHN-Auth-Channels': [['rhel-x86_64-server-5', '20090827083617', '1', '1'], ['rhel-x86_64-server-vt-5', '20090827071637', '0', '1'], ['rhn-tools-rhel-x86_64-server-5', '20090826175051', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
D: handle_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>packages.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><array><data>\n<value><string>spacewalk-koan</string></value>\n<value><string>0.1.11</string></value>\n<value><string>12.el5sat</string></value>\n<value><string></string></value>\n<value><string>noarch</string></value>\n</data></array></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 900}
D: handle_action actionid = 900, version = 2
D: do_call packages.update ([['spacewalk-koan', '0.1.11', '12.el5sat', '', 'noarch']],)
Loaded plugins: rhnplugin
D: Called update [['spacewalk-koan', '0.1.11', '12.el5sat', '', 'noarch']]
Package spacewalk-koan-0.1.11-12.el5sat.noarch already installed and latest version
D: Dependencies Resolved
D: Downloading Packages:
D: Running Transaction Test
D: Finished Transaction Test
D: Transaction Test Succeeded
D: Running Transaction
Updating package profile
D: Sending back response (0, 'Update Succeeded', {})
D: check_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>kickstart_guest.initiate</methodName>\n<params>\n<param>\n<value><string>pipa02.englab.brq.redhat.com</string></value>\n</param>\n<param>\n<value><string>MAT_dhcp-lab-126.englab.brq.redhat.com:2:el5FV</string></value>\n</param>\n<param>\n<value><string>xenfv</string></value>\n</param>\n<param>\n<value><int>161</int></value>\n</param>\n<param>\n<value><string>el5FV</string></value>\n</param>\n<param>\n<value><int>512</int></value>\n</param>\n<param>\n<value><int>1</int></value>\n</param>\n<param>\n<value><int>3</int></value>\n</param>\n<param>\n<value><string>xenbr0</string></value>\n</param>\n<param>\n<value><string>/var/lib/xen/images/el5FV</string></value>\n</param>\n<param>\n<value><string> </string></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 901}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at  1251741184.59  with expiration of  1251744784.59  seconds.
successfully retrieved authentication token from up2date server
D: logininfo: {'X-RHN-Server-Id': 1000010083, 'X-RHN-Auth-Server-Time': '1251719583.1', 'X-RHN-Auth': 'gNOpbkw8wQEcq1pTVN47ZA==', 'X-RHN-Auth-Channels': [['rhel-x86_64-server-5', '20090827083617', '1', '1'], ['rhel-x86_64-server-vt-5', '20090827071637', '0', '1'], ['rhn-tools-rhel-x86_64-server-5', '20090826175051', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
D: handle_action {'action': "<?xml version='1.0'?>\n<methodCall>\n<methodName>kickstart_guest.initiate</methodName>\n<params>\n<param>\n<value><string>pipa02.englab.brq.redhat.com</string></value>\n</param>\n<param>\n<value><string>MAT_dhcp-lab-126.englab.brq.redhat.com:2:el5FV</string></value>\n</param>\n<param>\n<value><string>xenfv</string></value>\n</param>\n<param>\n<value><int>161</int></value>\n</param>\n<param>\n<value><string>el5FV</string></value>\n</param>\n<param>\n<value><int>512</int></value>\n</param>\n<param>\n<value><int>1</int></value>\n</param>\n<param>\n<value><int>3</int></value>\n</param>\n<param>\n<value><string>xenbr0</string></value>\n</param>\n<param>\n<value><string>/var/lib/xen/images/el5FV</string></value>\n</param>\n<param>\n<value><string> </string></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2, 'id': 901}
D: handle_action actionid = 901, version = 2
D: do_call kickstart_guest.initiate ('pipa02.englab.brq.redhat.com', 'MAT_dhcp-lab-126.englab.brq.redhat.com:2:el5FV', 'xenfv', 161, 'el5FV', 512, 1, 3, 'xenbr0', '/var/lib/xen/images/el5FV', ' ')
- looking for Cobbler at http://pipa02.englab.brq.redhat.com/cobbler_api
- reading URL: http://pipa02.englab.brq.redhat.com/cblr/svc/op/ks/system/MAT_dhcp-lab-126.englab.brq.redhat.com:2:el5FV
install_tree: http://pipa02.englab.brq.redhat.com/ty/8YChKAEM
libvirtd (pid  3227) is running...
exceptions.NameError
global name 'DistroManager' is not defined
  File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line 191, in initiate_guest
    k.run()
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 312, in run
    self.virt()
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 601, in virt
    return self.net_install(after_download)
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 520, in net_install
    after_download(self, profile_data)
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 599, in after_download
    self.virt_net_install(profile_data)
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 1080, in virt_net_install
    virt_type     =  self.virt_type
   File "/usr/lib/python2.4/site-packages/koan/xencreate.py", line 72, in start_install
    guest = virtinst.FullVirtGuest(installer=DistroManager.PXEInstaller())

D: Sending back response ((6,), 'Fatal error in Python code occured', {})
D: do_call packages.checkNeedUpdate ('rhnsd=1',)
D: local action status:  (0, 'rpm database not modified since last update (or package list recently updated)', {})


Expected results:
should work


Additional info:
Reporting to have this tracked in Bugzilla.

From recent email communication:

From: Pradeep Kilambi <pkilambi>
Subject: Re: traceback when provisioning FV XEN Guest
Date: Tue, 01 Sep 2009 18:13:53 -0400

Looks like its koan related. koan is trying to access DistroManager  but 
as per the module there is no such thing. cc'ing mdehaan, may be its a 
known issue.

~ Prad

Comment 1 Jiri Zapletal 2009-09-23 12:51:48 UTC
*** Bug 523183 has been marked as a duplicate of this bug. ***

Comment 2 Milan Zázrivec 2009-11-20 21:49:27 UTC
*** Bug 539528 has been marked as a duplicate of this bug. ***

Comment 3 Milan Zázrivec 2009-11-24 16:32:20 UTC
Problem was caused by relayout of python-virtinst modules.

thirdparty.git master:
6ef8d2a3491e5b44d850cb1939a491a45bd06945
6ef8d2a3491e5b44d850cb1939a491a45bd06945

tagged & built: koan-1.6.8-4

Comment 5 Milan Zázrivec 2009-11-24 17:00:03 UTC
QA:
1) verify that you are able to kickstart Xen FV guest (i.e. the fix
indeed works)
2) verify that you are able to kickstart KVM guest (i.e. the fix did
not break KVM guest provisioning)

Comment 10 Petr Sklenar 2009-12-02 09:39:33 UTC
testing procedure:

xen-host on rhel54
sat531 on rhel54 with rhn-virtualization-5.3.0-13.el5sat
spacewalk-koan-0.1.11-13.el5sat koan-1.6.8-4.el5sat


1. create environment up to
https://<satellite_server>/rhn/help/reference/en-US/ch-cobbler.jsp
2. create kickstart with profile = full virt xen guest
3. provision this fv xen guest
4. webUI: restart/suspend/resume/shutdown works
   webUI allocate mem and cpu works

> only start doesn't work : bug 543004

--
moving to Verified

Comment 12 errata-xmlrpc 2009-12-04 10:48:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1639.html

Comment 13 Eric Doutreleau 2009-12-18 10:58:32 UTC
the link is giving me a 404 status page :(
where can we find it?

Comment 14 Milan Zázrivec 2009-12-18 12:07:38 UTC
I'm not sure why that page is broken (I've reported the problem internally).

You can find this errata after logging in at:
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=9390