Merge lp:~powersj/ubuntu-test-cases/server into lp:ubuntu-test-cases/server
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Joshua Powers | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~powersj/ubuntu-test-cases/server | ||||
Merge into: | lp:ubuntu-test-cases/server | ||||
Diff against target: |
47 lines (+7/-13) 1 file modified
testsuites/lxc/test_lxc_simple/lxctest.py (+7/-13) |
||||
To merge this branch: | bzr merge lp:~powersj/ubuntu-test-cases/server | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Max Brustkern (community) | Needs Information | ||
Ubuntu Server Developers | Pending | ||
Review via email: mp+301703@code.launchpad.net |
Description of the change
All LXC tests are currently failing across all three releases and both architectures. There are two issues that are test specific, not LXC or ISO related:
1) The LXC tests try to spin up images of various Ubuntu releases. The releases that are used are hard coded for specific versions that are now archived and no longer available. To fix this I have changed to the code to use distro_info python module to find all the supported Ubuntu releases.
2) The LXC API test appears to require sudo privileges. When running as a normal users it fails at creating the container, therefore I have added sudo to the command.
These changes should at least get the test going again, if not allow them to pass.
The distro_info changes look excellent. By default, all tests are run as root anyway, so I'm interested in why we need sudo in addition to that. Did you run this using the utah client (utah), the full utah process (run_utah_ tests.py) , or some other method?