Test for pacemaker resources when disk is full

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

Bug Description

We made a change to Fuel with https://review.openstack.org/#/c/226062/

Since then pacemaker will stop resources when disk is almost full. However, it would be nice to write automation tests for such cases.

Test:
1. Check that all resources are running
2. Fill in space on partition
3. Check that all resources should be stopped
4. Make more than 10% space on that partition, and run command to clear the health issue:
   crm node status-attr <hostname> delete "#health_disk"
5. Make sure that all resources are started on this controller

Changed in fuel:
assignee: nobody → Fuel QA Team (fuel-qa)
milestone: none → 8.0
Changed in fuel:
importance: Undecided → High
status: New → Confirmed
description: updated
tags: added: non-release system-tests
tags: added: feature-qa
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Artem Grechanichenko (agrechanichenko)
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related 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

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/238229

Dmitry Pyzhov (dpyzhov)
tags: added: area-qa
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-qa (master)

Change abandoned by Artem Grechanichenko (<email address hidden>) on branch: master
Review: https://review.openstack.org/238229

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/243618

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

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

commit a88049c1820eb66f6952db5a57718ffc4b7df7ff
Author: Artem Grechanichenko <email address hidden>
Date: Tue Nov 10 16:15:32 2015 +0200

     Test for pacemaker resources when disk is full

     Adding test case for covering filling root situation on primary controller.
     Add health_check_all, health_check_ha to ostf_base_actions.py.
     Move health_check to ostf_base_actions.py

     Closes-Bug: #1500446

    Change-Id: I17055527e99c72b790544e7baef997eab20258e0

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

executed regularly on CI

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: feature-qa non-release
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.