cobbler does not recognise 12.04 server iso

Bug #1000219 reported by Pierre Amadio
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I installed cobbler on a kvm vm and wish to use it to deploy vm.

I try to deploy a ubuntu-12.04-server-amd64.iso system that i have imported in cobbler:

mkdir /home/ubuntu/iso
sudo mount -t iso9660 -o loop /home/ubuntu/ubuntu-12.04-server-amd64.iso /home/ubuntu/iso
sudo cobbler import --path=/home/ubuntu/iso/ --name=precise
sudo cobbler sync

I know the iso is ok because i used it to install the cobbler system itself.

Now, when i deploy a system with cobbler, it stop when trying to access a mirror.

/var/log/syslog of the failing system tells something like:

choose-mirror[3474] DEBUG command: wget -q http://gb.archive.ubuntu.com/ubuntu//dists/precise/Release -O - | grep -E '^(Suite|Codename):'
choose-mirror[3474] WARNING **: broken mirror: invalid Suite or Codename in Release file for $suite

Now, from the hypervisor, a tcpdump show that the vm was able to access http://gb.archive.ubuntu.com/ubuntu//dists/precise/Release

##############################
GET /ubuntu//dists/precise/Release HTTP/1.1
Host: gb.archive.ubuntu.com
User-Agent: Wget
Connection: close

HTTP/1.1 200 OK
...
...
###############################

I can also wget it by hand on a console on the machine being installed, and the file i get actually contains lines such as:

Suite: precise
Codename: precise

Things works ok if I import an iso with "cobbler-ubuntu-import precise-amd64" though.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cobbler (not installed)
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Wed May 16 14:51:48 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: cobbler
UpgradeStatus: Upgraded to precise on 2012-05-14 (1 days ago)

Revision history for this message
Pierre Amadio (pierre-amadio) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

I can reproduce within a precise amd64 cloud image using:

iso_url=http://releases.ubuntu.com/12.04/ubuntu-12.04-server-amd64.iso
iso=${iso_url##*/}

pkgs="cobbler-web kvm"
v=$(uname -r) && [ "${v%-virtual}" != "${v}" ] &&
  pkgs="$pkgs linux-image-extra-virtual"

sudo apt-get install $pkgs

sudo modprobe kvm_intel
sudo modprobe kvm_amd
sudo chmod 666 /dev/kvm

wget "$iso_url" -O "$iso"
mkdir mp
sudo mount -o loop,ro "$iso" $PWD/mp
sudo cobbler import "--path=$PWD/mp" --name=precise
sudo umount $PWD/mp

qemu-img create -f qcow2 disk.img 4G
kvm -m 256 -boot n -display vnc=:1 \
   -drive file=disk.img,if=virtio \
   -net user,tftp=/var/lib/tftpboot,bootfile=/pxelinux.0 \
   -net nic,model=virtio

Changed in cobbler (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
truman plaisted (tplaisted3-14) wrote :

I think i found a workaround here. I copied the file; /var/lib/cobbler/kickstarts/sample.seed to another file and configured that file to be the kickstart file. I then went down to the line that said "d-i mirror/suite string $suite" (ignore the spacing I put in, it was for illustrative purposes only). I then replaced "$suite" with "precise". Then I resynced cobbler and everything fell into place.

Revision history for this message
Bryan Taylor (btaylor-b) wrote :

Use the alternate build

Revision history for this message
Nish Aravamudan (nacc) wrote :

I do not believe this is an issue with the Cobbler in 16.10. Please reopen if it is.

Changed in cobbler (Ubuntu):
status: Confirmed → Invalid
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.