Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
worker/modelupgrade: set model status #7609
Conversation
wallyworld
approved these changes
Jul 10, 2017
I think we need to surface the actual error in the status message so the user know what went wrong
| @@ -174,8 +189,14 @@ func newUpgradeWorker(config Config, targetVersion int) (worker.Worker, error) { | ||
| targetVersion, | ||
| setVersion, | ||
| ); err != nil { | ||
| + if err := setStatus(status.Error, "failed to upgrade environ"); err != nil { |
axw
Jul 10, 2017
Member
I thought it might be TMI for non-controller admins. I'll include it, we can change based on feedback.
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
jujubot
merged commit 2643110
into
juju:2.2
Jul 10, 2017
1 check passed
github-check-merge-juju
Ran tests against PR. Use !!.*!! to request another build. IE, !!build!!, !!retry!!
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axw commentedJul 10, 2017
Description of change
Set model status before and after upgrading the
model's environ. Allow the "error" status for
models, so that we can indicate that the model
requires attention (e.g. credentials are out of
date and need to be refreshed.)
QA steps
Documentation changes
None.
Bug reference
https://bugs.launchpad.net/juju/+bug/1700451