Merge lp://qastaging/~danilo/charms/trusty/glance-simplestreams-sync/conditional-endpoint-update into lp://qastaging/~landscape/charms/trusty/glance-simplestreams-sync/landscape

Proposed by Данило Шеган
Status: Merged
Merged at revision: 68
Proposed branch: lp://qastaging/~danilo/charms/trusty/glance-simplestreams-sync/conditional-endpoint-update
Merge into: lp://qastaging/~landscape/charms/trusty/glance-simplestreams-sync/landscape
Diff against target: 82 lines (+20/-15)
1 file modified
scripts/glance-simplestreams-sync.py (+20/-15)
To merge this branch: bzr merge lp://qastaging/~danilo/charms/trusty/glance-simplestreams-sync/conditional-endpoint-update
Reviewer Review Type Date Requested Status
Bogdana Vereha (community) Approve
Geoff Teale (community) Approve
Review via email: mp+295554@code.qastaging.launchpad.net

Description of the change

Only update (delete/create) "image-stream" endpoint if different from values we want to set it to

This will reduce the changes of hitting a race on keystone units during Autopilot installation: instead of doing delete/create dance every time, we only do it when really needed.

Testing instructions:

1. Deploy OPL
2. Modify canonical/landscape/model/openstack/charms/trusty-stable.json to point at
    cs:~danilo/trusty/glance-simplestreams-sync-26
3. Deploy Autopilot (swift and ceph for object store will use different endpoints, so might be worth re-testing both, even though we do not change that part of the logic)
4. Watch for logging messages about not updating the endpoint ("Endpoint already set to desired values, moving on.") in /var/log/glance-simplestreams-sync.log on gs3 unit
5. Check that things like juju bootstrap still work, that images are correctly synced, etc.

To post a comment you must log in.
Revision history for this message
Geoff Teale (tealeg) wrote :

+1 This looks great. Especially like the use of all(), because I'm a sucker for that stuff ;-)

review: Approve
Revision history for this message
Bogdana Vereha (bogdana) wrote :

+1

review: Approve
Revision history for this message
Данило Шеган (danilo) wrote :

Merged and published as cs:~landscape-charmers/xenial/glance-simplestreams-sync-4 and cs:~landscape-charmers/trusty/glance-simplestreams-sync-10

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