Merge ~athos-ribeiro/ubuntu/+source/crmsh:merge-lp1958978-jammy into ubuntu/+source/crmsh:debian/sid

Proposed by Athos Ribeiro
Status: Merged
Merge reported by: Athos Ribeiro
Merged at revision: e7463cd48991b8bb4ae2877b39f61b9b3131595e
Proposed branch: ~athos-ribeiro/ubuntu/+source/crmsh:merge-lp1958978-jammy
Merge into: ubuntu/+source/crmsh:debian/sid
Diff against target: 267 lines (+187/-2)
6 files modified
debian/changelog (+97/-0)
debian/control (+2/-1)
debian/patches/0020-Use-crmsh-hb_report.patch (+32/-0)
debian/patches/0021-Support-python-310.patch (+53/-0)
debian/patches/series (+2/-0)
debian/tests/pacemaker-node-status.sh (+1/-1)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior (community) Approve
Canonical Server Pending
Canonical Server packageset reviewers Pending
git-ubuntu import Pending
Review via email: mp+414581@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

A PPA is available at https://launchpad.net/~athos-ribeiro/+archive/ubuntu/merge-crmsh-4.3.1-1-jammy/+packages

I ran the dep8 test suite locally, here is the test summary:

autopkgtest [16:09:03]: @@@@@@@@@@@@@@@@@@@@ summary
command1 PASS
command2 PASS
command3 PASS
utils.sh PASS
testsuite.sh PASS
pacemaker-basic-resource.sh PASS
pacemaker-node-status.sh PASS

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I'll take this one.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks for the MP, Athos.

It looks good. The only issue I found was the creation of the new release on d/changelog in order to add a delta. I tried explaining why this is not necessary and what you should do instead; feel free to ping if you want more clarification.

The package builds fine locally. autopkgtest is also passing, which is great. There are only two bugs filed against the package, and they're both being addressed by this MP.

I'm marking this MP as Needs Fixing because of the new release issue I mentioned above. Let me know when you address it and I will be happy to take another look.

Thanks.

review: Needs Fixing
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks for the review, Sergio.

I replied to the comment below and will follow up later with further changes.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

On Tuesday, January 25 2022, Athos Ribeiro wrote:

>> diff --git a/debian/changelog b/debian/changelog
>> index 6b672f6..52b5b8e 100644
>> --- a/debian/changelog
>> +++ b/debian/changelog
>> @@ -1,3 +1,32 @@
>> +crmsh (4.3.1-1ubuntu2) jammy; urgency=medium
>
> Thanks for the review, Sergio :)
>
> This is what I intended to do at first. Then I came across [1] and
> thought the idea there implied an additional release bump to separate
> the added changes from the merge process itself. I will address the
> issue and update [1] to make this idea clearer.
>
> [1] https://github.com/canonical/ubuntu-maintainers-handbook/blob/main/PackageMerging.md#check-existing-bug-entries

Hey,

Hm, yeah, maybe that text could be expanded a little bit. I assume you
got confused because of the "... make a new SRU style commit at the end
of the merge ..." part, is that correct? Although it is saying
something about a commit, I agree that it could actually explain that
the commit should eventually be part of the same changelog entry that
the merge will create.

It could also be said that having changelog entries for releases that
were never uploaded to the archive is a no-no on Debian/Ubuntu, but this
is unrelated to the UMH section at hand.

Cheers,

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

f64fc2c... by Athos Ribeiro

merge-changelogs

8cd126c... by Athos Ribeiro

reconstruct-changelog

e7463cd... by Athos Ribeiro

update-maintainer

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

I addressed the review comments and submitted a PR for the maintainers handbook at https://github.com/canonical/ubuntu-maintainers-handbook/pull/40

I also pushed the new package to a new PPA at

https://launchpad.net/~athos-ribeiro/+archive/ubuntu/merge-crmsh-lp1958978-jammy/+packages

and re-ran the dep8 test suite. Here is the test result summary:

autopkgtest [10:00:21]: @@@@@@@@@@@@@@@@@@@@ summary
command1 PASS
command2 PASS
command3 PASS
utils.sh PASS
testsuite.sh PASS
pacemaker-basic-resource.sh PASS
pacemaker-node-status.sh PASS

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks, Athos. This LGTM now. I believe you don't need a sponsor for this, but let me know if you do :-).

review: Approve
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks Sergio!

I squashed the last changelog change into the changelog reconstruction commit as well :)

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

