Cannot upgrade charm if storage is modified, even if the service doesn't use said storage

Bug #1599503 reported by Junien Fridrick
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Andrew Wilkins
juju-core
Fix Released
High
Andrew Wilkins
1.25
Fix Released
High
Andrew Wilkins

Bug Description

Hi,

In https://code.launchpad.net/~jacekn/charms/trusty/prometheus/storage-fixes/+merge/297474 , we made some storage related changes on a charm.

In an environment where this charm was deployed before MP above and that we're now trying to upgrade, we run into the following error :

ERROR cannot upgrade service "prometheus" to charm "prometheus": storage "metrics-filesystem" removed

This error would be fine if we had used this storage when deploying the charm, but we did not. We never used this storage.

Is this an expected behaviour ? Can it be fixed ? And is there a workaround that would allow us to upgrade the charm ? I tried "--switch", but it didn't work.

juju version is 1.25.5

Thanks !

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Paul Gear (paulgear) wrote :

This is preventing upgrades of our charm in production; it would be appreciated if a workaround could be devised to mitigate this until such time as it can be fixed.

Changed in juju-core:
importance: High → Critical
milestone: none → 2.0-beta14
Changed in juju-core:
assignee: nobody → Andrew Wilkins (axwalk)
Andrew Wilkins (axwalk)
Changed in juju-core:
status: Triaged → In Progress
Revision history for this message
Andrew Wilkins (axwalk) wrote :

PR for master: https://github.com/juju/juju/pull/5862
Once that's landed, I'll backport to 1.25.

Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
Andrew Wilkins (axwalk)
tags: added: blocker
Andrew Wilkins (axwalk)
tags: removed: blocker
Changed in juju-core:
importance: Critical → High
Paul Gear (paulgear)
tags: added: canonical-is
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
David Britton (dpb)
tags: added: landscape
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta14 → none
milestone: none → 2.0-beta14
Changed in juju-core:
assignee: nobody → Andrew Wilkins (axwalk)
importance: Undecided → High
status: New → Fix Committed
Changed in juju-core:
status: Fix Committed → Fix Released
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.