Can't redeploy local charms that have changed

Bug #1599269 reported by Casey Marshall
6
This bug affects 1 person
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://paste.ubuntu.com/18572895/

Relevant part:
2016-07-05 18:33:16 INFO juju.worker.uniter.charm bundles.go:77 downloading local:trusty/prometheus-0 from API server
2016-07-05 18:33:16 INFO juju.downloader download.go:149 downloading from local:trusty/prometheus-0
2016-07-05 18:33:16 ERROR juju.worker.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-05 18:33:17 INFO juju.downloader download.go:113 download complete ("local:trusty/prometheus-0")
2016-07-05 18:33:17 ERROR juju.downloader download.go:135 download of local:trusty/prometheus-0 invalid: expected sha256 "4d2d62fe9339faef92e51127c4259c29b53ed7a2b5ade9b99b6fce6c62f0535e", got "1fa05045a07576194b6fd765e0b5d7908a49fbb6f3ea1d19d5da156da5402403"
2016-07-05 18:33:17 ERROR juju.worker.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 "4d2d62fe9339faef92e51127c4259c29b53ed7a2b5ade9b99b6fce6c62f0535e", got "1fa05045a07576194b6fd765e0b5d7908a49fbb6f3ea1d19d5da156da5402403"

This is with 2.0-beta11-xenial-amd64 built from source on xenial with lxd provider.

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
Revision history for this message
Casey Marshall (cmars) wrote :

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
2016-07-19 20:15:14 INFO juju.downloader download.go:149 downloading from local:trusty/prometheus-0
2016-07-19 20:15:14 INFO juju.downloader download.go:113 download complete ("local:trusty/prometheus-0")
2016-07-19 20:15:14 ERROR juju.downloader download.go:135 download of local:trusty/prometheus-0 invalid: expected sha256 "096bff9aebc58aa4adb1a6a68fa04eb90e597b251075f5785e1b916820474215", got "ed0975c7d8708a8405ea4e81d8d515203b2c23380852d19e3c873a57eb3f31b2"
2016-07-19 20:15:14 ERROR juju.worker.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 "096bff9aebc58aa4adb1a6a68fa04eb90e597b251075f5785e1b916820474215", got "ed0975c7d8708a8405ea4e81d8d515203b2c23380852d19e3c873a57eb3f31b2"
2016-07-19 20:15:17 ERROR juju.worker.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

affects: juju-core → juju
Revision history for this message
Stuart Bishop (stub) wrote :

2016-07-05 18:33:16 ERROR juju.worker.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

Per Bug #1629819, the above error message is probably hiding the real problem.

Revision history for this message
Stuart Bishop (stub) wrote :

Oh, ignore me. I'm misreading.

Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.