typo in maas-region-controller.postrm stops remove/purge from correctly calling dbconfig

Bug #1387002 reported by Mike McCracken
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Confirmed
High
Unassigned

Bug Description

line 9 of maas-region-controller.postrm tests for the existence of '/etc/dbconfig-common/maas.conf', which will not exist. the file that gets created is instead maas-region-controller.conf. since that test is never true, the call to dbc_go to do the postrm.pgsql stuff never happens.

This appears to contribute to some flakiness involving purging and reinstalling maas.

On one server that I'm currently having difficulty with, I had a /etc/dbconfig-common/maas-region-controller.conf that was two months (and several maas versions) old, despite having purged several times.

I think this is related to the error messages I was seeing when purging, including errors about wrong password for user maas. The local_settings.py I saw had a password of 'maas', but that .conf file had a different password.

Unfortunately, while this appears to be a legitimate typo bug, manually fixing it and re-running the purge did not fix my problems:

Setting up maas-region-controller (1.7.0~beta8+bzr3273-0ubuntu1~trusty1) ...
dpkg: error processing package maas-region-controller (--configure):
 subprocess installed post-installation script returned error exit status 10

Mike McCracken (mikemc)
description: updated
description: updated
Changed in maas (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maas (Ubuntu):
status: New → Confirmed
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.