Merge ~athos-ribeiro/ubuntu/+source/crmsh:lp1972730-jammy-sru into ubuntu/+source/crmsh:ubuntu/jammy-devel

Proposed by Athos Ribeiro
Status: Merged
Merged at revision: 9340a9234ad9e1366a5a94b21bedfe8974e6c91a
Proposed branch: ~athos-ribeiro/ubuntu/+source/crmsh:lp1972730-jammy-sru
Merge into: ubuntu/+source/crmsh:ubuntu/jammy-devel
Diff against target: 67 lines (+45/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/lp1972730.patch (+37/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Athos Ribeiro (community) Approve
Canonical Server Reporter Pending
Review via email: mp+426205@code.launchpad.net

Description of the change

SRU proposed in LP: #1972730 by Felipe Reyes.

PPA: https://launchpad.net/~athos-ribeiro/+archive/ubuntu/lp1972730-crmsh/+packages

DEP8 test suite local run result summary:

autopkgtest [11:36:19]: @@@@@@@@@@@@@@@@@@@@ summary
command1 PASS
command2 PASS
command3 PASS
utils.sh PASS
testsuite.sh PASS
pacemaker-basic-resource.sh PASS
pacemaker-node-status.sh PASS

To post a comment you must log in.
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

As discussed offline, this should not require an additional +1 since it is part of sponsoring a non-server contribution.

Uploaded:

$ dput ubuntu ../crmsh_4.3.1-1ubuntu3_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: ../crmsh_4.3.1-1ubuntu3_source.changes: Valid signature from 033C4CA276024834
Checking signature on .dsc
gpg: ../crmsh_4.3.1-1ubuntu3.dsc: Valid signature from 033C4CA276024834
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading crmsh_4.3.1-1ubuntu3.dsc: done.
  Uploading crmsh_4.3.1-1ubuntu3.debian.tar.xz: done.
  Uploading crmsh_4.3.1-1ubuntu3_source.buildinfo: done.
  Uploading crmsh_4.3.1-1ubuntu3_source.changes: done.
Successfully uploaded packages.

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

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 63a8118..88bd1bd 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+crmsh (4.3.1-1ubuntu3) jammy; urgency=medium
7+
8+ * d/p/lp1972730.patch: Handle the output of 'crmadmin -S' correctly
9+ (LP: #1972730).
10+
11+ -- Felipe Reyes <felipe.reyes@canonical.com> Fri, 01 Jul 2022 10:59:50 -0400
12+
13 crmsh (4.3.1-1ubuntu2) jammy; urgency=medium
14
15 * d/t/control: add resource-agents-extra as a dependency of
16diff --git a/debian/patches/lp1972730.patch b/debian/patches/lp1972730.patch
17new file mode 100644
18index 0000000..43e596b
19--- /dev/null
20+++ b/debian/patches/lp1972730.patch
21@@ -0,0 +1,37 @@
22+From 945654d00c8376d1ad8fbd4f6e82ee140b00409e Mon Sep 17 00:00:00 2001
23+From: liangxin1300 <XLiang@suse.com>
24+Date: Wed, 11 May 2022 11:09:28 +0800
25+Subject: [PATCH] Fix: utils: wait4dc: Make change since output of 'crmadmin
26+ -S' changed(bsc#1199412)
27+
28+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/crmsh/+bug/1972730
29+Origin: upstream, https://github.com/ClusterLabs/crmsh/commit/945654d00c8376d1ad8fbd4f6e82ee140b00409e
30+Last-Update: 2022-07-04
31+---
32+ crmsh/utils.py | 12 +++---------
33+ 1 file changed, 3 insertions(+), 9 deletions(-)
34+
35+Index: crmsh-4.3.1/crmsh/utils.py
36+===================================================================
37+--- crmsh-4.3.1.orig/crmsh/utils.py
38++++ crmsh-4.3.1/crmsh/utils.py
39+@@ -888,16 +888,10 @@ def wait4dc(what="", show_progress=True)
40+ return False
41+ cmd = "crmadmin -S %s" % dc
42+ rc, s = get_stdout(add_sudo(cmd))
43+- if not s.startswith("Status"):
44+- common_warn("%s unexpected output: %s (exit code: %d)" %
45+- (cmd, s, rc))
46++ if rc != 0:
47++ common_err("Exit code of command {} is {}".format(cmd, rc))
48+ return False
49+- try:
50+- dc_status = s.split()[-2]
51+- except:
52+- common_warn("%s unexpected output: %s" % (cmd, s))
53+- return False
54+- if dc_status == "S_IDLE":
55++ if re.search("S_IDLE.*ok", s):
56+ if output_started:
57+ sys.stderr.write(" done\n")
58+ return True
59diff --git a/debian/patches/series b/debian/patches/series
60index f07fd29..8948f14 100644
61--- a/debian/patches/series
62+++ b/debian/patches/series
63@@ -15,3 +15,4 @@
64 0019-Add-hb_report-dpkg-support.patch
65 0020-Use-crmsh-hb_report.patch
66 0021-Support-python-310.patch
67+lp1972730.patch

Subscribers

People subscribed via source and target branches