Bug 1224869 - crm_resource command core dumped
Summary: crm_resource command core dumped
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: High Availability (show other bugs)
Version: Current
Hardware: Other Other
: P2 - High : Normal (vote)
Target Milestone: ---
Assignee: Yan Gao
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 09:16 UTC by Xin Liang
Modified: 2024-07-12 17:40 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin Liang 2024-05-22 09:16:01 UTC
crm_resource command core dumped when calling:
# crm_resource --show-metadata stonith:null
Segmentation fault (core dumped)

And the output was in a mess when calling:
# crm_resource --show-metadata stonith:external/sbd
<?xml version="1.0"?>
<resource-agent name="external/sbd">
  <version>1.1</version>
  <longdesc lang="en">
&#x17;���XU
  </longdesc>
  <shortdesc lang="en">g���XU</shortdesc>
 �~�
  <actions>
    <action name="start" timeout="20s" />
    <action name="stop" timeout="15s" />
    <action name="status" timeout="20s" />
    <action name="monitor" timeout="20s" interval="3600s" />
    <action name="meta-data" timeout="15s" />
  </actions>
  <special tag="heartbeat">
    <version>2.0</version>
  </special>
</resource-agent>


Related versions:

# rpm -qa|grep pacemaker
pacemaker-schemas-2.1.7+20240411.81041cf0b-1.1.noarch
pacemaker-libs-2.1.7+20240411.81041cf0b-1.1.x86_64
pacemaker-cli-2.1.7+20240411.81041cf0b-1.1.x86_64
python3-pacemaker-2.1.7+20240411.81041cf0b-1.1.noarch
pacemaker-2.1.7+20240411.81041cf0b-1.1.x86_64
# rpm -qa|grep cluster-glue
cluster-glue-libs-1.0.12+v1.git.1663933145.1619d044-2.3.x86_64
cluster-glue-1.0.12+v1.git.1663933145.1619d044-2.3.x86_64
cluster-glue-devel-1.0.12+v1.git.1663933145.1619d044-2.3.x86_64
# cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20240423"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240423"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240423:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20240423"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
Comment 1 Xin Liang 2024-05-23 04:09:57 UTC
All test cases require sbd will be blocked, there should be the same issue when changing libvirt as stonith:

```
# crm_resource --show-metadata stonith:external/libvirt
<?xml version="1.0"?>
<resource-agent name="external/libvirt">
  <version>1.1</version>
  <longdesc lang="en">
`z�`&#x05;
  </longdesc>
  <shortdesc lang="en">�&#x12;cw	V</shortdesc>
```

So I raised the priority to P2
Comment 2 Yan Gao 2024-06-03 19:36:02 UTC
Fixed the relevant issues for main branch:
https://github.com/ClusterLabs/pacemaker/pull/3476
https://github.com/ClusterLabs/pacemaker/pull/3492

, and backported for 2.1 branch:
https://github.com/ClusterLabs/pacemaker/pull/3480
Comment 3 Xin Liang 2024-06-04 01:59:24 UTC
(In reply to Yan Gao from comment #2)
> Fixed the relevant issues for main branch:
> https://github.com/ClusterLabs/pacemaker/pull/3476
> https://github.com/ClusterLabs/pacemaker/pull/3492
> 
> , and backported for 2.1 branch:
> https://github.com/ClusterLabs/pacemaker/pull/3480

Thanks, Yan!
Comment 4 Yan Gao 2024-06-04 08:50:42 UTC
The fixes are already in:
https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker

Let me know when you want them in openSUSE:Factory.
Comment 5 Roger Zhou 2024-06-11 02:39:48 UTC
(In reply to Yan Gao from comment #4)
> The fixes are already in:
> https://build.opensuse.org/package/show/network:ha-clustering:Factory/
> pacemaker
> 
> Let me know when you want them in openSUSE:Factory.

yes, please. Thx!
Comment 6 OBSbugzilla Bot 2024-06-11 06:55:03 UTC
This is an autogenerated message for OBS integration:
This bug (1224869) was mentioned in
https://build.opensuse.org/request/show/1179895 Factory / pacemaker