pre-install_method deployments end up with the snap and a new DB
Bug #1670918 reported by
Paul Collins
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus Charm |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
We recently upgraded prometheus in snappy-kpi to support the newer version of prometheus in the bootstack PPA. This resulted in the snap being installed and grafana therefore losing access to the existing prometheus database.
Setting install_method to "apt", manually removing the snap, and then starting the packaged prometheus back up, resolved the problem. But ideally when we upgrade to a version of the charm that supports the snap, it would assume that if prometheus is already installed that the snap should not be installed (or something along those lines). Related to RT#100652.
Changed in prometheus-charm: | |
status: | New → Confirmed |
To post a comment you must log in.
There is a further side-effect: Installing snapd on trusty installs systemd, which tricks charmhelpers into thinking the systems's default init system is systemd, which causes it to (pointlessly) use "systemctl" to manipulate services instead of "service" (which works on all releases). So the charm won't deploy on trusty as is.