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

Allow dump-model to work with incomplete model data #11806

Merged
merged 1 commit into from Jul 7, 2020

Conversation

wallyworld
Copy link
Member

Description of change

juju dump-model errors out if run just after adding a machine or relation, since the machine is still pending and there's no instance data yet, or the relation units are not yet in scope and so relation data is missing.

This PR adds a new IgnoreIncompleteModel bool to export config so that we still get a dumped model output if there's missing data. This is what we want as we only care about complete model data when doing migrations.

QA steps

juju add-machine && juju dump-model
juju deploy foo && juju deploy bar && juju relate foo bar && juju dump-model

Bug reference

https://bugs.launchpad.net/bugs/1849746
https://bugs.launchpad.net/bugs/1886369

@wallyworld
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit cc0229d into juju:2.8 Jul 7, 2020
@manadart manadart mentioned this pull request Jul 8, 2020
jujubot added a commit that referenced this pull request Jul 8, 2020
#11808

Merge from 2.8 to bring forward:
- #11807 from manadart/2.8-machiner-lld
- #11802 from hpidcock/update-testing-dep
- #11806 from wallyworld/dump-model-partial
- #11805 from jameinel/2.8-dispatch-relative-1885543
- #11796 from SimonRichardson/model-config-input
- #11804 from achilleasa/2.8-manual-provisioning-on-non-amd64-instances-backport
- #11800 from wallyworld/vsphere-absolute-vmfolder
- #11786 from SimonRichardson/juju-config-new-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants