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

Refresh controller in local store when doing show-controller #7573

Merged

Conversation

wupeka
Copy link

@wupeka wupeka commented Jun 28, 2017

Description of change

juju list-controllers will show outdated information until someone launches it with --refresh. Since when doing show-controller we have all the necessary information to refresh the state - do it.
Why is this change needed?

QA steps

  • Bootstrap a controller
  • list-controllers, see that HA is not enabled
  • enable-ha, wait for it to settle without doing show-controller
  • list-controllers, see that HA there is still not enabled
  • show-controller
  • list-controllers, HA should be visible.

Documentation changes

None

Bug reference

https://bugs.launchpad.net/juju/+bug/1634847

Copy link
Member

@jameinel jameinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as we already have all the information, if we're just saving it when we've accessed it (without doing another round trip), this LGTM

@@ -85,7 +85,7 @@ controllers:
current-model: controller
mallards:
models:
controller:
model0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would this name change?

for i, m := range allModels {
modelTags[i] = names.NewModelTag(m.UUID)
if m.Name == bootstrap.ControllerModelName {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So is this just because from the client side we don't know the controller UUID?
should we be opening a bug that we should be returning that information earlier so that we don't have to infer it from the bootstrap name?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -71,7 +71,7 @@ mallards:
cloud: mallards
agent-version: 999.99.99
models:
controller:
model0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these supposed to change?

@wupeka
Copy link
Author

wupeka commented Aug 2, 2017

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Aug 2, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 29aaaa2 into juju:develop Aug 2, 2017
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