Merge lp://staging/~menno.smits/juju-core/upgrade-comments into lp://staging/~go-bot/juju-core/trunk
Proposed by
Menno Finlay-Smits
Status: | Merged |
---|---|
Approved by: | Menno Finlay-Smits |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2822 |
Proposed branch: | lp://staging/~menno.smits/juju-core/upgrade-comments |
Merge into: | lp://staging/~go-bot/juju-core/trunk |
Diff against target: |
34 lines (+12/-1) 2 files modified
cmd/jujud/machine.go (+2/-1) state/apiserver/upgrader/upgrader.go (+10/-0) |
To merge this branch: | bzr merge lp://staging/~menno.smits/juju-core/upgrade-comments |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+221354@code.staging.launchpad.net |
Commit message
Comment improvements relating to upgrades
A comment correction and a comment addition relating to different bits
of upgrade infrastructure (I've been learning how juju upgrades work).
https:/
R=fwereade, wwitzel3
Description of the change
Comment improvements relating to upgrades
A comment correction and a comment addition relating to different bits
of upgrade infrastructure (I've been learning how juju upgrades work).
To post a comment you must log in.
Reviewers: mp+221354_ code.launchpad. net,
Message:
Please take a look.
Description:
Comment improvements relating to upgrades
A comment correction and a comment addition relating to different bits
of upgrade infrastructure (I've been learning how juju upgrades work).
https:/ /code.launchpad .net/~menno. smits/juju- core/upgrade- comments/ +merge/ 221354
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/92700043/
Affected files (+14, -1 lines): machine. go /upgrader/ upgrader. go
A [revision details]
M cmd/jujud/
M state/apiserver
Index: [revision details] 20140528163454- 1tbj23pzx5x4g4g 0
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: cmd/jujud/ machine. go machine. go' machine. go 2014-05-28 10:24:07 +0000 machine. go 2014-05-28 22:24:23 +0000 JobManageEnviro n {
=== modified file 'cmd/jujud/
--- cmd/jujud/
+++ cmd/jujud/
@@ -693,7 +693,8 @@
return nil
default:
}
- // If the machine agent is a state server, wait until state is opened.
+ // If the machine agent is a state server, open state before
+ // running upgrade steps
needsState := false
for _, job := range jobs {
if job == params.
Index: state/apiserver /upgrader/ upgrader. go apiserver/ upgrader/ upgrader. go' /upgrader/ upgrader. go 2014-04-09 12:20:55 +0000 /upgrader/ upgrader. go 2014-05-28 22:24:23 +0000 AuthOwner( entity. Tag) { er(entity. Tag) { i].Version = &agentVersion
=== modified file 'state/
--- state/apiserver
+++ state/apiserver
@@ -126,6 +126,16 @@
for i, entity := range args.Entities {
err := common.ErrPerm
if u.authorizer.
+ // Only return the globally desired agent version if the
+ // asking entity is a machine agent with JobManageEnviron or
+ // if this API server is running the globally desired agent
+ // version. Otherwise report this API server's current
+ // agent version.
+ //
+ // This ensures that state machine agents will upgrade
+ // first - once they have restarted and are running the
+ // new version other agents will start to see the new
+ // agent version.
if !isNewerVersion || u.entityIsManag
results[
} else {