Bug 540998

Summary: Python traceback when provisioning Xen FV guest on RHEL 5.4
Product: [Fedora] Fedora EPEL Reporter: Milan Zázrivec <mzazrivec>
Component: cobblerAssignee: James C. <jimi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: el5CC: awood, edoutreleau, jeckersb, jimi, m.koshelev, orion, scott, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: cobbler-2.4.4-1.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-03 19:57:48 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:
Attachments:
Description Flags
patch for XEN FV domains provisioning with python-virtinst ver.0.400 none

Description Milan Zázrivec 2009-11-24 17:16:41 UTC
Description of problem:
When provisioning a Xen fully virtualized guest on a RHEL 5.4 Xen host,
following traceback occurs:

# koan --virt --server example.server.org -p fv-profile
- looking for Cobbler at http://example.server.org/cobbler_api
- reading URL: http://example.server.org/cblr/svc/op/ks/profile/fv-profile
install_tree: http://server.example.org/ks/dist/ks-rhel-x86_64-server-5-u4
libvirtd (pid  6585) is running...
exceptions.NameError
global name 'DistroManager' is not defined
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 204, in main
    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())

Version-Release number of selected component (if applicable):
koan-1.6.6-1.el5 (EPEL)
python-virtinst-0.400.3-5.el5 (RHEL 5.4)

How reproducible:
Always

Steps to Reproduce:
1. Provision a Xen FV guest on a RHEL 5.4 based host using cobbler/koan 
infrastructure
  
Actual results:
Traceback like the above

Expected results:
No traceback

Additional info:
This used to work in RHEL 5.3

Comment 1 Eric Doutreleau 2009-12-18 11:01:17 UTC
has someone found a way to install FV guest with cobbler
it s really a blocking bug

Comment 2 Mikhail Koshelev 2010-02-05 15:47:41 UTC
Created attachment 389103 [details]
patch for XEN FV domains provisioning with python-virtinst ver.0.400

The problem is RHEL 5.4 use python-virtinst version 0.400 which have some classes rearranged. I've made a quick patch for koan 1.6.6 which is attached here.

Comment 3 Orion Poplawski 2013-12-16 20:44:32 UTC
koan is a sub-package of cobbler

Comment 4 Orion Poplawski 2014-04-21 19:27:19 UTC
Is this still an issue

Comment 5 Fedora Update System 2014-04-21 20:33:06 UTC
cobbler-2.4.3-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/cobbler-2.4.3-1.el5

Comment 6 Fedora Update System 2014-04-22 15:34:19 UTC
cobbler-2.4.4-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.fc20

Comment 7 Fedora Update System 2014-04-22 15:35:27 UTC
cobbler-2.4.4-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.fc19

Comment 8 Fedora Update System 2014-04-22 15:36:32 UTC
cobbler-2.4.4-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.el6

Comment 9 Fedora Update System 2014-04-22 15:37:29 UTC
cobbler-2.4.4-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.el5

Comment 10 Fedora Update System 2014-04-22 19:56:40 UTC
Package cobbler-2.4.4-1.el5:
* should fix your issue,
* was pushed to the Fedora EPEL 5 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing cobbler-2.4.4-1.el5'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-1211/cobbler-2.4.4-1.el5
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2014-05-03 19:57:48 UTC
cobbler-2.4.4-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2014-05-08 22:00:14 UTC
cobbler-2.4.4-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2014-05-09 02:57:03 UTC
cobbler-2.4.4-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2014-05-09 22:02:12 UTC
cobbler-2.4.4-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.