feature request: renaming charms without breaking upgrades

Bug #1994135 reported by Tom Haddon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Wishlist
Unassigned
Snap Store Server
New
Undecided
Unassigned

Bug Description

This is a feature request for the ability to be able to rename charms without requiring charm operators to switch to the newly named charm to continue to receive charm updates.

The specific use case we have in mind is for https://charmhub.io/ubuntu-advantage. Most likely this charm needs to be renamed to "ubuntu-pro" (we'll confirm this with the relevant product team). But this is a charm we install on every VM, so it will be somewhat painful to handle charm upgrades. Also, someone outside of Canonical who has installed this charm would have no way of knowing that a "juju refresh ubuntu-advantage" is finding no updates because we've renamed the charm to "ubuntu-pro".

Expected workflow:

* We rename the charm from ubuntu-advantage to ubuntu-pro, and publish it at https://charmhub.io/ubuntu-pro.
* Visiting https://charmhub.io/ubuntu-advantage redirects you to https://charmhub.io/ubuntu-pro.
* If you've deployed "ubuntu-advantage" and run "juju refresh ubuntu-advantage" you'd get the charm that's been published as ubuntu-pro.
* If you run `juju deploy ubuntu-advantage" you get the charm that's been published as "ubuntu-pro".

Tags: canonical-is
Tom Haddon (mthaddon)
tags: added: canonical-is
Changed in juju:
assignee: nobody → Heather Lanigan (hmlanigan)
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

Part of this request has already been implemented in juju, though we do no have an example to test with.

Once a charm is deployed by name, juju communicates with charmhub via a unique ID, provided by charmhub, in anticipation of this scenario.

Juju currently does not have the ability to rename an application if that is required.

Being able to run `juju deploy ubuntu-advantage` and get `ubuntu-pro` is a feature request for charmhub, added snap store server to address.

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

I'm not sure what team will cover the webpage redirection.

Changed in juju:
status: New → Incomplete
Changed in juju:
importance: Undecided → Wishlist
assignee: Heather Lanigan (hmlanigan) → nobody
Changed in juju:
status: Incomplete → Triaged
Revision history for this message
Heather Lanigan (hmlanigan) wrote :

There may be an issue for juju as we verify resources and resource revision by charm name per the API:
GET /v2/charms/resources/<package_name>/<resource_name>/revisions.

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.