cobbler-ubuntu-import: fails to update existing distros

Bug #959088 reported by Timo Aaltonen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

running cobbler-ubuntu-import --update-existing fails to actually update the distros. It'll create a tmp-foo distro and stop there:

:: root@eldon:/var/lib/tftpboot> cobbler-ubuntu-import --update-existing
tmp-precise-x86_64: skipping, not <codename>-<arch>
yavdr0.4-x86_64: skipping, not <codename>-<arch>
--2012-03-19 10:35:57-- http://archive.ubuntu.com/ubuntu/dists/hardy-updates/main/installer-i386/current/images/netboot/mini.iso
Selvitetään osoitetta archive.ubuntu.com (archive.ubuntu.com)... 91.189.92.176, 91.189.92.171, 91.189.92.170, ...
Yhdistetään palvelimeen archive.ubuntu.com (archive.ubuntu.com)|91.189.92.176|:80... yhdistetty.
HTTP-pyyntö lähetetty, odotetaan vastausta... 200 OK
Pituus: 10256384 (9,8M) [application/x-iso9660-image]
Tallennetaan kohteeseen ”/tmp/cobbler-ubuntu-import.coRhik/hardy-i386-mini.iso”

     0K ........ ........ ........ ........ ........ ........ 30% 652K 11s
  3072K ........ ........ ........ ........ ........ ........ 61% 688K 6s
  6144K ........ ........ ........ ........ ........ ........ 92% 683K 1s
  9216K ........ .... 100% 700K=15s

2012-03-19 10:36:12 (676 KB/s) - ”/tmp/cobbler-ubuntu-import.coRhik/hardy-i386-mini.iso” tallennettu [10256384/10256384]

mount: warning: /tmp/cobbler-ubuntu-import.coRhik/mnt seems to be mounted read-only.
task started: 2012-03-19_103612_import
task started (id=Media import, time=Mon Mar 19 10:36:12 2012)
Warning: No distro signature for kernel at /var/www/cobbler/ks_mirror/tmp-hardy-i386, using value from command line
adding distros
creating new distro: tmp-hardy-i386
creating new profile: tmp-hardy-i386
associating repos
traversing distro tmp-hardy-i386
descent into /var/www/cobbler/ks_mirror/tmp-hardy-i386
Added repos for tmp-hardy-i386
associating kickstarts
*** TASK COMPLETE ***
imported tmp-hardy-i386
distro matching profile 'hardy-i386' does not exist

--

running 'c-u-i -u $distro' does the same thing for $distro (I have several, c-u-i stops after the first one fails).

Related branches

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

this is on uptodate precise btw.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * cobbler-ubuntu-import: Fix a typo, so -U option actually works.
    (LP: #959085)
  * cobbler-ubuntu-import: Fix passing arguments to 'cobbler distro find',
    so the importer doesn't fail. (LP: #959088)
 -- Timo Aaltonen <email address hidden> Mon, 19 Mar 2012 11:25:58 +0200

Changed in cobbler (Ubuntu):
status: New → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

Timo,
  Thank you for catching and fixing this.
  Sorry for the bad code.

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.