import sets incorrect tree path if arch is specified

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

Bug Description

Binary package hint: cobbler

When importing and specifying the arch, the tree patch is set incorrectly. The import command looks like:

cobbler import --name=amd64-arch-specified --path=/mnt --breed=ubuntu --arch=x86_64

and the tree created is:

amd64-arch-specified-x86_64

However, the tree path is set incorrectly, like:
tree=http://@@http_server@@/cblr/ks_mirror/amd64-arch-specified

when the following should be the correct:
tree=http://@@http_server@@/cblr/ks_mirror/amd64-arch-specified-x86_64
.

This was discovered when trying to deploy the imported ISO through koan:

sudo koan --virt --server=192.168.1.118 --profile=amd64-arch-specified-x86_64 --virt-name=test1-arch --virt-bridge=virbr0
- looking for Cobbler at http://192.168.1.118/cobbler_api
install_tree: http://192.168.1.118/cblr/ks_mirror/amd64-arch-specified
- using qemu hypervisor, type=kvm
Mon, 25 Apr 2011 15:58:43 DEBUG No conn passed to Guest, opening URI 'qemu:///system'
Mon, 25 Apr 2011 15:58:44 DEBUG DistroInstaller location is a network source.
libvir: QEMU error : Domain not found: no domain with matching name 'test1-arch'
- adding disk: /var/lib/libvirt/images//test1-arch-disk0 of size 5
Mon, 25 Apr 2011 15:58:44 WARNING The filesystem will not have enough free space to fully allocate the sparse file when the guest is running. 5120 M requested > 4504 M available
Mon, 25 Apr 2011 15:58:44 DEBUG HTTP hasFile: didn't find http://192.168.1.118/cblr/ks_mirror/amd64-arch-specified/
<type 'exceptions.ValueError'>
Invalid install location: Opening URL http://192.168.1.118/cblr/ks_mirror/amd64-arch-specified/ failed.

Related branches

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

This bug was fixed in the package cobbler - 2.1.0-0ubuntu8

---------------
cobbler (2.1.0-0ubuntu8) oneiric; urgency=low

  * debian/patches:
    - 41_update_tree_path_with_arch.patch: Update mirror_name to correctly
      reflect path tree patch when specifying arch on import. (LP: #772012)
    - 42_fix_repomirror_create_sync.patch: Fix the creation of a disabled
      repo mirror; enables apt as a repo. (LP: #765224)
    - 43_fix_reposync_env_variable.patch: Fix reposync HOME env variable for
      debmirror by hardcoding to /var/lib/cobbler. (LP: #775946)
 -- Andres Rodriguez <email address hidden> Mon, 02 May 2011 18:26:03 -0400

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.