Merge lp:~andreserl/maas/fix_lp1553648 into lp:~maas-maintainers/maas/packaging

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: 457
Merged at revision: 456
Proposed branch: lp:~andreserl/maas/fix_lp1553648
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 54 lines (+11/-11)
2 files modified
debian/changelog (+8/-6)
debian/maas-region-controller.postrm (+3/-5)
To merge this branch: bzr merge lp:~andreserl/maas/fix_lp1553648
Reviewer Review Type Date Requested Status
Mike Pontillo (community) Approve
Review via email: mp+288600@code.launchpad.net

Commit message

Fix issue handling package removal and dbconfig-common

To post a comment you must log in.
Revision history for this message
MAAS Lander (maas-lander) wrote :

Voting does not meet specified criteria. Required: Approve >= 1, Disapprove == 0. Got: 1 Pending.

Revision history for this message
Mike Pontillo (mpontillo) wrote :

I read through the thread with Paul here:

https://bugs.launchpad.net/ubuntu/+source/dbconfig-common/+bug/1553757

Just so I understand, why was checking for /etc/dbconfig-common/maas.conf causing a problem? (I guess dbconfig didn't get to fully clean up if the configuration file still existed?)

What do you think about Paul's suggestion to do this to avoid prompting? (might be important for HA?)

    dbc_prio_high=medium

Since it sounds like you've tested this pretty well, I'll go ahead and approve. I have noticed odd dbconfig behavior while purging MAAS before as well, and this change does seem like a good step toward sanity.

review: Approve
Revision history for this message
Andres Rodriguez (andreserl) wrote :

CHecking for a non-existant file caused MAAS to not really de-register it from the dbconfig/ucf db, hence things that shouldn'y have been there.

So I'll look into the prio thing but wont add it until I get some real testing.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2016-03-07 21:09:20 +0000
+++ debian/changelog 2016-03-10 01:52:36 +0000
@@ -1,14 +1,18 @@
1maas (2.0.0~alpha1+bzr4741-0ubuntu1) UNRELEASED; urgency=medium1maas (2.0.0~alpha2+bzr4760-0ubuntu1) UNRELEASED; urgency=medium
22
3 * New usptream release, 2.0.0 bzr 4741.3 * New usptream release, 2.0.0 bzr 4760 (LP: #1553261).
4 * maas-dns Depends: bind9 >= 1:9.10.3.dfsg.P2-5 for better system time.4 * maas-dns Depends: bind9 >= 1:9.10.3.dfsg.P2-5 for better system time.
5 LP: #1553176.5 LP: #1553176.
6 * debian/extras/maas-{region,rack}: Replace maas-region-admin
7 and maas-provision, respectively (LP: #1553791)
8 * debian/maas-region-controller.postrm: Correctly handle removal by
9 dbconfig-common. (LP: #1553648)
610
7 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +010011 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
812
9maas (2.0.0~alpha1+bzr4736-0ubuntu1~xenial2) xenial; urgency=medium13maas (2.0.0~alpha1+bzr4736-0ubuntu1) xenial; urgency=medium
1014
11 * New usptream release, 2.0.0 bzr 4736:15 * New usptream release, 2.0.0 bzr 4736 (LP: #1553261):
12 - Deprecate Cluster Controllers in favor of Rack Controllers.16 - Deprecate Cluster Controllers in favor of Rack Controllers.
13 - Deprecate API 1.0 in favor if API 2.0.17 - Deprecate API 1.0 in favor if API 2.0.
14 - DHCP & Rack Controller High Availability.18 - DHCP & Rack Controller High Availability.
@@ -20,8 +24,6 @@
20 * Allow 'dhcpd' to access /usr/sbin/maas-provision via24 * Allow 'dhcpd' to access /usr/sbin/maas-provision via
21 sudoers file (LP: #1552775)25 sudoers file (LP: #1552775)
22 * debian/extras/maas: Replace shell wrapper with python. (LP: #1553605)26 * debian/extras/maas: Replace shell wrapper with python. (LP: #1553605)
23 * debian/extras/maas-{region,rack}: Replace maas-region-admin
24 and maas-provision, respectively (LP: #1553791)
25 * debian/control: Depends on iproute2 instead. (LP: #1553647)27 * debian/control: Depends on iproute2 instead. (LP: #1553647)
2628
27 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +010029 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
2830
=== modified file 'debian/maas-region-controller.postrm'
--- debian/maas-region-controller.postrm 2015-07-03 14:26:39 +0000
+++ debian/maas-region-controller.postrm 2016-03-10 01:52:36 +0000
@@ -6,11 +6,9 @@
66
7RELEASE=`lsb_release -rs` || RELEASE=""7RELEASE=`lsb_release -rs` || RELEASE=""
88
9if [ -f /etc/dbconfig-common/maas.conf ]; then9if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
10 if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then10 . /usr/share/dbconfig-common/dpkg/postrm.pgsql
11 . /usr/share/dbconfig-common/dpkg/postrm.pgsql11 dbc_go maas-region-controller $@
12 dbc_go maas-region-controller $@
13 fi
14fi12fi
1513
16case "$1" in14case "$1" in

Subscribers

People subscribed via source and target branches

to all changes: