virtualization/kvm_check_vm test corrupts pre-downloaded image
Bug #1259879 reported by
Yung Shen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
High
|
Daniel Manrique |
Bug Description
Since testers are able to set pre-downloaded image in /etc/checkbox.
They will having issue with kvm test when they running a second round of tests, because the image corrupted by the first testing.
Use precise cloud image as an example:
md5sum before testing:
84591f66740
after testing:
1b26d9fd077
however it does not effect for people who run the script directly, since it will download directly from the image,
but certainly it needs a way to verify the image before testing.
Related branches
lp://staging/~roadmr/checkbox/1259879-fix-virtualization
- Daniel Manrique (community): Approve
- Yung Shen (community): Approve
-
Diff: 53 lines (+20/-5)2 files modifiedcheckbox-old/debian/changelog (+2/-0)
checkbox-old/scripts/virtualization (+18/-5)
Changed in checkbox: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in checkbox: | |
status: | In Progress → Fix Committed |
Changed in checkbox: | |
milestone: | 2014-01-17 → 2013-dec-20 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Steps to reproduce:
bzr branch lp:checkbox cloud-images. ubuntu. com/raring/ current/ raring- server- cloudimg- i386-disk1. img server- cloudimg- i386-disk1. bak d/virtualizatio n.cfg and put the following: raring- server- cloudimg- i386-disk1. img checkbox- old/scripts/ virtualization kvm --debug checkbox- old/scripts/ virtualization kvm --debug
wget http://
cp raring-
# edit /etc/checkbox.
# image: /path/to/
# timeout: 30
sudo checkbox/
# Will Boot successfully the first time
sudo checkbox/
Expected result: "Booted successfully" for the second time
Actual result: KVM instance failed to boot
this is due to a problem mounting filesystems, as seen in virt_debug:
[ 2.754950] init: mountall main process (284) killed by FPE signal
General error mounting filesystems.
A maintenance shell will now be started.
CONTROL-D will terminate this shell and reboot the system.
also, as Yung reported, md5sum raring-server-* will show that the image is different from what the original one had, although that doesn't necessarily mean it was corrupted, maybe it was not unmounted properly and is now damaged.