pacemaker can't create 2-nd monitor for master resource

Bug #1270949 reported by Sergey Vasilenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Sergey Vasilenko

Bug Description

While we create master/slave resource, we should to create 2-nd monitor operation with role==Master for master resource.

cs_resource .....

operations => {
      'monitor' => {
        'interval' => '30',
        'timeout' => '10'
      },
      'monitor:Master' => {
        'role' => 'Master',
        'interval' => '13',
        'timeout' => '10'
      },
}

Current manifesests create one monitor operation instead two.

True cs_resource should create following primitive in Pacemaker CIB:

primitive test_masterslave ocf:mirantis:test_masterslave \
        op start interval="0" timeout="30" \
        op demote interval="0" timeout="30" \
        op monitor interval="30" timeout="10" \
        op monitor interval="13" role="Master" timeout="10" \
        op notify interval="0" timeout="30" \
        op stop interval="0" timeout="30" \
        op promote interval="0" timeout="30"

Changed in fuel:
importance: Undecided → Medium
milestone: none → 4.1
description: updated
Changed in fuel:
assignee: nobody → Sergey Vasilenko (xenolog)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/68375
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=173c5b051b2703c1e17ea278c596a52b6f72ef84
Submitter: Jenkins
Branch: master

commit 173c5b051b2703c1e17ea278c596a52b6f72ef84
Author: Sergey Vasilenko <email address hidden>
Date: Wed Jan 22 17:01:01 2014 +0400

    Allow cs_resource pass 'operations' with equal names and different roles.

    It need for master/slave resources, that contains set of 'monitor' resources.

    Change-Id: I31abbd355a82e1ffd1d10b642f239efc33784efe
    Closes-bug: #1270949

Changed in fuel:
status: In Progress → Fix Committed
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.