[HA fencing plugin] crm_resource provider cannot commit due to other config errors detected

Bug #1515919 reported by Bogdan Dobrelya
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Committed
Medium
Bogdan Dobrelya

Bug Description

On the way to make the plugin to support Fuel 6.1-8.0, after I switched to the fuel-pacemaker puppet module v7.0, the cs_resource provider cannot commit fence primitives as it detects side configuration errors. The errors seem not related to the plugin and cannot be fixed there, but in fuel itself. Fuel should either use --force commit in the cs_resource provider or fix the configuration errors for reported resources

# /usr/sbin/crm configure load update /tmp/puppet_crm_update20151113-5637-115fio5
WARNING: 1: ra class stonith does not support providers
WARNING: ra class stonith does not support providers
Entity: line 202: element primitive: Relax-NG validity error : Invalid attribute provider for element primitive
Entity: line 20: element primitive: Relax-NG validity error : Element resources has extra content: primitive
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_neutron-l3-agent"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_mysql"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_ntp"
element rsc_colocation: validity error : IDREF attribute rsc references an unknown ID "clone_p_ntp"
element rsc_colocation: validity error : IDREF attribute rsc references an unknown ID "clone_p_ntp"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_heat-engine"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_neutron-metadata-agent"
element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "clone_p_haproxy"
element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "clone_p_haproxy"
element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "clone_p_haproxy"
element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "clone_p_haproxy"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_haproxy"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_ping_vip__public"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_neutron-dhcp-agent"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_vrouter"
element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "clone_p_vrouter"
element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "clone_p_vrouter"
element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "clone_p_vrouter"
element rsc_colocation: validity error : IDREF attribute with-rsc references an unknown ID "clone_p_vrouter"
element rsc_location: validity error : IDREF attribute rsc references an unknown ID "clone_p_neutron-plugin-openvswitch-agent"
   error: main: CIB did not pass DTD/schema validation
Errors found during check: config not valid
Do you still want to commit (y/n)?

# cat /tmp/puppet_crm_update20151113-5637-115fio5
primitive stonith__virsh_reset__node-3 stonith:pacemaker:fence_virsh op monitor interval='3600s' timeout='120s' op start interval='0' timeout='120s' on-fail='restart' op stop interval='0' timeout='1800s' on-fail='restart' params ipaddr='10.109.1.1' login='fence' passwd='0ff3nc3' power_wait='15' power_timeout='20' shell_timeout='10' login_timeout='5' secure='true' delay='10' action='reboot' pcmk_reboot_action='reboot' pcmk_off_action='reboot' pcmk_host_map='node-3:env60_slave-01' meta migration-threshold='5' failure-timeout='180'

Tags: area-plugins
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

This is a blocker for the plugin, but not for the Fuel. So, I set the medium priority

Changed in fuel:
importance: Undecided → Medium
Changed in fuel-plugins:
assignee: nobody → Bogdan Dobrelya (bogdando)
Changed in fuel:
milestone: none → 8.0
description: updated
tags: added: area-plugins
Artem Roma (aroma-x)
Changed in fuel:
assignee: nobody → Fuel Plugins Bugs (fuel-plugins-bugs)
status: New → Confirmed
Changed in fuel-plugins:
status: New → Confirmed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

As I figured out, the RC is what "ra class stonith does not support providers", and if I removed the "provider=pacemaker", resource would be created w/o problems

Changed in fuel:
status: Confirmed → Triaged
assignee: Fuel Plugins Bugs (fuel-plugins-bugs) → Bogdan Dobrelya (bogdando)
Changed in fuel:
status: Triaged → Fix Committed
Changed in fuel-plugins:
status: Confirmed → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugin-ha-fencing (master)

Reviewed: https://review.openstack.org/245092
Committed: https://git.openstack.org/cgit/openstack/fuel-plugin-ha-fencing/commit/?id=1dffa5e7582f9923e28d168c1cd63357a0ae3b0c
Submitter: Jenkins
Branch: master

commit 1dffa5e7582f9923e28d168c1cd63357a0ae3b0c
Author: Bogdan Dobrelya <email address hidden>
Date: Fri Nov 13 12:15:42 2015 +0100

    Do not configure provider for stonith ra

    Closes-bug: #1515919

    Change-Id: Ife8cecd13a4232db0df621c73963605a6b217213
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in fuel-plugins:
importance: Undecided → Medium
milestone: none → 8.0
no longer affects: fuel
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.