Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory refresh for redeploy - fix #60

Merged
merged 6 commits into from
May 18, 2020
Merged

Conversation

dseeley-sky
Copy link
Contributor

  • Some client playbooks will require that the dynamic inventory is accurate during redeploy. Perform a re-acquisition of the inventory when hosts are removed/ added during redeploy. Also refresh (clean) the inventory prior to adding hosts the inventory, because this called multiple times now.
  • Tidy up - allow cluster_vars.custom_tagslabels to be absent
  • Tidy up - replace deprecated _facts modules with _info
  • Tidy up - remove duplicated debug logs

+ Some client playbooks will require that the dynamic inventory is accurate during redeploy.  Perform a re-acquisition of the inventory when hosts are removed/ added during redeploy.  Also refresh (clean) the inventory prior to adding hosts the inventory, because this called multiple times now.
+ Tidy up - allow cluster_vars.custom_tagslabels to be absent
+ Tidy up - replace deprecated _facts modules with _info
+ Tidy up - remove duplicated debug logs
@antoineserrano antoineserrano self-requested a review May 14, 2020 08:42
@eolix eolix self-requested a review May 14, 2020 08:50
@eolix
Copy link
Contributor

eolix commented May 14, 2020

LGTM - any edge cases we would need to test?

+ Re-acquire the dynamic inventory after removing a host too.
+ Make the redeploy host list deterministic by sorting it pre-slice (bulletproofing for canary=start/finish).
@dseeley-sky dseeley-sky marked this pull request as ready for review May 14, 2020 18:46
@dseeley-sky
Copy link
Contributor Author

LGTM - any edge cases we would need to test?

Tested against all schemes. Worth testing by others
...

@antoineserrano
Copy link
Contributor

LGTM - tested functional with all redeploy schemes + canary start/finish/none options as well.

@dseeley-sky dseeley-sky merged commit 59a0a48 into master May 18, 2020
@dseeley-sky dseeley-sky deleted the dse09_redeployinventory branch May 18, 2020 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants