upgrade-juju: success but then deploy fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Invalid
|
High
|
Roger Peppe |
Bug Description
I did this:
$ cd $GOPATH/
$ go install ./...
$ juju bootstrap --upload-tools --debug ec2 aws
$ # oops, needed to make another (minor) change to the source
$ go install ./...
$ juju switch admin
local.
$ juju upgrade-juju --upload-tools
available tools:
best version:
2.0-rc1.2
$ # oops, yet another (minor) change required
$ go install ./...
$ juju upgrade-juju --upload-tools
available tools:
best version:
2.0-rc1.3
$ juju switch default
$ juju deploy somecharm
The instance for the new charm came up OK, but the machine agent
couldn't start because it failed to download the tools.
Some relevant lines from the machine agent's log on the newly started instance:
2016-04-15 14:28:34 DEBUG juju.worker.
2016-04-15 14:28:34 INFO juju.worker.
2016-04-15 14:28:34 INFO juju.worker.
2016-04-15 14:28:34 INFO juju.worker.
2016-04-15 14:28:34 INFO juju.worker.
2016-04-15 14:28:34 DEBUG juju.worker.
2016-04-15 14:28:34 DEBUG juju.wrench wrench.go:112 couldn't read wrench directory: stat /var/lib/
2016-04-15 14:28:34 DEBUG juju.worker.
2016-04-15 14:28:34 INFO juju.worker.
2016-04-15 14:28:36 ERROR juju.worker.
The actual error returned from the above HTTP request was:
{"Error"
Changed in juju-core: | |
milestone: | 2.0-beta5 → 2.0-rc1 |
Changed in juju-core: | |
assignee: | nobody → Eric Snow (ericsnowcurrently) |
Changed in juju-core: | |
status: | Incomplete → Invalid |
Changed in juju-core: | |
milestone: | 2.0-beta6 → none |
We shouldn't be getting rid of old tools if any hosted models are currently at that revision.