[Spacewalk-list] Error on provisioning of VM on kvm system

James Hogarth james.hogarth at gmail.com
Tue Aug 3 11:03:27 UTC 2010


On 24 June 2010 01:24, Matt Carey <cvstealth2000 at yahoo.com> wrote:
> I was also getting this error when trying to provision Xen guest on a CentOS
> 5.5 host running Spacewalk 1.0:
> <snip>
> url=http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img
> - reading URL:
> http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img
> downloading kernel vmlinuz to /var/lib/xen/vmlinuz
> url=http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz
> - reading URL:
> http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz
> exceptions.AttributeError
> Koan instance has no attribute 'virt_auto_boot'
>   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 329, in run
>     self.virt()
>    File "/usr/lib/python2.4/site-packages/koan/app.py", line 652, in virt
>     return self.net_install(after_download)
>    File "/usr/lib/python2.4/site-packages/koan/app.py", line 571, in
> net_install
>     after_download(self, profile_data)
>    File "/usr/lib/python2.4/site-packages/koan/app.py", line 650, in
> after_download
>     self.virt_net_install(profile_data)
>    File "/usr/lib/python2.4/site-packages/koan/app.py", line 1113, in
> virt_net_install
>     virt_auto_boot      = self.calc_virt_autoboot(pd, self.virt_auto_boot)
>
> As suggested koan was downgraded to the earlier version in EPEL:
> [root at spacewalk src]# rpm -e koan --nodeps
> [root at spacewalk src]# rpm -ivh koan-1.6.6-1.el5.noarch.rpm
> Preparing...                ###########################################
> [100%]
>    1:koan                   ###########################################
> [100%]
>
> Now everything functions as expected:
> downloading initrd initrd.img to /var/lib/xen/initrd.img
> url=http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img
> - reading URL:
> http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/initrd.img
> downloading kernel vmlinuz to /var/lib/xen/vmlinuz
> url=http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz
> - reading URL:
> http://spacewalk.example.com/cobbler/images/RedHat_54_i386xen:1:SpacewalkDefaultOrganization/vmlinuz
> libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
> libvir: Xen error : Domain not found: xenUnifiedDomainLookupByUUID
> libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
> use virt-manager or reconnect with virsh console guest1
> - polling for virt completion
> - install is still running, sleeping for 1 minute (0)
> - install is still running, sleeping for 1 minute (1)
>
>
> ________________________________
> From: James Hogarth <james.hogarth at gmail.com>
> To: spacewalk-list at redhat.com
> Sent: Fri, May 21, 2010 7:45:19 AM
> Subject: Re: [Spacewalk-list] Error on provisioning of VM on kvm system
>
> On 21 May 2010 12:41, Milan Zazrivec <mzazrivec at redhat.com> wrote:
>> On Friday 21 May 2010 12:08:19 James Hogarth wrote:
>>> On 21 May 2010 10:45, Milan Zazrivec <mzazrivec at redhat.com> wrote:
>>> > On Friday 21 May 2010 11:25:26 James Hogarth wrote:
>>> >> On 21 May 2010 10:21, Milan Zazrivec <mzazrivec at redhat.com> wrote:
>>> >> > On Friday 21 May 2010 11:05:08 James Hogarth wrote:
>>> >> >> On 20 May 2010 10:32, James Hogarth <james.hogarth at gmail.com>
>>> >> >> wrote:
>>> >> >> > On 20 May 2010 09:50, Milan Zazrivec <mzazrivec at redhat.com>
>>> >> >> > wrote:
>>> >> >> >> On Wednesday 19 May 2010 23:32:06 James Hogarth wrote:
>>> >> >> >>> KVM host is fully updated Centos 5.5
>>> >> >> >>>
>>> >> >> >>> Spacewalk instance is a fully updated spacewalk 1.0 (with
>>> >> >> >>> cobbler
>>> >> >> >>> 1.6.6 not 2.0.3) on centos 5.5 with epel.
>>> >> >> >>>
>>> >> >> >>> On an attempt at a remote provisioning I get:
>>> >> >> >>>
>>> >> >> >>> libvirtd (pid  4266) is running...
>>> >> >> >>> exceptions.AttributeError
>>> >> >> >>> Koan instance has no attribute 'virt_auto_boot'
>>> >> >> >>>   File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line
>>> >> >> >>> 191,
>>> >> >> >>> in initiate_gu
>>> >> >> >>>                                                          est
>>> >> >> >>>     k.run()
>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line
>>> >> >> >>> 329,
>>> >> >> >>> in run self.virt()
>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line
>>> >> >> >>> 652,
>>> >> >> >>> in virt return self.net_install(after_download)
>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line
>>> >> >> >>> 571,
>>> >> >> >>> in net_install after_download(self, profile_data)
>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line
>>> >> >> >>> 650,
>>> >> >> >>> in after_downl
>>> >> >> >>>                                                          oad
>>> >> >> >>>     self.virt_net_install(profile_data)
>>> >> >> >>>    File "/usr/lib/python2.4/site-packages/koan/app.py", line
>>> >> >> >>> 1113, in virt_net_i
>>> >> >> >>>                                                         nstall
>>> >> >> >>>     virt_auto_boot      = self.calc_virt_autoboot(pd,
>>> >> >> >>> self.virt_auto_boot)
>>> >> >> >>>
>>> >> >> >>> Any ideas? Would be nice to get that as functionality rather
>>> >> >> >>> than
>>> >> >> >>> booting from ISOs to use a kickstart...
>>> >> >> >>
>>> >> >> >> What koan version do you use on your kvm host? Does the error
>>> >> >> >> show
>>> >> >> >> with both 1.6.6 and 2.0.3.1? (currently available at EPEL)
>>> >> >> >>
>>> >> >> >> -Milan Zázrivec
>>> >> >> >>
>>> >> >> >> _______________________________________________
>>> >> >> >> Spacewalk-list mailing list
>>> >> >> >> Spacewalk-list at redhat.com
>>> >> >> >> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>> >> >> >
>>> >> >> > I'm at home today not in the office... when I'm back in tomorrow
>>> >> >> > morning I'll double check and post results.
>>> >> >> >
>>> >> >> > James
>>> >> >>
>>> >> >> /facepalm
>>> >> >>
>>> >> >> ...
>>> >> >>
>>> >> >> [admin at spacewalk ~]$ rpm -q koan
>>> >> >> package koan is not installed
>>> >> >>
>>> >> >> ...
>>> >> >>
>>> >> >> That could explain a lot - wasn't it a dependency of spacewalk like
>>> >> >> cobbler?
>>> >> >
>>> >> > cobbler is supposed to run on server (Spacewalk), koan on the client
>>> >> > (the virt. host in your case).
>>> >> >
>>> >> > -MZ
>>> >> >
>>> >> > _______________________________________________
>>> >> > Spacewalk-list mailing list
>>> >> > Spacewalk-list at redhat.com
>>> >> > https://www.redhat.com/mailman/listinfo/spacewalk-list
>>> >>
>>> >> Ah sorry - too early and not enough coffee yet ;)
>>> >>
>>> >> The kvm guest of course hadn't existed by that point as it was just
>>> >> creating it - but I guess that would just mean I'd need to make sure
>>> >> koan was included in the package manifest for the kickstart?
>>> >
>>> > I don't think koan on the guest is what matters here.
>>> >
>>> > If I understand the problem correctly, you're getting a traceback
>>> > when provisioning a kvm guest from Spacewalk.
>>> >
>>> > To be able to achieve that, you need to have several packages installed
>>> > on your virt. *host* (not guest), one of these packages being koan.
>>> >
>>> > Judging by the traceback you showed in the initial email, you already
>>> > have koan installed on your host, but since there are currently
>>> > two versions of koan available in EPEL-5 (which is where I guess you
>>> > installed the package from), I was wondering which koan version
>>> > it is :-) (and whether or not both of them give you the same traceback)
>>> >
>>> > -MZ
>>> >
>>> > _______________________________________________
>>> > Spacewalk-list mailing list
>>> > Spacewalk-list at redhat.com
>>> > https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>
>>> I did say I didn't have enough coffee yet.... sorry for sounding a bit
>>> thick headed ^^
>>
>> :-)
>>
>>> I get what you are saying now...
>>>
>>> [admin at virtualserver01 ~]$ rpm -q koan
>>> koan-2.0.3.1-3.el5
>>>
>>> So I've got 2.0.3 koan on the KVM host server...
>>
>> I think it's worth trying to downgrade koan to 1.6.6
>> (I know that version used to work in the past).
>>
>> -Milan Zázrivec
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>
> Okay - I'll give it a try on that host later.
>
> James
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>

I know this is a while ago but only just got around to it on a quite day....

The problems I was having with koan 2.0.3 do not appear with koan 1.6.6

Thanks for the advice Milan

James




More information about the Spacewalk-list mailing list