koan: [precise] Wrong install location?

Bug #918286 reported by Brad Figg
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Fix Released
High
Andres Rodriguez

Bug Description

After installing koan, rpm and virtinst, running koan produces the following
crash.

> sudo koan --virt --server=red.local --profile=oneiric-x86_64
- looking for Cobbler at http://red.local:80/cobbler_api
install_tree: http://192.168.1.6/cblr/repo_mirror/oneiric-x86_64
- using qemu hypervisor, type=kvm
Wed, 18 Jan 2012 08:31:51 DEBUG No conn passed to Guest, opening URI 'qemu:///system'
Wed, 18 Jan 2012 08:31:52 DEBUG DistroInstaller location is a network source.
libvir: QEMU error : Domain not found: no domain with matching name 'Wed_Jan_18_08_31_51_2012'
- adding disk: /var/lib/libvirt/images//Wed_Jan_18_08_31_51_2012-disk0 of size 5 (driver type=raw)
Wed, 18 Jan 2012 08:31:52 DEBUG scratchdir=/var/lib/libvirt/boot
Wed, 18 Jan 2012 08:31:52 DEBUG HTTP hasFile: didn't find http://192.168.1.6/cblr/repo_mirror/oneiric-x86_64/: HTTP Error 404: Not Found
Wed, 18 Jan 2012 08:31:52 ERROR Error preparing install location
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/virtinst/OSDistro.py", line 121, in _locationCheckWrapper
    fetcher.prepareLocation()
  File "/usr/lib/python2.7/dist-packages/virtinst/ImageFetcher.py", line 113, in prepareLocation
    (self.location))
ValueError: Opening URL http://192.168.1.6/cblr/repo_mirror/oneiric-x86_64/ failed.
<type 'exceptions.ValueError'>
Invalid install location: Opening URL http://192.168.1.6/cblr/repo_mirror/oneiric-x86_64/ failed.
  File "/usr/lib/python2.7/dist-packages/koan/app.py", line 245, in main
    k.run()
   File "/usr/lib/python2.7/dist-packages/koan/app.py", line 385, in run
    self.virt()
   File "/usr/lib/python2.7/dist-packages/koan/app.py", line 741, in virt
    return self.net_install(after_download)
   File "/usr/lib/python2.7/dist-packages/koan/app.py", line 630, in net_install
    after_download(self, profile_data)
   File "/usr/lib/python2.7/dist-packages/koan/app.py", line 739, in after_download
    self.virt_net_install(profile_data)
   File "/usr/lib/python2.7/dist-packages/koan/app.py", line 1345, in virt_net_install
    qemu_net_type = self.qemu_net_type
   File "/usr/lib/python2.7/dist-packages/koan/qcreate.py", line 228, in start_install
    guest.start_install()
   File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1206, in start_install
    self._prepare_install(meter, dry)
   File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 963, in _prepare_install
    meter=meter)
   File "/usr/lib/python2.7/dist-packages/virtinst/DistroInstaller.py", line 426, in prepare
    dev = self._prepare_kernel_and_initrd(guest, meter)
   File "/usr/lib/python2.7/dist-packages/virtinst/DistroInstaller.py", line 365, in _prepare_kernel_and_initrd
    self.os_type)
   File "/usr/lib/python2.7/dist-packages/virtinst/OSDistro.py", line 156, in acquireKernel
    scratchdir, type)
   File "/usr/lib/python2.7/dist-packages/virtinst/OSDistro.py", line 150, in _acquireMedia
    None, media_cb)
   File "/usr/lib/python2.7/dist-packages/virtinst/OSDistro.py", line 124, in _locationCheckWrapper
    raise ValueError(_("Invalid install location: ") + str(e))

There are a number of things here that look "odd".

  1. "no domain with matching name 'Wed_Jan_18_08_31_51_2012'"
  2. "HTTP hasFile: didn't find http://192.168.1.6/cblr/repo_mirror/oneiric-x86_64/: HTTP Error 404: Not Found"
      - That's the correct IP address but the "cblr" part of the url is all wrong I think.

Related branches

Changed in cobbler (Ubuntu):
status: New → Confirmed
assignee: nobody → Andres Rodriguez (andreserl)
Changed in cobbler (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cobbler - 2.2.2-0ubuntu15

---------------
cobbler (2.2.2-0ubuntu15) precise; urgency=low

  * debian/control: Depends on virtinst for koan. (LP: #918281)
  * debian/patches/54_koan_fix_tree_when_ksmeta.patch: Update to obtain
    correct tree for mini ISO's that have repo_mirror. (LP: #918286)
 -- Andres Rodriguez <email address hidden> Wed, 18 Jan 2012 13:50:40 -0500

Changed in cobbler (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.