Need to parse crm_mon node attributes and pcm status for checking #health_disk and number of running resources

Bug #1507721 reported by Artem Hrechanychenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Artem Hrechanychenko

Bug Description

Some time need to retrieve crm node attributes to check status of some attributes and count of running resources in pcs status

Example

Node Attributes:
* Node node-3.test.domain.local:
    + #health_disk : red
    + arch : x86_64
    + cpu_cores : 2
    + cpu_info : Intel Xeon E312xx (Sandy Bridge)
    + cpu_load : 1.54,
    + cpu_speed : 4199.99
    + free_swap : 2100
    + gtid : 811ca805-741e-11e5-9c15-123a35cdc64d:351668
    + master-p_conntrackd : 100
    + master-p_rabbitmq-server : 0
    + os : Linux-3.13.0-65-generic
    + rabbit_get_alarms_timeouts : 0
    + rabbit_list_channels_timeouts : 0
    + rabbit_list_queues_timeouts : 0
    + ram_free : 950
    + ram_total : 3000
    + root_free : 0
    + var_lib_glance_free : 102400
    + var_lib_mysql_free : 19456
    + var_log_free : 7782

Clone Set: clone_p_haproxy [p_haproxy]
     Started: [ node-2.test.domain.local node-3.test.domain.local ]
     Stopped: [ node-1.test.domain.local ]
 Master/Slave Set: master_p_conntrackd [p_conntrackd]
     Masters: [ node-3.test.domain.local ]
     Slaves: [ node-2.test.domain.local ]
     Stopped: [ node-1.test.domain.local ]
 Clone Set: clone_sysinfo [sysinfo]
     Started: [ node-2.test.domain.local node-3.test.domain.local ]
     Stopped: [ node-1.test.domain.local ]
 Clone Set: clone_p_mysql [p_mysql]
     Started: [ node-2.test.domain.local node-3.test.domain.local ]
     Stopped: [ node-1.test.domain.local ]

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

Fix proposed to branch: master
Review: https://review.openstack.org/237130

Changed in fuel:
status: New → In Progress
summary: - Need to parse crm_mon node attributes for checking #health_disk
+ Need to parse crm_mon node attributes and pcm resource for checking
+ #health_disk
description: updated
summary: - Need to parse crm_mon node attributes and pcm resource for checking
- #health_disk
+ Need to parse crm_mon node attributes and pcm status for checking
+ #health_disk and number of running resources
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/237130
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=87abc7b6a2e0a4167cb838b1c385a7a949f38150
Submitter: Jenkins
Branch: master

commit 87abc7b6a2e0a4167cb838b1c385a7a949f38150
Author: Artem Grechanichenko <email address hidden>
Date: Mon Oct 19 21:28:38 2015 +0300

    Getting pacemaker node attribures and node status as dict.

    def get_pacemaker_nodes_attributes(cibadmin_status_xml)
    Adding possibility to parse 'cibadmin --query --scope status'.
    Function return nested dictionary with node-fqdn and attribute name as keys.

    def get_pcs_nodes(pcs_status_xml)
    Adding possibility to parse 'pcs status xml'.
    and return nested dictionary with node-fqdn and attribute name as keys.
    They will be used in test for pacemaker resources when disk is full

    Change-Id: Ieabef9eca1eff79ac504ae6df1e1a1409ed276ff
    Closes-Bug: #1507721
    Related-Bug: #1500446

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-qa
Changed in fuel:
status: Fix Committed → 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.