Changing source does not change /etc/apt/sources.list.d/cloud-archive.list

Bug #1540376 reported by Darryl Weaver
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ceph (Juju Charms Collection)
Fix Released
Medium
Unassigned

Bug Description

cs:trusty/ceph-43

When updating the source entry to a new version the config-changed hook runs, but it does not update the /etc/apt/sources.list.d/cloud-archive.list file with the new repository details.

Hence it fails to upgrade the version of ceph when re-running the apt commands in config-changed.

This was tested with a kilo deployment where:
source=cloud:trusty-updates/kilo

It was set to:
source=cloud:trusty-updates/liberty

After the change was committed and config-changed hooks were run, the output of /etc/apt/sources.list.d/cloud-archive.list:
deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/kilo main

Juju version - 1.25.0

Revision history for this message
Darryl Weaver (dweaver) wrote :

To manually fix just edit the /etc/apt/sources.list.d/cloud-archive.list to read:
deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/liberty main

then run:
apt-get update && apt-get dist-upgrade

Revision history for this message
James Page (james-page) wrote :

The ceph charms do not currently support upgrading between releases using the config settings - this is a deploy time only option.

That said it would be a nice feature, but doing this via config alone is not a great idea as it will cause outages in the underlying storage cluster - so I would suggest that the existing config option is supplemented with an action to upgrade ceph on each unit as directed by the end user.

James Page (james-page)
Changed in ceph (Juju Charms Collection):
status: New → Triaged
importance: Undecided → Medium
milestone: none → 16.04
James Page (james-page)
Changed in ceph (Juju Charms Collection):
milestone: 16.04 → 16.07
Liam Young (gnuoy)
Changed in ceph (Juju Charms Collection):
milestone: 16.07 → 16.10
James Page (james-page)
Changed in ceph (Juju Charms Collection):
milestone: 16.10 → 17.01
Revision history for this message
James Page (james-page) wrote :

This issue was fixed in the rolling upgrade feature delivered a couple of release back.

Revision history for this message
James Page (james-page) wrote :

Worth noting bug 1611082 in that context

Changed in ceph (Juju Charms Collection):
status: Triaged → Fix Released
milestone: 17.01 → 16.10
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.