Merge lp:~jibel/update-manager/AutoUpgradeTester-portlocking into lp:update-manager
Proposed by
Jean-Baptiste Lallement
Status: | Merged |
---|---|
Merged at revision: | 2326 |
Proposed branch: | lp:~jibel/update-manager/AutoUpgradeTester-portlocking |
Merge into: | lp:update-manager |
Diff against target: |
125 lines (+57/-11) 2 files modified
AutoUpgradeTester/UpgradeTestBackendQemu.py (+54/-10) AutoUpgradeTester/post_upgrade_tests/debconf_test.py (+3/-1) |
To merge this branch: | bzr merge lp:~jibel/update-manager/AutoUpgradeTester-portlocking |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt (community) | Approve | ||
Review via email: mp+90695@code.launchpad.net |
Description of the change
This patch provides the ability to start auto-upgrade-tester runs in parallel.
SSH and VNC ports were not seen as allocated until services were really started by KVM. Now, lock files are used to reserve port for later use by KVM. Tested with Jenkins and 2 executors on each node.
For reference, I used fcntl instead of python-lockfile:
- To avoid a new dependency
- python-lockfile doesn't support locking 2 files from the same process. (http://
To post a comment you must log in.
Thanks a lot for doing this work!
I merged this with some small modifications. E.g. in getFreePort I raise a exception instead of sys.exit() to allow the consumer of the class to decide what to do.
Cheers,
Michael