apt-get remove maas --purge while maas is running prevents full database purge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo | ||
maas (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ sudo apt-get remove maas python-django-maas --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
maas* maas-dhcp* maas-dns* python-django-maas*
0 upgraded, 0 newly installed, 4 to remove and 2 not upgraded.
After this operation, 18.1 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 62988 files and directories currently installed.)
Removing maas-dns ...
* Stopping domain name service... bind9
rndc: connect failed: 127.0.0.1#953: connection refused
...done.
* Starting domain name service... bind9
...done.
Purging configuration files for maas-dns ...
* Stopping domain name service... bind9
waiting for pid 30268 to die
...done.
* Starting domain name service... bind9
...done.
Removing maas-dhcp ...
Purging configuration files for maas-dhcp ...
Removing maas ...
dbconfig-common: dumping pgsql database maasdb to /var/tmp/
dbconfig-common: dropping pgsql database maasdb.
dropping database maasdb: does not exist.
dbconfig-common: revoking privileges for user maas on maasdb.
revoking access to database maasdb from maas@localhost: failed.
If I stop /etc/init.d/maas-* and apache, the --purge completes successfully
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 136 lines (+54/-29)5 files modifieddebian/changelog (+2/-0)
debian/maas-dhcp.config (+13/-8)
debian/maas-dhcp.postinst (+22/-19)
debian/maas-dhcp.templates (+8/-0)
debian/maas.prerm (+9/-2)
- Andres Rodriguez (community): Approve
- Raphaël Badin (community): Approve
-
Diff: 25 lines (+4/-0)2 files modifieddebian/changelog (+3/-0)
debian/maas-region-controller.prerm (+1/-0)
Changed in maas: | |
importance: | Medium → High |
assignee: | nobody → Mike Pontillo (mpontillo) |
milestone: | none → 1.8.0 |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Hi Diogo,
The stopping of the daemons is done in the .prerm script. These daemons are being stopped succesfully, but apache2. Which is maybe the reason why the database is not being purged.
If you want to verify this check:
/var/lib/ dpkg/info/ maas.prerm