-
Notifications
You must be signed in to change notification settings - Fork 494
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
Refresh controller in local store when doing show-controller #7573
Conversation
There was a problem hiding this 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: |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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?
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
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
Documentation changes
None
Bug reference
https://bugs.launchpad.net/juju/+bug/1634847