Two disks are getting created when -g flag is used once
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_
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-
2013-05-08 10:11:52,770 utah-8455-
2013-05-08 10:11:52,771 utah-8455-
2013-05-08 10:11:52,771 root DEBUG: Running command: qemu-img create -f qcow2 /var/lib/
2013-05-08 10:11:52,771 root DEBUG: Output follows:
2013-05-08 10:11:52,844 root DEBUG: Formatting '/var/lib/
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-
2013-05-08 10:11:52,845 utah-8455-
2013-05-08 10:11:52,845 root DEBUG: Running command: qemu-img create -f qcow2 /var/lib/
2013-05-08 10:11:52,845 root DEBUG: Output follows:
2013-05-08 10:11:52,920 root DEBUG: Formatting '/var/lib/
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:/
and
https:/
This appears a regression in utah, possibly on
http://
Related branches
- Andy Doan (community): Approve
-
Diff: 680 lines (+78/-348)6 files modifieddebian/changelog (+2/-0)
debian/control (+1/-9)
debian/rules (+1/-9)
examples/run_utah_tests.py (+2/-108)
tests/test_parser.py (+72/-0)
utah/parser.py (+0/-222)
Changed in utah: | |
importance: | Undecided → High |
Changed in utah: | |
status: | New → Triaged |
assignee: | nobody → Javier Collado (javier.collado) |
Changed in utah: | |
status: | Triaged → In Progress |
milestone: | none → 0.13 |
Changed in utah: | |
milestone: | 0.13 → 0.12.3 |
This is a side effect of using 'append' with a default in argparse:
>>> p = argparse. ArgumentParser( ) '-g', action='append', default=[8])
>>> p.add_argument(
>>> p.parse_args(['-g', '3'])
Namespace(g=[8, '3'])