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

Fixes lp#1848104: updating existing credential with invalid value invalidates other credentials #10801

Merged
merged 4 commits into from
Oct 25, 2019

Conversation

anastasiamac
Copy link
Contributor

Description of change

On the controller facades, creating cloud call context in the facade construction makes no sense since call context is model specific.

This PR changes the creation of the context to be in the actual facade call methods. All context creation has been moved to the calls that use context rather than forcing it to happen too early and for every call.

QA steps

steps in bug report do not result in the controller model cloud credential to be invalidated.

Bug reference

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

…eeds to be model specific based on the facade call arguments.
@anastasiamac
Copy link
Contributor Author

Copy link
Member

@wallyworld wallyworld left a comment

Choose a reason for hiding this comment

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

A couple of questions about how state is gotten

apiserver/facades/client/applicationoffers/state.go Outdated Show resolved Hide resolved
apiserver/facades/client/cloud/backend.go Outdated Show resolved Hide resolved
Copy link
Member

@wallyworld wallyworld left a comment

Choose a reason for hiding this comment

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

Looks good to go.
Main comment is to use st directly instead of m.State()
(we used st to get Model() in the first place)
Or m.UUID() in one place.

@anastasiamac
Copy link
Contributor Author

$$merge$$

@anastasiamac
Copy link
Contributor Author

fatal: The remote end hung up unexpectedly
17:13:38 fatal: early EOF
17:13:38 fatal: index-pack failed
17:13:38 : command failed: [git clone --recursive -v --progress https://code.googlesource.com/google-api-go-client /home/ubuntu/go/pkg/dep/sources/https---code.googlesource.com-google--api--go--client]: exit status 128
17:13:38 Makefile:74: recipe for target 'dep' failed
17:13:38 make: *** [dep] Error 1

@anastasiamac
Copy link
Contributor Author

unrelated failure in github.com/juju/juju/worker/raft/raftflag.TestPackage

@anastasiamac
Copy link
Contributor Author

$$merge$$

@jujubot jujubot merged commit 9546582 into juju:develop Oct 25, 2019
@anastasiamac anastasiamac deleted the apiserver-call-context-lp1848104 branch October 25, 2019 11:18
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