charm does not clean up

Bug #1361822 reported by Eric Snow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
reviewboard (Juju Charms Collection)
Triaged
High
Unassigned

Bug Description

From what I can tell the charm does not clean anything up when you run "juju remove-service reviewboard". I would expect anything added to postgres to be removed and likewise any files (e.g. /var/www/reviewboard, /etc/apache2/sites-*/reviewboard.conf). If I remove the service and then try deploying again I get various failures depending on the state of the previous deployment and whether or not the DB relation had been added.

This makes debugging reviewboard deployment issues a pain and could be a bigger problem if you have to re-use hosts or can't just blow away your DB and re-deploy.

Revision history for this message
Eric Snow (ericsnowcurrently) wrote :

Perhaps the stop hook needs to be expanded and db-relation-departed/-broken hooks added?

Changed in reviewboard (Juju Charms Collection):
status: New → Triaged
Changed in reviewboard (Juju Charms Collection):
importance: Undecided → High
Revision history for this message
David Britton (dpb) wrote :

I think deleting data from postgres on removal is unexpected and potentially dangerous.

Revision history for this message
José Antonio Rey (jose) wrote :

Same here. I would expect it to have all my data once I relate psql back.

Revision history for this message
Eric Snow (ericsnowcurrently) wrote :

I agree that sometimes you want to keep the DB around. However, sometimes you do want a fresh DB, like when you remove and re-deploy to get a fresh reviewboard but you don't want to deploy a new postgres service. Both have merit. Could the charm accommodate both?

Regardless, the charm currently does not support using an existing reviewboard DB (rb-site can't handle it and the charm doesn't work around that).

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.