Merge lp://staging/~vila/ubuntu-ci-services-itself/secgroups into lp://staging/ubuntu-ci-services-itself
Status: | Rejected |
---|---|
Rejected by: | Vincent Ladeuil |
Proposed branch: | lp://staging/~vila/ubuntu-ci-services-itself/secgroups |
Merge into: | lp://staging/ubuntu-ci-services-itself |
Diff against target: |
118 lines (+96/-0) 2 files modified
juju-deployer/test_update.py (+7/-0) leon.py (+89/-0) |
To merge this branch: | bzr merge lp://staging/~vila/ubuntu-ci-services-itself/secgroups |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis Ginther | Needs Information | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email:
|
Commit message
Leon will cleanup after test runs by killing leaked security groups.
Description of the change
I don't have time to fully debug who/why security groups are leaked during
the test runs.
So for now I resort to semi-manual cleanup: leon.py.
In addition to the usual nova credentials, this requires knowing which juju
environment is current.
Since I don't want/care to automate that for now, you have to manually
provide those in a unit_config file at the root of your branch.
From there, Leon will get rid of those annoying security groups.
Leon doesn't think nor does it try to handle errors, it just shoot any
security group it can find (but preserve a few precious ones, see code for
details).
Feel free to enhance to suit your tastes but let's try to resort to Leon
only for stuff we cannot handle better from the tests themselves ;)
Unmerged revisions
- 243. By Vincent Ladeuil
-
Shooting a bit in the dark to make the test pass on s-jenkins, the theory is that bzr is not setup there but we don't need a full setup either.
- 242. By Vincent Ladeuil
-
Document what I know how the precious security groups.
- 241. By Vincent Ladeuil
-
Leon is not verbal, but a little feedback is good.
- 240. By Vincent Ladeuil
-
Ask Leon to kill spurious security groups.
Could we refactor this so that we use it in tests/run.py to clean up
*just* the security groups that were created in the test run (minus
precious)?
+ # FIXME: There is probably a better way, but for now, just require get('juju_ env')
+ # that unit_config defines 'juju_env' and be done. -- vila
+ # 2014-02-17
+ auth_conf.
tests/run.py handles this well:
juju_env = os.environ. get('JUJU_ ENV')
log.error( 'No juju environment specified.')
if juju_env is None:
juju_env = envs.get('default')
if not juju_env:
sys.exit(1)