Bug 1411089 - need to add some generic function to get $ha_node_index
Summary: need to add some generic function to get $ha_node_index
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-opendaylight
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Tim Rozet
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-08 10:26 UTC by Alon Dotan
Modified: 2017-07-20 21:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-20 21:04:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alon Dotan 2017-01-08 10:26:19 UTC
Description of problem:
there is no automatic way to get the index of the controller from the director environment files, I added external bash script to it:

"#!/bin/bash
cnt=1
for ip in "$@" ; do
        ifconfig | grep -wq $ip && echo -n $cnt
        let cnt++
done"


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nir Yechiel 2017-07-20 08:38:23 UTC
@Tim, can you please review this bug? Is it still valid and worth fixing?

Thanks,
Nir

Comment 2 Tim Rozet 2017-07-20 21:04:01 UTC
HA is unsupported in newton, but has been added in master:
ha_node_index is determined in puppet via:
https://github.com/openstack/puppet-tripleo/blob/master/manifests/profile/base/neutron/opendaylight.pp#L47

However, with a recent change to puppet-opendaylight:
https://git.opendaylight.org/gerrit/#/c/60491/

The ha_node_index parameter is no longer needed and is deprecated.


Note You need to log in before you can comment on or make changes to this bug.