vrouter namespace has an incorrect colocation constraint with the ntp server on a haproxy node

Bug #1567646 reported by Pavel Basov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
STEW TY
Mitaka
Fix Released
High
Matthew Mosesohn

Bug Description

Detailed bug description:
vrouter namespace shows as stopped (and fails pacemaker OSTF test) because of the incorretly set colocation constraint with the p_ntp resource in this manifest:
https://github.com/openstack/fuel-library/blob/master/deployment/puppet/cluster/manifests/ntp_ocf.pp#L37-L42
'first' and 'second' parameters should be other way around, as in https://github.com/openstack/fuel-library/blob/master/deployment/puppet/cluster/manifests/dns_ocf.pp#L46-L51

Provider used: https://github.com/fuel-infra/puppet-pacemaker/blob/master/lib/puppet/provider/pcmk_colocation/xml.rb#L50-L59
Steps to reproduce:
Deploy cluster with a detached haproxy (via custom plugin) in 9.0 non-HA config (1 controller node), check p_vrouter status.
Expected results:
p_vrouter is Started, OSTF is passing

Tags: area-library
Erik Neeley (erikneeley)
Changed in fuel:
status: New → Confirmed
STEW TY (stewie925)
Changed in fuel:
assignee: nobody → STEW TY (stewie925)
Revision history for this message
STEW TY (stewie925) wrote :

Hello I checked the ntp_ocf.pp file and I see that the first and second parameters look "okay" - it matches the

https://github.com/openstack/fuel-library/blob/master/deployment/puppet/cluster/manifests/dns_ocf.pp#L46-L51

input appreciated.

Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
Pavel Basov (pbasov) wrote :

Are we looking in the same repo?

ntp_ocf:
  pcmk_colocation { 'ntp-with-vrouter-ns' :
    ensure => 'present',
    score => 'INFINITY',
    first => "clone_p_$service_name",
    second => "clone_p_vrouter",
  }

dns_ocf:
 pcmk_colocation { 'dns-with-vrouter-ns' :
    ensure => 'present',
    score => 'INFINITY',
    first => "clone_p_vrouter",
    second => "clone_${service_name}",
  }

Resulting config in cib:
      <rsc_colocation id="ntp-with-vrouter-ns" rsc="clone_p_vrouter" score="INFINITY" with-rsc="clone_p_ntp"/>
      <rsc_colocation id="dns-with-vrouter-ns" rsc="clone_p_dns" score="INFINITY" with-rsc="clone_p_vrouter"/>

dns_ocf is the correct one

Revision history for this message
STEW TY (stewie925) wrote :

thank you for the clarification. Working on the solution.

Changed in fuel:
status: Incomplete → Confirmed
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/303117

Changed in fuel:
status: Confirmed → In Progress
Changed in fuel:
milestone: none → 9.0
importance: Undecided → High
tags: added: area-library
Changed in fuel:
assignee: STEW TY (stewie925) → Alex Schultz (alex-schultz)
Changed in fuel:
assignee: Alex Schultz (alex-schultz) → STEW TY (stewie925)
Changed in fuel:
assignee: STEW TY (stewie925) → Alex Schultz (alex-schultz)
Changed in fuel:
assignee: Alex Schultz (alex-schultz) → STEW TY (stewie925)
Changed in fuel:
assignee: STEW TY (stewie925) → Alex Schultz (alex-schultz)
Changed in fuel:
assignee: Alex Schultz (alex-schultz) → STEW TY (stewie925)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/303117
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=b60f2a17facf99cf4701a0a7657ba992a9b0478d
Submitter: Jenkins
Branch: master

commit b60f2a17facf99cf4701a0a7657ba992a9b0478d
Author: stewie925 <email address hidden>
Date: Thu Apr 7 16:12:30 2016 -0700

    switch ntp server vrouter namespace colocation constraints

    * Changed the ntp_ocf.pp file and cluster_ntp_ocf_spec.rb files
    * to switch the 'first' and 'second' parameter values

    Change-Id: I8c88ac59d8679590db8061c87d19a87870f9432f
    Closes-Bug: #1567646

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/315629

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/mitaka)

Reviewed: https://review.openstack.org/315629
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=b20e4b55ef0c8f3dcaada910346780e1001c823f
Submitter: Jenkins
Branch: stable/mitaka

commit b20e4b55ef0c8f3dcaada910346780e1001c823f
Author: stewie925 <email address hidden>
Date: Thu Apr 7 16:12:30 2016 -0700

    switch ntp server vrouter namespace colocation constraints

    * Changed the ntp_ocf.pp file and cluster_ntp_ocf_spec.rb files
    * to switch the 'first' and 'second' parameter values

    Change-Id: I8c88ac59d8679590db8061c87d19a87870f9432f
    Closes-Bug: #1567646
    (cherry picked from commit b60f2a17facf99cf4701a0a7657ba992a9b0478d)

tags: added: on-verification
tags: removed: on-verification
Changed in fuel:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Verified on #465. Passed.

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.