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
mkdir /tmp/<hostname-timestamp>-collect/ | |
cd /tmp/<hostname-timestamp>-collect/ | |
tar cvfz api-zk.tgz /var/log/contrail/api-0-zk*.gz | |
tar cvfz contrail-api.tgz /var/log/contrail/contrail-api* | |
tar cvfz contrail-schema.tgz /var/log/contrail/contrail-schema* | |
tar cvfz schema.err.tgz /var/log/contrail/schema.err* | |
tar cvfz svc-monitor.tgz /var/log/contrail/*svc-mon* |
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
Title Contrail API Server interactions | |
participant rest-client as rest | |
participant pre-keystone as preks | |
participant keystone as ks | |
participant post-keystone as postks | |
participant rest-handler as rh | |
participant zookeeper as zk | |
participant cassandra as cass | |
participant rabbit-publisher as rabbpub |
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
#!/usr/bin/python | |
import logging | |
from pprint import pformat | |
import argparse | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('UTF8') | |
import lxml.etree as et |
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
[Cleanup-Steps] | |
0. Deleted all service-instances, VMs, networks. | |
1. service supervisor-webui stop on all contrail controllers | |
2. service supervisor-analytics stop on all contrail controllers | |
3. service supervisor-config stop on all contrail controllers | |
4. service supervisor-control stop on all contrail controllers | |
5. service supervisor-database stop on all contrail controllers | |
6. service zookeeper stop on all contrail controllers | |
7. mv /var/lib/cassandra /var/lib/cassandra.old | |
8. mv /var/lib/zookeeper/version-2 /var/lib/zookeeper/version-2.old |
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
on openstack-node: | |
echo "deb http://hajay-repo:8080/juno-R2.20-64-juno/ opencontrail-R2.20 main" > /etc/apt/sources.list.d/opencontrail.list; apt-get update | |
apt-get install contrail-openstack | |
apt-get install contrail-fabric-utils | |
cd /opt/contrail/utils/fabfile/testbeds/ | |
cp testbed_singlebox_example.py testbed.py | |
< EDIT testbed.py like below > | |
host1 = 'root@192.168.0.11' | |
host2 = 'root@192.168.0.28' | |
host3 = 'root@192.168.0.37' |
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
# save contents to ~/.screenrc | |
#apt-get install screen | |
#screen -S <session-name> | |
# will create new screen session with <session-name> | |
#`d | |
# to exit | |
#screen -x <session-name> | |
# to connect back with share mode | |
#`c | |
# to create new window |
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
# REPLACE localhost with DB-IP %s/localhost/<IP>/g | |
#assume obj_fq_name_table keys as utf8; | |
#assume obj_fq_name_table comparator as utf8; | |
#assume obj_fq_name_table validator as utf8; | |
#assume obj_uuid_table keys as utf8; | |
#assume obj_uuid_table comparator as utf8; | |
#assume obj_uuid_table validator as utf8; | |
LOG_FILE=repl-check.out.$(date +%Y%m%d-%H%M%S) |
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
cat << EOF | pycassaShell -H localhost -k config_db_uuid -f /dev/stdin > /tmp/cassandra-out-$(date +%Y%m%d-%H%M%S) | |
for r,c in OBJ_UUID_TABLE.get_range(column_count=10000000, include_timestamp=True): | |
print r,c | |
for r,c in OBJ_FQ_NAME_TABLE.get_range(column_count=10000000, include_timestamp=True): | |
print r,c | |
exit() | |
EOF |
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
#!/usr/bin/python | |
# | |
# Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. | |
# | |
"""Contrail Cluster Join Operations.""" | |
# Example: python join.py --zk_index 2 --new_node 1.1.1.5 --roles database | |
# python join.py --my_zk_index 2 --my_ip 1.1.1.5 | |
# --other_nodes_ip 1.1.1.4 --other_nodes_name c1 --other_nodes_zk_indexes 1 | |
# python join.py --my_zk_index 3 --my_ip 1.1.1.6 |
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
#!/bin/bash | |
# E.g. (OPENSTACK=juno CONTRAIL=R2.20 BUILD=102-juno bash -x all-in-one-openstack-trusty-mainline) | |
set -x | |
# Inputs from user with defaults | |
OPENSTACK=${OPENSTACK:-juno} | |
CONTRAIL=${CONTRAIL:-mainline} | |
BUILD=${BUILD} | |
VROUTER_INTF=${VROUTER_INTF:-eth0} |