Bug 232140

Summary: ccs_get on /foo/child::*[1] doesn't work if foo's child is an empty tag
Product: Red Hat Enterprise Linux 5 Reporter: Lon Hohberger <lhh>
Component: cmanAssignee: Lon Hohberger <lhh>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: cluster-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0575 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-07 16:59:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
head & rhel5 patch none

Description Lon Hohberger 2007-03-13 22:48:14 UTC
+++ This bug was initially created as a clone of Bug #232139 +++

Description of problem:

If we have the following xml, and we issue the query "/foo/child::*[1]" to ccs:

<foo>
  <bar/>
</foo>

It does not work - and returns -ENODATA.  If we change the XML to have some sort
of child - even a text node, i.e.:

<foo>
  <bar>hello, world</bar>
</foo>

ccs_get /foo/child::*[1] works correctly (returns "bar=hello, world").

This fix is required for #212121 to be completed correctly; with the attached
patch, ccs returns  "bar=" as the result of querying the first example instead
of -ENODATA.

The patch also fixes ccs_set_state (which doesn't work at all).

-- Additional comment from lhh on 2007-03-13 18:46 EST --
Created an attachment (id=149999)
RHEL4 patch

Comment 1 Lon Hohberger 2007-03-13 22:48:14 UTC
Created attachment 150000 [details]
head & rhel5 patch

Comment 2 Kiersten (Kerri) Anderson 2007-03-20 15:54:44 UTC
Devel ACK for 5.1

Comment 4 Kiersten (Kerri) Anderson 2007-04-23 16:50:28 UTC
Fixing Product Name.  Cluster Suite was merged into Red Hat Enterpise Linux for
5.0.  In addition dlm, fence and ccs were merged into the cman package, so
bugzilla should reflect package name where those utilities are located.

Comment 5 RHEL Program Management 2007-04-25 20:43:26 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 6 Lon Hohberger 2007-05-08 14:11:55 UTC
Ryan, do you want me to push this to rhel5 / head ?

Comment 8 Lon Hohberger 2007-06-29 17:40:47 UTC
Testing is simple.  Rgmanager on rhel5.1 will show no services at all without
this patch ;)

Comment 10 errata-xmlrpc 2007-11-07 16:59:21 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0575.html