Possible bug, or missing documentation (not sure =).

Jan Provazník jprovazn at redhat.com
Thu Dec 1 09:20:05 UTC 2011


On 11/30/2011 03:56 AM, Kurt Seifried wrote:
> Ok so I got RHEVM setup and working, and setup a new Aeolus 0.6.0 on
> RHEL 6 attached to it (seems to have worked, when I added the
> accounts/etc. I didn't get an error so that's good). But when I try to
> build an image it fails, I investigated and I think I may have found
> part of the problem but am not sure, thought I'd run it by you guys for
> comment before I spend a ton of time on it:
>
> -------------------------------------------------------------------------
>
> [root at aeolus-060 ~]# aeolus-cli build --target rhevm --template template.xml
> Image: 633bb742-c37e-402e-9659-9dd793c68686
> Build: fa23f04a-8c28-4101-8ed0-dccd360194e0
> Target Image: ba9aa6a2-fc4b-42a1-8fb0-d66d6e7f936f     :Status BUILDING
>
> -------------------------------------------------------------------------
>
> 2011-11-29 17:49:38,993 DEBUG
> imgfac.builders.BaseBuilder.Fedora_rhevm_Builder pid(4161) Message:
> Found neither a call-time config nor a config file - doing nothing
> 2011-11-29 17:49:39,073 DEBUG paste.httpserver.ThreadPool pid(4161)
> Message: Added task (0 tasks queued)
> 2011-11-29 17:49:39,426 DEBUG oz.Guest.FedoraGuest pid(4161) Message:
> libvirt bridge name is virbr0
> 2011-11-29 17:49:39,432 DEBUG
> imgfac.builders.BaseBuilder.Fedora_rhevm_Builder pid(4161) Message:
> Exception caught in ImageFactory
> 2011-11-29 17:49:39,436 DEBUG
> imgfac.builders.BaseBuilder.Fedora_rhevm_Builder pid(4161) Message:
> Traceback (most recent call last):
>    File
> "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_rhevm_Builder.py",
> line 65, in build_image
>      self.build_upload(build_id)
>    File
> "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_rhevm_Builder.py",
> line 92, in build_upload
>      guest = oz.GuestFactory.guest_factory(self.tdlobj, oz_config, None)
>    File "/usr/lib/python2.6/site-packages/oz/GuestFactory.py", line 52,
> in guest_factory
>      klass = oz.Fedora.get_class(tdl, config, auto, output_disk)
>    File "/usr/lib/python2.6/site-packages/oz/Fedora.py", line 98, in
> get_class
>      output_disk)
>    File "/usr/lib/python2.6/site-packages/oz/Fedora.py", line 43, in __init__
>      True, True, directkernel)
>    File "/usr/lib/python2.6/site-packages/oz/RedHat.py", line 42, in __init__
>      None, None, diskbus, iso_allowed, url_allowed)
>    File "/usr/lib/python2.6/site-packages/oz/Guest.py", line 1152, in
> __init__
>      mousetype, diskbus, iso_allowed, url_allowed)
>    File "/usr/lib/python2.6/site-packages/oz/Guest.py", line 179, in __init__
>      self.connect_to_libvirt()
>    File "/usr/lib/python2.6/site-packages/oz/Guest.py", line 122, in
> connect_to_libvirt
>      self._discover_libvirt_type()
>    File "/usr/lib/python2.6/site-packages/oz/Guest.py", line 74, in
> _discover_libvirt_type
>      raise oz.OzException.OzException("This host does not support
> virtualization type kvm or qemu")
> OzException: This host does not support virtualization type kvm or qemu
>

Hi Kurt,
from the error above it seems that Oz is not able to connect to a 
libvirt daemon (or alternatively libvirt daemon is running but doesn't 
support kvm/qemu). Could you please check that libvirtd is running on 
the same host as imagefactory daemon?

(my knowledge of imagefactory is not deep, so sorry if I'm talking nonsense)

> 2011-11-29 17:49:39,440 DEBUG imgfac.BuildJob.BuildJob pid(4161)
> Message: Builder (952fac2d-df7d-42cd-b2bc-3c9d6affd716) changed status
> from BUILDING to FAILED
>
>
> -------------------------------------------------------------------------
>
>
> So looking through "aeolus-cli -h" I'm not seeing anything for
> kvm/qemu/config type of options. Now reading the code we got things like:
>
> @config_location = "~/.aeolus-cli"
>
> is this
>
> /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/examples/aeolus-cli
>
> a correct example? If so what should I add, something like
>
> :conductor:
>    :virtualization: kvm
>
> or?
>
>
>

Jan



More information about the aeolus-devel mailing list