Merge lp://qastaging/~dpb/landscape-charm/fix-vhost-config-race into lp://qastaging/~landscape/landscape-charm/stable

Proposed by David Britton
Status: Merged
Approved by: David Britton
Approved revision: 190
Merged at revision: 161
Proposed branch: lp://qastaging/~dpb/landscape-charm/fix-vhost-config-race
Merge into: lp://qastaging/~landscape/landscape-charm/stable
Diff against target: 169 lines (+40/-5)
5 files modified
config/landscape-deployments.yaml (+1/-1)
hooks/hooks.py (+8/-1)
hooks/install (+7/-3)
hooks/test_hooks.py (+13/-0)
tests/01-begin (+11/-0)
To merge this branch: bzr merge lp://qastaging/~dpb/landscape-charm/fix-vhost-config-race
Reviewer Review Type Date Requested Status
Benji York (community) Approve
Chris Glass (community) Approve
Review via email: mp+225407@code.qastaging.launchpad.net

Commit message

Fix for small race where root_url would not be set in certain conditions.

Description of the change

Fix for small race where root_url would not be set in certain conditions. I had a very hard time repeating this, so I added an integration test that would check the state of root_url after the deploy, testing if the fix I put in made the difference. We have nightly tests of these, so I'm hoping that it will show up in nightly testing if not fixed.

to test:

make test
juju env atlas # or something maas related
DEPLOYER_TARGET=landscape-dense-maas SKIP_SLOW_TESTS=1 make integration-test

To post a comment you must log in.
Revision history for this message
Chris Glass (tribaal) wrote :

Ok, seems to work - could not reproduce the race condition, and the fix seems to be sane so it should at least not introduce complications.

+1

review: Approve
Revision history for this message
Benji York (benji) wrote :

The if/else in the install hook could use a comment about motivation.

The 'del os.environ["JUJU_RELATION"]' on line 120 of the diff shouldn't be required because the tearDown method does the same thing.

Otherwise this branch looks good.

review: Approve
190. By David Britton

benji: remove unecessary code, add docs

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: