Can't redeploy local charms that have changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Medium
|
Unassigned |
Bug Description
Saw this error today when trying to deploy a local charm: https:/
Relevant part:
2016-07-05 18:33:16 INFO juju.worker.
2016-07-05 18:33:16 INFO juju.downloader download.go:149 downloading from local:trusty/
2016-07-05 18:33:16 ERROR juju.worker.
2016-07-05 18:33:17 INFO juju.downloader download.go:113 download complete ("local:
2016-07-05 18:33:17 ERROR juju.downloader download.go:135 download of local:trusty/
2016-07-05 18:33:17 ERROR juju.worker.
This is with 2.0-beta11-
I thought at first it might be a "glitch" but redeploying consistently didn't work. I had rebuilt this layered charm between deploys and suspected that the agent was stuck because the controller must be caching the charm internally and it's now out of sync with the local charm I now want to deploy.
So, I tried `juju upgrade-charm --force-units --path ~/trusty/prometheus prometheus` and it got the unit agent 'unstuck'. I think that must have force-overwritten the stale copy of the charm in the controller.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: charm |
affects: | juju-core → juju |
Still seeing this in beta12:
2016-07-19 20:15:14 INFO juju.worker. uniter. charm bundles.go:77 downloading local:trusty/ prometheus- 0 from API server prometheus- 0 trusty/ prometheus- 0") prometheus- 0 invalid: expected sha256 "096bff9aebc58a a4adb1a6a68fa04 eb90e597b251075 f5785e1b9168204 74215", got "ed0975c7d8708a 8405ea4e81d8d51 5203b2c23380852 d19e3c873a57eb3 f31b2" dependency engine.go:526 "uniter" manifold worker returned unexpected error: preparing operation "install local:trusty/ prometheus- 0": failed to download charm "local: trusty/ prometheus- 0" from API server: expected sha256 "096bff9aebc58a a4adb1a6a68fa04 eb90e597b251075 f5785e1b9168204 74215", got "ed0975c7d8708a 8405ea4e81d8d51 5203b2c23380852 d19e3c873a57eb3 f31b2" dependency engine.go:526 "metric-collect" manifold worker returned unexpected error: failed to read charm from: /var/lib/ juju/agents/ unit-prometheus -1/charm: stat /var/lib/ juju/agents/ unit-prometheus -1/charm: no such file or directory
2016-07-19 20:15:14 INFO juju.downloader download.go:149 downloading from local:trusty/
2016-07-19 20:15:14 INFO juju.downloader download.go:113 download complete ("local:
2016-07-19 20:15:14 ERROR juju.downloader download.go:135 download of local:trusty/
2016-07-19 20:15:14 ERROR juju.worker.
2016-07-19 20:15:17 ERROR juju.worker.