[INTDIST-60] Provide cluster configuration script not needing index Created: 19/Aug/16  Updated: 20/Oct/17  Resolved: 19/Aug/16

Status: Resolved
Project: integration-distribution
Component/s: Scripts
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Vratko Polak Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6481
Priority: High

 Description   

For both testers and regular users, deployment of ODL cluster is an essential step. Documentation exists, but every help with automation helps.

Integration distribution already provides configure_cluster.sh script, but this script needs to be run on every member with corresponding index as argument (and the full list of member IP addresses).
There are multiple automation frameworks (for example ansible) which can help with the task of running scripts on multiple nodes, but the need of the index argument makes this harder to achieve.

But it is possible for bash script to detect local IP addresses, so the index can be determined by comparing to member IP addresses. This would allow users to configure cluster by running exactly the same command on each member.

As configure_cluster.sh is already used by some automation frameworks (for example in releng/builder scripts used for ODL CSIT), its API should not be changed. But a separate script can be added to bin/ directory to support this index-less configuration.

As testing usually uses the same automation to test multiple ODL versions, such additional script should be back-ported down to Beryllium.



 Comments   
Comment by Vratko Polak [ 19/Aug/16 ]

configure-cluster-ipdetect.sh is merged now.

Carbon: https://git.opendaylight.org/gerrit/42930
Boron: https://git.opendaylight.org/gerrit/44343
Beryllium: https://git.opendaylight.org/gerrit/44344

Generated at Wed Feb 07 20:02:40 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.