Merge lp://staging/~abentley/juju-ci-tools/prepare-testing-3 into lp://staging/juju-ci-tools
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Merged at revision: | 1845 |
Proposed branch: | lp://staging/~abentley/juju-ci-tools/prepare-testing-3 |
Merge into: | lp://staging/juju-ci-tools |
Diff against target: |
194 lines (+93/-29) 4 files modified
clean_maas.py (+20/-9) prepare-testing.bash (+11/-20) substrate.py (+17/-0) tests/test_substrate.py (+45/-0) |
To merge this branch: | bzr merge lp://staging/~abentley/juju-ci-tools/prepare-testing-3 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+314649@code.staging.launchpad.net |
Commit message
Only delete maas nodes acquired more than 2 hours in prepare-testing.
Description of the change
This branch updates prepare-testing to release nodes older than 2 hours.
Investigating the MAAS web UI determined that there were "events" associated with a MAAS node. It appeared that 'User acquiring node' was the earliest event associated with Juju provisioning a machine, so I used this.
So now, machines acquired less than 2 hours ago will not be torn down. Also, machines whose hostname prefix is not "juju-" will not be torn down. Is the hostname check a good idea? Not sure. Happy to remove if not.
To post a comment you must log in.
I have two comments inline. We already discussed the juju- prefix issue on IRC. The commands you use are maas 2 only. See in line for maas 1 differences.