cobbler does not recognise 12.04 server iso
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-
mkdir /home/ubuntu/iso
sudo mount -t iso9660 -o loop /home/ubuntu/
sudo cobbler import --path=
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://
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://
#######
GET /ubuntu/
Host: gb.archive.
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-
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cobbler (not installed)
ProcVersionSign
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)
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" extra-virtual"
v=$(uname -r) && [ "${v%-virtual}" != "${v}" ] &&
pkgs="$pkgs linux-image-
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 img,if= virtio \ /var/lib/ tftpboot, bootfile= /pxelinux. 0 \
kvm -m 256 -boot n -display vnc=:1 \
-drive file=disk.
-net user,tftp=
-net nic,model=virtio