RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1281450 - stonith_admin strips description from fence agents' metadata
Summary: stonith_admin strips description from fence agents' metadata
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pacemaker
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.3
Assignee: Klaus Wenninger
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1304771
Blocks: 1262001
TreeView+ depends on / blocked
 
Reported: 2015-11-12 14:51 UTC by Tomas Jelinek
Modified: 2016-11-03 18:56 UTC (History)
4 users (show)

Fixed In Version: pacemaker-1.1.15-1.2c148ac.git.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2016-11-03 18:56:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2578 0 normal SHIPPED_LIVE Moderate: pacemaker security, bug fix, and enhancement update 2016-11-03 12:07:24 UTC

Description Tomas Jelinek 2015-11-12 14:51:18 UTC
Description of problem:
When displaying fence agent's metadata using stonith_admin, text contained in longdesc and shortdesc tags is removed.


Version-Release number of selected component (if applicable):
pacemaker-1.1.13-10.el7.x86_64


How reproducible:
always, easily


Steps to Reproduce:
1. stonith_admin -M -a fence_xvm
2. fence_xvm -o metadata
3. compare 1 and 2


Actual results:
[root@rh71-node1:~]# stonith_admin -M -a fence_xvm | head
<resource-agent name="fence_xvm" shortdesc="Fence agent for virtual machines">
  <longdesc>
  </longdesc>
  <parameters>
    <parameter name="debug">
      <getopt mixed="-d"/>
      <content type="boolean"/>
      <shortdesc lang="en">
      </shortdesc>
    </parameter>


Expected results:
Description from the original metadata is not removed.


Additional info:
[root@rh71-node1:~]# fence_xvm -o metadata | head
<?xml version="1.0" ?>
<resource-agent name="fence_xvm" shortdesc="Fence agent for virtual machines">
<longdesc>fence_xvm is an I/O Fencing agent which can be used withvirtual machines.</longdesc>
<parameters>
        <parameter name="debug">
                <getopt mixed="-d" />
                <content type="boolean" />
                <shortdesc lang="en">Specify (stdin) or increment (command line) debug level</shortdesc>
        </parameter>
        <parameter name="ip_family">

Comment 1 Klaus Wenninger 2015-11-26 14:36:54 UTC
The report doesn't explicitely state that it is working as expected 
with the upstream master as of now even if the commit comments
don't point to the fix at the first sight.

Comment 2 Klaus Wenninger 2015-12-01 19:07:24 UTC
The following upstream commit fixes the problem:

https://github.com/ClusterLabs/pacemaker/commit/524c4d67099ecceaa7c7b26d5b4c0b3e1f8c59af

Comment 4 Mike McCune 2016-03-28 22:54:17 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 6 Patrik Hagara 2016-08-22 11:39:22 UTC
Confirmed fixed in pacemaker-1.1.15-9.el7.x86_64

Before the fix:

> [root@virt-247 ~]# rpm -q pacemaker
> pacemaker-1.1.13-10.el7_2.4.x86_64
> [root@virt-247 ~]# stonith_admin -M -a fence_xvm | head
> <resource-agent name="fence_xvm" shortdesc="Fence agent for virtual machines">
>   <longdesc>
>   </longdesc>
>   <parameters>
>     <parameter name="debug">
>       <getopt mixed="-d"/>
>       <content type="boolean"/>
>       <shortdesc lang="en">
>       </shortdesc>
>     </parameter>
> [root@virt-247 ~]# fence_xvm -o metadata | head
> <?xml version="1.0" ?>
> <resource-agent name="fence_xvm" shortdesc="Fence agent for virtual machines">
> <longdesc>fence_xvm is an I/O Fencing agent which can be used withvirtual machines.</longdesc>
> <parameters>
> 	<parameter name="debug">
> 		<getopt mixed="-d" />
> 		<content type="boolean" />
> 		<shortdesc lang="en">Specify (stdin) or increment (command line) debug level</shortdesc>
> 	</parameter>
> 	<parameter name="ip_family">


After the fix:

> [root@virt-138 ~]# rpm -q pacemaker
> pacemaker-1.1.15-9.el7.x86_64
> [root@virt-138 ~]# stonith_admin -M -a fence_xvm | head
> <resource-agent name="fence_xvm" shortdesc="Fence agent for virtual machines">
>   <longdesc>
>     fence_xvm is an I/O Fencing agent which can be used withvirtual machines.
>   </longdesc>
>   <parameters>
>     <parameter name="debug">
>       <getopt mixed="-d"/>
>       <content type="boolean"/>
>       <shortdesc lang="en">
>         Specify (stdin) or increment (command line) debug level
> [root@virt-138 ~]# fence_xvm -o metadata | head
> <?xml version="1.0" ?>
> <resource-agent name="fence_xvm" shortdesc="Fence agent for virtual machines">
> <longdesc>fence_xvm is an I/O Fencing agent which can be used withvirtual machines.</longdesc>
> <parameters>
> 	<parameter name="debug">
> 		<getopt mixed="-d" />
> 		<content type="boolean" />
> 		<shortdesc lang="en">Specify (stdin) or increment (command line) debug level</shortdesc>
> 	</parameter>
> 	<parameter name="ip_family">


stonith_admin no longer strips fence agent long description metadata. Marking verified.

Comment 8 errata-xmlrpc 2016-11-03 18:56:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2578.html


Note You need to log in before you can comment on or make changes to this bug.