This has now migrated.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 6b672f6..f12de2b 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,28 @@
6+crmsh (4.3.1-1ubuntu1) jammy; urgency=medium
7+
8+ * Merge with Debian unstable (LP: #1958978). Remaining changes:
9+ - d/t/pacemaker-node-status.sh: Use the output of "uname -n" instead
10+ of "node1" as the pacemaker node name.
11+ - d/p/0020-Use-crmsh-hb_report.patch: use the crmsh shipped hb_report script
12+ when available (LP #1958247).
13+ [ Adjusted for 4.3.1 upstream release. ]
14+ * Dropped changes:
15+ - d/p/0017-Fix-health-scripts-python-38-support.patch: remove deprecated
16+ function usage (LP #1947022).
17+ [ Included in Debian in 4.3.1-1. ]
18+ - d/p/0018-Replace-crmd.patch: replace crmd calls with pacemaker-controld
19+ (LP #1958241).
20+ [ Included in Debian in 4.3.1-1. ]
21+ - d/t/testsuite.sh: set timezone for time conversion tests (LP #1958243).
22+ [ Included in Debian in 4.3.1-1. ]
23+ - d/p/0019-Add-hb_report-dpkg-support.patch: Add dpkg support to hb_report
24+ (LP #1958246).
25+ [ Included in Debian in 4.3.1-1. ]
26+ * Added changes:
27+ - d/p/0021-Support-python-310.patch: support Python 3.10 (LP: #1958393).
28+
29+ -- Athos Ribeiro <athos.ribeiro@canonical.com> Wed, 26 Jan 2022 09:27:26 -0300
30+
31 crmsh (4.3.1-1) unstable; urgency=medium
32
33 [ Valentin Vidic ]
34@@ -18,6 +43,29 @@ crmsh (4.3.1-1) unstable; urgency=medium
35
36 -- Valentin Vidic <vvidic@debian.org> Wed, 19 Jan 2022 21:13:36 +0100
37
38+crmsh (4.2.1-3ubuntu2) jammy; urgency=medium
39+
40+ * New changes:
41+ - d/p/0017-Fix-health-scripts-python-38-support.patch: remove deprecated
42+ function usage (LP: #1947022).
43+ - d/p/0018-Replace-crmd.patch: replace crmd calls with pacemaker-controld
44+ (LP: #1958241).
45+ - d/t/testsuite.sh: set timezone for time conversion tests (LP: #1958243).
46+ - d/p/0019-Add-hb_report-dpkg-support.patch: add dpkg support to hb_report
47+ (LP: #1958246).
48+ - d/p/0020-Use-crmsh-hb_report.patch: use the crmsh shipped hb_report script
49+ when available (LP: #1958247).
50+
51+ -- Athos Ribeiro <athos.ribeiro@canonical.com> Fri, 07 Jan 2022 10:14:32 -0300
52+
53+crmsh (4.2.1-3ubuntu1) jammy; urgency=medium
54+
55+ * Merge with Debian unstable (LP: #1946853). Remaining changes:
56+ - d/t/pacemaker-node-status.sh: Use the output of "uname -n" instead
57+ of "node1" as the pacemaker node name.
58+
59+ -- Utkarsh Gupta <utkarsh@ubuntu.com> Mon, 06 Dec 2021 17:46:48 +0530
60+
61 crmsh (4.2.1-3) unstable; urgency=medium
62
63 * Team upload
64@@ -27,6 +75,24 @@ crmsh (4.2.1-3) unstable; urgency=medium
65
66 -- Ferenc Wágner <wferi@debian.org> Sat, 30 Oct 2021 15:37:37 +0200
67
68+crmsh (4.2.1-2ubuntu1) impish; urgency=medium
69+
70+ * Merge with Debian unstable. Remaining changes:
71+ - d/t/pacemaker-node-status.sh: Use the output of "uname -n" instead
72+ of "node1" as the pacemaker node name.
73+ * Dropped:
74+ - Upstream patches with post release fixes
75+ + [997f62d6] Fix: hb_report: disable dump all tasks stack into dmesg
76+ + [cce28254] Fix: crmsh.spec: using mktemp to create tmp file
77+ + [e098387e] Fix: bootstrap: use csync2 '-f' option correctly
78+ + [669f13b5] Fix: bootstrap: Change condition to add stonith-sbd resource
79+ + [ca1f0a7f] Fix: ui_resource: refresh <Tab> should complete resource
80+ first
81+ + [78ce77e4] Low: hb_report: Fix collecting of binary data
82+ [Applied by upstream in version 4.2.1]
83+
84+ -- Lucas Kanashiro <kanashiro@ubuntu.com> Fri, 23 Jul 2021 09:38:52 -0300
85+
86 crmsh (4.2.1-2) unstable; urgency=medium
87
88 * d/patches: include fix for CVE-2020-35459 (Closes: #985376)
89@@ -44,6 +110,25 @@ crmsh (4.2.1-1) unstable; urgency=medium
90
91 -- Valentin Vidic <vvidic@debian.org> Wed, 03 Feb 2021 22:05:33 +0100
92
93+crmsh (4.2.0-4ubuntu2) impish; urgency=medium
94+
95+ * d/t/pacemaker-node-status.sh: Use the output of "uname -n" instead
96+ of "node1" as the pacemaker node name.
97+
98+ -- Sergio Durigan Junior <sergio.durigan@canonical.com> Wed, 07 Jul 2021 16:44:57 -0400
99+
100+crmsh (4.2.0-4ubuntu1) hirsute; urgency=medium
101+
102+ * Merge with Debian; remaining changes:
103+ - [997f62d6] Fix: hb_report: disable dump all tasks stack into dmesg
104+ - [cce28254] Fix: crmsh.spec: using mktemp to create tmp file
105+ - [e098387e] Fix: bootstrap: use csync2 '-f' option correctly
106+ - [669f13b5] Fix: bootstrap: Change condition to add stonith-sbd resource
107+ - [ca1f0a7f] Fix: ui_resource: refresh <Tab> should complete resource first
108+ - [78ce77e4] Low: hb_report: Fix collecting of binary data
109+
110+ -- Matthias Klose <doko@ubuntu.com> Sun, 29 Nov 2020 13:55:19 +0100
111+
112 crmsh (4.2.0-4) unstable; urgency=medium
113
114 * d/patches: fix flaky autopkgtest (Closes: #972619)
115@@ -52,6 +137,18 @@ crmsh (4.2.0-4) unstable; urgency=medium
116
117 -- Valentin Vidic <vvidic@debian.org> Wed, 21 Oct 2020 20:42:26 +0200
118
119+crmsh (4.2.0-3ubuntu1) groovy; urgency=medium
120+
121+ * Fixes before release: (LP: #1895728)
122+ - [997f62d6] Fix: hb_report: disable dump all tasks stack into dmesg
123+ - [cce28254] Fix: crmsh.spec: using mktemp to create tmp file
124+ - [e098387e] Fix: bootstrap: use csync2 '-f' option correctly
125+ - [669f13b5] Fix: bootstrap: Change condition to add stonith-sbd resource
126+ - [ca1f0a7f] Fix: ui_resource: refresh <Tab> should complete resource first
127+ - [78ce77e4] Low: hb_report: Fix collecting of binary data
128+
129+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Wed, 16 Sep 2020 03:41:38 +0000
130+
131 crmsh (4.2.0-3) unstable; urgency=medium
132
133 [ Debian Janitor ]
134diff --git a/debian/control b/debian/control
135index 72403ca..c465a71 100644
136--- a/debian/control
137+++ b/debian/control
138@@ -1,7 +1,8 @@
139 Source: crmsh
140 Section: admin
141 Priority: optional
142-Maintainer: Debian HA Maintainers <debian-ha-maintainers@lists.alioth.debian.org>
143+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
144+XSBC-Original-Maintainer: Debian HA Maintainers <debian-ha-maintainers@lists.alioth.debian.org>
145 Uploaders:
146 Richard B Winters <rik@mmogp.com>,
147 Adrian Vondendriesch <adrian.vondendriesch@credativ.de>,
148diff --git a/debian/patches/0020-Use-crmsh-hb_report.patch b/debian/patches/0020-Use-crmsh-hb_report.patch
149new file mode 100644
150index 0000000..62e063f
151--- /dev/null
152+++ b/debian/patches/0020-Use-crmsh-hb_report.patch
153@@ -0,0 +1,32 @@
154+Description: Use the crmsh provided hb_report binary
155+ Otherwise, this calls will default to use the deprecated cluster-glue
156+ hb_report available in the system path.
157+ This change was performed upstream as part of
158+ https://github.com/ClusterLabs/crmsh/commit/bfb14d0b7fbb3dd027699367dc75f5af74a9fac3.
159+ Since until version 4.3.1, crmsh still relies on the cluster-glue hb_report,
160+ this patch does fall back to such binary in case the crmsh binary is not
161+ available.
162+Author: Athos Ribeiro <athos.ribeiro@canonical.com>
163+Forwarded: not-needed
164+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+bug/1958247
165+Last-Update: 2022-01-14
166+
167+--- a/hb_report/utillib.py
168++++ b/hb_report/utillib.py
169+@@ -1540,13 +1540,14 @@
170+
171+
172+ def start_slave_collector(node, arg_str):
173++ hb_report ='$(ls /usr/share/crmsh/hb_report/hb_report || echo /usr/sbin/hb_report)'
174+ if node == constants.WE:
175+- cmd = r"/usr/sbin/hb_report __slave".format(os.getcwd())
176++ cmd = r"{} __slave".format(hb_report, os.getcwd())
177+ for item in arg_str.split():
178+ cmd += " {}".format(str(item))
179+ _, out = crmutils.get_stdout(cmd)
180+ else:
181+- cmd = r'ssh {} {} "/usr/sbin/hb_report __slave"'.format(constants.SSH_OPTS, node, os.getcwd())
182++ cmd = r'ssh {} {} "{} __slave"'.format(constants.SSH_OPTS, node, hb_report, os.getcwd())
183+ for item in arg_str.split():
184+ cmd += " {}".format(str(item))
185+ code, out, err = crmutils.get_stdout_stderr(cmd)
186diff --git a/debian/patches/0021-Support-python-310.patch b/debian/patches/0021-Support-python-310.patch
187new file mode 100644
188index 0000000..b86241d
189--- /dev/null
190+++ b/debian/patches/0021-Support-python-310.patch
191@@ -0,0 +1,53 @@
192+From c1356d64086d2e3f9d113f346a14e6dff1c2acb0 Mon Sep 17 00:00:00 2001
193+From: Yi Zhao <yi.zhao@windriver.com>
194+Date: Tue, 26 Oct 2021 14:01:09 +0800
195+Subject: [PATCH] orderedset.py: fix deprecation on collections.MutableSet
196+
197+Python 3.10 removes the deprecated aliases to collections abstract
198+base clases [1]. Using 'collections.abc.MutableSet' instead of
199+'collections.MutableSet'
200+
201+[1]: https://bugs.python.org/issue37324
202+
203+Fixes:
204+$ crm
205+Traceback (most recent call last):
206+ File "/usr/bin/crm", line 29, in <module>
207+ from crmsh import main
208+ File "/usr/lib64/python3.10/site-packages/crmsh/main.py", line 18, in <module>
209+ from . import ui_root
210+ File "/usr/lib64/python3.10/site-packages/crmsh/ui_root.py", line 23, in <module>
211+ from . import ui_cib
212+ File "/usr/lib64/python3.10/site-packages/crmsh/ui_cib.py", line 16, in <module>
213+ from .cibconfig import cib_factory
214+ File "/usr/lib64/python3.10/site-packages/crmsh/cibconfig.py", line 23, in <module>
215+ from . import orderedset
216+ File "/usr/lib64/python3.10/site-packages/crmsh/orderedset.py", line 29, in <module>
217+ class OrderedSet(collections.MutableSet):
218+AttributeError: module 'collections' has no attribute 'MutableSet'
219+
220+Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
221+
222+Origin: upstream, https://github.com/ClusterLabs/crmsh/commit/c1356d64086d2e3f9d113f346a14e6dff1c2acb0
223+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+bug/1958393
224+Last-Update: 2022-01-19
225+---
226+ crmsh/orderedset.py | 2 +-
227+ 1 file changed, 1 insertion(+), 1 deletion(-)
228+
229+diff --git a/crmsh/orderedset.py b/crmsh/orderedset.py
230+index 21ec480c..27233289 100644
231+--- a/crmsh/orderedset.py
232++++ b/crmsh/orderedset.py
233+@@ -26,7 +26,7 @@ import collections
234+ KEY, PREV, NEXT = list(range(3))
235+
236+
237+-class OrderedSet(collections.MutableSet):
238++class OrderedSet(collections.abc.MutableSet):
239+
240+ def __init__(self, iterable=None):
241+ self.end = end = []
242+--
243+2.33.1
244+
245diff --git a/debian/patches/series b/debian/patches/series
246index a6ffa87..f07fd29 100644
247--- a/debian/patches/series
248+++ b/debian/patches/series
249@@ -13,3 +13,5 @@
250 0017-Fix-health-scripts-python-38-support.patch
251 0018-Replace-crmd.patch
252 0019-Add-hb_report-dpkg-support.patch
253+0020-Use-crmsh-hb_report.patch
254+0021-Support-python-310.patch
255diff --git a/debian/tests/pacemaker-node-status.sh b/debian/tests/pacemaker-node-status.sh
256index 229a678..1453cff 100755
257--- a/debian/tests/pacemaker-node-status.sh
258+++ b/debian/tests/pacemaker-node-status.sh
259@@ -20,7 +20,7 @@ service pacemaker start
260 sleep $DAEMON_TIMEOUT
261
262 POS="$(corosync-cmapctl -q -g nodelist.local_node_pos)"
263-NODE="$(corosync-cmapctl -q -g nodelist.node.$POS.name)"
264+NODE="$(uname -n)"
265
266 #
267 # online

Subscribers

People subscribed via source and target branches