Two disks are getting created when -g flag is used once

Bug #1178367 reported by Para Siva
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
UTAH
Fix Released
High
Javier Collado

Bug Description

Two disks are created when (even one) -g flag is used to run provisioning tests with the latest (utah-common_0.12.1ubuntu1~precise1_all.deb)
utah version is used. This causes the min_config saucy desktop jobs to hang at partman since the preseed is not meant to give inputs for two disk configuration in min_config jobs.

I confirm it being a utah regression because I ran a raring image with the current version and the job was mis-behaving the same way as Saucy min_config job does. The raring min_config job used to pass with that image with the older version of utah.

The following is an excerpt from the utah-server-debug.log,

2013-05-08 10:11:52,770 utah-8455-saucy-i386 INFO: Creating disks
2013-05-08 10:11:52,771 utah-8455-saucy-i386 DEBUG: Creating 8G disk using: qemu-img create -f qcow2 /var/lib/utah/vm/utah-8455-saucy-i386/disk0.qcow2 8G
2013-05-08 10:11:52,771 root DEBUG: Running command: qemu-img create -f qcow2 /var/lib/utah/vm/utah-8455-saucy-i386/disk0.qcow2 8G
2013-05-08 10:11:52,771 root DEBUG: Output follows:
2013-05-08 10:11:52,844 root DEBUG: Formatting '/var/lib/utah/vm/utah-8455-saucy-i386/disk0.qcow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536
2013-05-08 10:11:52,844 root DEBUG:
2013-05-08 10:11:52,844 root DEBUG: Return code: 0
2013-05-08 10:11:52,845 utah-8455-saucy-i386 DEBUG: Adding disk to list
2013-05-08 10:11:52,845 utah-8455-saucy-i386 DEBUG: Creating 5G disk using: qemu-img create -f qcow2 /var/lib/utah/vm/utah-8455-saucy-i386/disk1.qcow2 5G
2013-05-08 10:11:52,845 root DEBUG: Running command: qemu-img create -f qcow2 /var/lib/utah/vm/utah-8455-saucy-i386/disk1.qcow2 5G
2013-05-08 10:11:52,845 root DEBUG: Output follows:
2013-05-08 10:11:52,920 root DEBUG: Formatting '/var/lib/utah/vm/utah-8455-saucy-i386/disk1.qcow2', fmt=qcow2 size=5368709120 encryption=off cluster_size=65536
2013-05-08 10:11:52,921 root DEBUG:
2013-05-08 10:11:52,921 root DEBUG: Return code: 0
=========================================
This issue is impacting the min-config desktop saucy smoke tests and the impaged jobs are,
https://jenkins.qa.ubuntu.com/view/Saucy/view/Smoke%20Testing/job/saucy-desktop-amd64-smoke-min_config/11/
and
https://jenkins.qa.ubuntu.com/view/Saucy/view/Smoke%20Testing/job/saucy-desktop-i386-smoke-min_config/10/

 This appears a regression in utah, possibly on
http://bazaar.launchpad.net/~utah/utah/dev/revision/881#utah/provisioning/vm/vm.py

Related branches

Para Siva (psivaa)
Changed in utah:
importance: Undecided → High
Changed in utah:
status: New → Triaged
assignee: nobody → Javier Collado (javier.collado)
Revision history for this message
Javier Collado (javier.collado) wrote :

This is a side effect of using 'append' with a default in argparse:

>>> p = argparse.ArgumentParser()
>>> p.add_argument('-g', action='append', default=[8])
>>> p.parse_args(['-g', '3'])
Namespace(g=[8, '3'])

Changed in utah:
status: Triaged → In Progress
milestone: none → 0.13
Andy Doan (doanac)
Changed in utah:
milestone: 0.13 → 0.12.3
Revision history for this message
Andy Doan (doanac) wrote :
Changed in utah:
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.