[Pacemaker] crm_attribte failed with Multiple attributes match

hj lee kerdosa at gmail.com
Tue Jan 12 15:37:57 EST 2010


On Tue, Jan 12, 2010 at 1:39 AM, Andrew Beekhof <andrew at beekhof.net> wrote:

> On Mon, Jan 11, 2010 at 11:32 PM, hj lee <kerdosa at gmail.com> wrote:
> > I rebooted the system a few days ago. If it happens again, will post it.
> But
> > can you guess any how cib query returns multiple entries?
>
> Not based on the information so far. Sorry.
>

Hi,

It happened again, I attched cib files and log messages of both nodes. The
problem happened last night, but cib file was captured this morning.  As you
can see below log expert, the attrd receives 2 entries for cib_query,
crm_attribute failed to update master score. The fact that the
cib_process_xpath was printed twice and <xpath-query> tag clearly suggests
that the root cause of this problem is xpath_search() returned two entries.
So is it a bug in xml2 library?

Thanks
hj

2010-01-12 00:19:47.879800 copper1-cib: [4764]: debug: cib_process_xpath:
Processing cib_query op for //cib/status//node_state[@id='
copper1.dr.peach.com']//nvpair[@name='master-vmrd-res:0']
(/cib/status/node_state[1]/transient_attributes/instance_attributes/nvpair[3])
2010-01-12 00:19:47.897835 copper1-cib:last message repeated 2 times
2010-01-12 00:19:47.879870 copper1-attrd: [4766]: debug: log_data_element:
find_nvpair_attr: Match <xpath-query >
2010-01-12 00:19:47.879892 copper1-attrd: [4766]: debug: log_data_element:
find_nvpair_attr: Match   <nvpair
id="status-copper1.dr.peach.com-master-vmrd-res:0" name="master-vmrd-res:0"
value="10000" />
2010-01-12 00:19:47.898582 copper1-attrd:last message repeated 2 times
2010-01-12 00:19:47.879938 copper1-attrd: [4766]: debug: log_data_element:
find_nvpair_attr: Match </xpath-query>
2010-01-12 00:19:47.879958 copper1-attrd: [4766]: WARN: find_nvpair_attr:
Multiple attributes match name=master-vmrd-res:0
2010-01-12 00:19:47.879968 copper1-attrd: [4766]: info: find_nvpair_attr:
Value: 10000 #011(id=status-copper1.dr.peach.com-master-vmrd-res:0)
2010-01-12 00:19:47.899603 copper1-attrd:last message repeated 2 times
2010-01-12 00:19:47.880025 copper1-attrd: [4766]: info:
attrd_perform_update: Sent update -40: master-vmrd-res:0=5
2010-01-12 00:19:47.880057 copper1-attrd: [4766]: ERROR: attrd_cib_callback:
Update -40 for master-vmrd-res:0=5 failed: Required data for this CIB API
call not found
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100112/5fdf9c49/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c1-cib.xml
Type: text/xml
Size: 22154 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100112/5fdf9c49/attachment-0006.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c1-log
Type: application/octet-stream
Size: 9552 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100112/5fdf9c49/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c2-cib.xml
Type: text/xml
Size: 22154 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100112/5fdf9c49/attachment-0007.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c2-log
Type: application/octet-stream
Size: 11308 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100112/5fdf9c49/attachment-0003.obj>


More information about the Pacemaker mailing list