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
1=== modified file 'debian/changelog'
2--- debian/changelog 2016-03-07 21:09:20 +0000
3+++ debian/changelog 2016-03-10 01:52:36 +0000
4@@ -1,14 +1,18 @@
5-maas (2.0.0~alpha1+bzr4741-0ubuntu1) UNRELEASED; urgency=medium
6+maas (2.0.0~alpha2+bzr4760-0ubuntu1) UNRELEASED; urgency=medium
7
8- * New usptream release, 2.0.0 bzr 4741.
9+ * New usptream release, 2.0.0 bzr 4760 (LP: #1553261).
10 * maas-dns Depends: bind9 >= 1:9.10.3.dfsg.P2-5 for better system time.
11 LP: #1553176.
12+ * debian/extras/maas-{region,rack}: Replace maas-region-admin
13+ and maas-provision, respectively (LP: #1553791)
14+ * debian/maas-region-controller.postrm: Correctly handle removal by
15+ dbconfig-common. (LP: #1553648)
16
17 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
18
19-maas (2.0.0~alpha1+bzr4736-0ubuntu1~xenial2) xenial; urgency=medium
20+maas (2.0.0~alpha1+bzr4736-0ubuntu1) xenial; urgency=medium
21
22- * New usptream release, 2.0.0 bzr 4736:
23+ * New usptream release, 2.0.0 bzr 4736 (LP: #1553261):
24 - Deprecate Cluster Controllers in favor of Rack Controllers.
25 - Deprecate API 1.0 in favor if API 2.0.
26 - DHCP & Rack Controller High Availability.
27@@ -20,8 +24,6 @@
28 * Allow 'dhcpd' to access /usr/sbin/maas-provision via
29 sudoers file (LP: #1552775)
30 * debian/extras/maas: Replace shell wrapper with python. (LP: #1553605)
31- * debian/extras/maas-{region,rack}: Replace maas-region-admin
32- and maas-provision, respectively (LP: #1553791)
33 * debian/control: Depends on iproute2 instead. (LP: #1553647)
34
35 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
36
37=== modified file 'debian/maas-region-controller.postrm'
38--- debian/maas-region-controller.postrm 2015-07-03 14:26:39 +0000
39+++ debian/maas-region-controller.postrm 2016-03-10 01:52:36 +0000
40@@ -6,11 +6,9 @@
41
42 RELEASE=`lsb_release -rs` || RELEASE=""
43
44-if [ -f /etc/dbconfig-common/maas.conf ]; then
45- if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
46- . /usr/share/dbconfig-common/dpkg/postrm.pgsql
47- dbc_go maas-region-controller $@
48- fi
49+if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
50+ . /usr/share/dbconfig-common/dpkg/postrm.pgsql
51+ dbc_go maas-region-controller $@
52 fi
53
54 case "$1" in

Subscribers

People subscribed via source and target branches

to all changes: