crmsh's hb_report does not support deb based systems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
crmsh (Ubuntu) |
Fix Released
|
Undecided
|
Athos Ribeiro |
Bug Description
hb_report does not support deb packages. When ran in a deb based OS, the
script throws an error and exits. The final result is an incomplete system
report.
This has been fixed upstream in https:/
To be able to reproduce this issue, one needs to either provide a crmd binary (old, removed pacemaker daemon) or replace the calls in the current package for calls to pacemaker-controld. See https:/
Then, run
$ /usr/share/
Which should throw an exception as:
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/share/
out_string += crmsh_info()
File "/usr/share/
return res[0].split()[-1]
IndexError: list index out of range
Related branches
- Sergio Durigan Junior (community): Approve
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 267 lines (+187/-2)6 files modifieddebian/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)
- Paride Legovini (community): Approve
- Canonical Server: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 278 lines (+228/-0)7 files modifieddebian/changelog (+15/-0)
debian/patches/0017-Fix-health-scripts-python-38-support.patch (+81/-0)
debian/patches/0018-Replace-crmd.patch (+31/-0)
debian/patches/0019-Add-hb_report-dpkg-support.patch (+60/-0)
debian/patches/0020-Use-crmsh-hb_report.patch (+35/-0)
debian/patches/series (+4/-0)
debian/tests/testsuite.sh (+2/-0)
Changed in crmsh (Ubuntu): | |
assignee: | nobody → Athos Ribeiro (athos-ribeiro) |
This bug was fixed in the package crmsh - 4.2.1-3ubuntu2
---------------
crmsh (4.2.1-3ubuntu2) jammy; urgency=medium
* New changes: Fix-health- scripts- python- 38-support. patch: remove deprecated Replace- crmd.patch: replace crmd calls with pacemaker-controld Add-hb_ report- dpkg-support. patch: add dpkg support to hb_report Use-crmsh- hb_report. patch: use the crmsh shipped hb_report script
- d/p/0017-
function usage (LP: #1947022).
- d/p/0018-
(LP: #1958241).
- d/t/testsuite.sh: set timezone for time conversion tests (LP: #1958243).
- d/p/0019-
(LP: #1958246).
- d/p/0020-
when available (LP: #1958247).
-- Athos Ribeiro <email address hidden> Fri, 07 Jan 2022 10:14:32 -0300