crmsh's hb_report does not support deb based systems

Bug #1958246 reported by Athos Ribeiro
6
This bug affects 1 person
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://github.com/ClusterLabs/crmsh/pull/926

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://bugs.launchpad.net/ubuntu/+source/crmsh/+bug/1958241 for further reference.

Then, run

$ /usr/share/crmsh/hb_report/hb_report -v -f 2pm report_1

Which should throw an exception as:

Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/crmsh/hb_report/utillib.py", line 1568, in sys_info
    out_string += crmsh_info()
  File "/usr/share/crmsh/hb_report/utillib.py", line 433, in crmsh_info
    return res[0].split()[-1]
IndexError: list index out of range

Related branches

Changed in crmsh (Ubuntu):
assignee: nobody → Athos Ribeiro (athos-ribeiro)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package crmsh - 4.2.1-3ubuntu2

---------------
crmsh (4.2.1-3ubuntu2) jammy; urgency=medium

  * New changes:
    - d/p/0017-Fix-health-scripts-python-38-support.patch: remove deprecated
      function usage (LP: #1947022).
    - d/p/0018-Replace-crmd.patch: replace crmd calls with pacemaker-controld
      (LP: #1958241).
    - d/t/testsuite.sh: set timezone for time conversion tests (LP: #1958243).
    - d/p/0019-Add-hb_report-dpkg-support.patch: add dpkg support to hb_report
      (LP: #1958246).
    - d/p/0020-Use-crmsh-hb_report.patch: use the crmsh shipped hb_report script
      when available (LP: #1958247).

 -- Athos Ribeiro <email address hidden> Fri, 07 Jan 2022 10:14:32 -0300

Changed in crmsh (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.