[virtualization/kvm_check_vm] test failed but using qemu-img processed image, system can launch VM successfully

Bug #1155686 reported by Samantha Jian-Pielak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
High
Jeff Marcom

Bug Description

Summary: The image specified in the script to download is 'release'+'-server-cloudimg-i386-disk1.img' from cloud-image.ubuntu.com. I couldn't successfully launch VM using this image via KVM on 12.04 and 12.04.2. Following instructions on https://help.ubuntu.com/community/UEC/Images#Ubuntu_Cloud_Guest_images_on_Local_Hypervisor_Natty_onward, I can successfully launch VM via KVM on 12.04 and 12.04.2.

Steps to reproduce:
1. Install checkbox
2. cd /usr/share/checkbox/scripts
3. sudo ./virtualization kvm --debug or sudo kvm -m 256 -net nic -net user,net=10.0.0.0/8,host=10.0.0.1,hostfwd=tcp::2222-:22 -drive file=<path to the cloud image>,if=virtio -display none -nographic

Expected results:
Success: https://pastebin.canonical.com/86914/

Actual results:
Fail: https://pastebin.canonical.com/86921/
It could be that the 500 seconds default timeout of the script wasn't enough. I ran the KVM command directly, and the result was the same.

Both use the same -disk1.img from the cloud-image.ubuntu.com, and the difference is qemu-img image creation is required on the ubuntu wiki.

checkbox:
  Installed: 0.15.4~ppa+bzr1961+201303071329~precise1

Related branches

Revision history for this message
Jeff Marcom (jeffmarcom) wrote :

This is looking like a problem with the recent cloud image build for precise. I've tested this on the latest quantal, and raring releases and they seem to behave correctly:

Generation complete.
Cloud-init v. 0.7 running 'modules:final' at Fri, 15 Mar 2013 16:29:23 +0000. Up 256.59 seconds.
ci-info: no authorized ssh keys fingerprints found for user ubuntu.ci-info: no authorized ssh keys fingerprints found for user ubuntu.ec2:
ec2: #############################################################
ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
ec2: 1024 2a:60:de:bf:8d:e9:5b:28:05:21:88:2f:26:bd:fd:1f root@ubuntu (DSA)
ec2: 256 be:d4:49:ba:c9:d8:ee:f6:d7:a9:29:2d:10:67:77:91 root@ubuntu (ECDSA)
ec2: 2048 d7:00:56:23:ce:ba:44:7b:a8:2f:35:e6:67:93:1e:a8 root@ubuntu (RSA)
ec2: -----END SSH HOST KEY FINGERPRINTS-----
ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJO7zBwxMxfMJq7roVBrtTOqYtblMrTWr1nDvqniGtkcqQ87tIT37eMf0BwdwlS+eUh5aLKiel3qI4CKkINwfQo= root@ubuntu
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+DeDjaXqVHGOs0+GDoVpilnoUkhAaocmbyNGaiXNAVNIpsIXlo7ZNkO4k6Jtdnqrkdr5MK11V1soVB9NKuPyLVy1e+h0q933LQU7JZFpTzb04kPzuyi/sohGaPhNaNAX3zv+EhPnltj7ApQn/eGQ8sn7+Os1IIsgfDmXjG5HLEIlodfs7iuAtAoKprlmRL08ed9ABG4LV7/G+b7ErKo07XVrsDvDVk8AqP41us3B46ZMRzcKavi0dYgurCPjti0nb5w9SooxjdpEby4gDug9MMALvoFBGYvWPWnffzWsEU9NjOTVeuzzo2U5o6XWupirTxEQMm28j1uXQbT4jXAqd root@ubuntu
-----END SSH HOST KEY KEYS-----
Cloud-init v. 0.7 finished at Fri, 15 Mar 2013 16:29:25 +0000. Datasource DataSourceNone. Up 258.57 seconds
2013-03-15 16:29:25,939 - cc_final_message.py[WARNING]: Used fallback datasource

Trying previous releases of precise at the moment.

Changed in checkbox:
assignee: nobody → Jeff Marcom (jeffmarcom)
Revision history for this message
Jeff Marcom (jeffmarcom) wrote :

Confirmed the 12.04.2 cloud images recent and archive do not boot past the following message:

 * Starting crash report submission daemon [ OK ]
 * Stopping save kernel messages [ OK ]
 * Stopping System V runlevel compatibility [ OK ]
 * Starting execute cloud user/final scripts [ OK ]

Revision history for this message
Jeff Marcom (jeffmarcom) wrote :

Test script will need some refactoring due to a new Low-priority regression introduced in the latest 12.04.2 cloud images see: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1155736

Changed in checkbox:
importance: Undecided → High
status: New → Triaged
Jeff Marcom (jeffmarcom)
Changed in checkbox:
status: Triaged → In Progress
Jeff Marcom (jeffmarcom)
Changed in checkbox:
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.