Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4648977 (HEAD, merge_5) Server Manager: provision complete status is lost when compute role is present Closes-Bug: #1424870 2f9356b Server Manager: provision complete status is lost when compute role is present Closes-Bug: #1424870 74c49e8 Server Manager: external_vip Partial-Bug: #1423179 b23de15 Partial-Bug: #1413364 Server Manager HA, configuration for mysql, nova , haproxy were different from fab provisioning b28a286 Closes-Bug: #1413364 7f67138 Partial-Bug: #1413364 6ce4a85 Partial-Bug: #1413364 681e420 Closes-Bug: #1416585 Fixing multi interface related code changes for 1415585. c7e800c Closes-Bug: #1413364 Server Manager HA, configuration for mysql, nova , haproxy were different from fab provisioning c3278ea Closes-Bug: #1417411 Server Manager: Remove keystone-auth.conf for config server, untill multi-tenancy is enabled 5b179d3 Closes-Bug: #1413365 server manager HA , rabbitmq clustering should happen on control interface 0d3522f Partial-Bug: #1416585 Changes to clean up parameter list passed to puppet modules and document." into R2.1 847e258 Closes-Bug: #1416354 Provisioning External router is not happening through server-manager d4a9b95 Closes-Bug: #1412757 Not able to login to WebUI c191800 Partial-Bug: #1397496 Server Manager changes to make use of new structure puppet modules for contrail and openstack (from puppet-labs)." into R2.1" 8bc7246 Closes-Bug: #1415787 Nova is not able to connect to AMQP server 5290115 Partial-Bug: #1397496 Server Manager changes to make use of new structure puppet modules for contrail and openstack (from puppet-labs)." into R2.1 ae53bf4 Closes-bug: #1413361 server manager HA , supervisor is not starting contrail-api service when it is down. 60d20eb Partial: #1413364 server manager HA , configuration for mysql ,nova , haproxy were different from fab provisioning. 7478e72 Partial-Bug: #1397496 Server Manager changes to make use of new structure puppet modules for contrail and openstack (from puppet-labs)." into R2.1 95f4b05 Partial-Bug: #1397496 Server Manager changes to make use of new structure puppet modules for contrail and openstack (from puppet-labs)." into R2.1 700dd4c Partial-Bug: #1397496 Server Manager changes to make use of new structure puppet modules for contrail and openstack (from puppet-labs)." into R2.1 292b0ba Partial-Bug: #1397496 Server Manager changes to make use of new structure puppet modules for contrail and openstack (from puppet-labs)." into R2.1 b797518 Partial-Bug: #1397496 Server Manager changes to make use of new structure puppet modules for contrail and openstack (from puppet-labs). Change-Id: If3f4512e9fb2aa4cc7ad99239d4011ee9838db6d
- Loading branch information
1 parent
1f5b951
commit 2e3b091
Showing
52 changed files
with
1,644 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
contrail/environment/modules/contrail/files/add_etc_host.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/python | ||
# | ||
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. | ||
# | ||
import sys | ||
import argparse | ||
import ConfigParser | ||
import commands | ||
import itertools | ||
import paramiko | ||
import sys, getopt, string | ||
import os, stat | ||
from stat import S_ISDIR | ||
|
||
def main(args_str=None): | ||
config_ip_list_str = sys.argv[1] | ||
config_name_list_str = sys.argv[2] | ||
|
||
config_ip_list = config_ip_list_str.split(",") | ||
config_name_list = config_name_list_str.split(",") | ||
|
||
for config_name, config_ip in zip(config_name_list, config_ip_list): | ||
status, output = commands.getstatusoutput("echo '%s %sctl' >> /etc/hosts" %(config_ip, config_name)) | ||
|
||
if __name__ == "__main__": | ||
main(sys.argv[1:]) | ||
|
35 changes: 35 additions & 0 deletions
35
contrail/environment/modules/contrail/files/add_reserved_ports.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. | ||
# | ||
import commands | ||
import sys | ||
|
||
|
||
|
||
def main(args_str=None): | ||
|
||
ports_str = sys.argv[1] | ||
|
||
status, output = commands.getstatusoutput("cat /proc/sys/net/ipv4/ip_local_reserved_ports") | ||
if status != 0: | ||
sys.exit(-1) | ||
else: | ||
existing_ports = output | ||
|
||
status, output = commands.getstatusoutput("sysctl -w net.ipv4.ip_local_reserved_ports=%s,%s" % (ports_str, existing_ports)) | ||
|
||
if status != 0: | ||
sys.exit(-1) | ||
|
||
status, output = commands.getstatusoutput("grep '^net.ipv4.ip_local_reserved_ports' /etc/sysctl.conf > /dev/null 2>&1") | ||
|
||
|
||
if status != 0: | ||
status, output = commands.getstatusoutput('echo "net.ipv4.ip_local_reserved_ports = %s" >> /etc/sysctl.conf' % ports_str) | ||
else: | ||
status, output = commands.getstatusoutput("sed -i 's/net.ipv4.ip_local_reserved_ports\s*=\s*/net.ipv4.ip_local_reserved_ports=%s,/' /etc/sysctl.conf" % ports_str) | ||
|
||
if status != 0: | ||
sys.exit(-1) | ||
|
||
if __name__ == "__main__": | ||
main(sys.argv[1:]) |
23 changes: 23 additions & 0 deletions
23
contrail/environment/modules/contrail/files/check-mysql-status.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import commands | ||
import sys | ||
import os.path | ||
|
||
def main(args_str=None): | ||
|
||
status,output = commands.getstatusoutput("cat /etc/contrail/mysql.token") | ||
mysql_token = output | ||
status,output = commands.getstatusoutput('service mysql status') | ||
|
||
# if status != 0: | ||
# sys.exit(0) | ||
|
||
# If we are not able to connect to mysql,its probably stucik , kill it! | ||
status,output = commands.getstatusoutput('mysql -uroot -p%s -e "show status like \'wsrep_cluster_size\'"' % mysql_token ) | ||
print "wsrep_cluster_size: %s" % output | ||
#if output.find("4") == -1: | ||
if status != 0: | ||
status,output = commands.getstatusoutput('pkill -9 mysql') | ||
|
||
if __name__ == "__main__": | ||
main(sys.argv[1:]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
Defaults:contrail !requiretty | ||
|
||
Cmnd_Alias CONFIGRESTART = /usr/sbin/service supervisor-config restart | ||
|
||
contrail ALL = (root) NOPASSWD:CONFIGRESTART | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.