Last active
November 18, 2016 09:57
-
-
Save ajayhn/a76ba914859609524057 to your computer and use it in GitHub Desktop.
Contrail DB wipe.
This file contains hidden or 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 | |
9. Follow steps in Bug-Fix-Steps | |
10. service zookeeper start on all contrail controllers | |
11. service supervisor-database start on all contrail controllers | |
12. service supervisor-config start on all contrail controllers | |
13. Verify gc_grace_seconds is correct using below (replace database-ip): | |
cat << EOF | cassandra-cli -h <database-ip> | sed -n -e '/config_db_uuid/,/Keyspace:/p' -e '/svc_monitor_keyspace/,/Keyspace:/p' -e '/to_bgp_keyspace/,/Keyspace:/p' | grep -B4 'GC grace seconds' | |
show keyspaces; | |
EOF | |
14. service supervisor-analytics start | |
15. service supervisor-webui start | |
15. service supervisor-control start | |
16.. Using UI (Config Page) edit Global ASN, Add MX and control-node BGP routers, Add Virtual Routers | |
[Bug-Fix-Steps] | |
On all controllers | |
1. sed -i 's/gc_grace_sec = 60/gc_grace_sec = 864000/g' /usr/lib/python2.7/dist-packages/cfgm_common/vnc_cassandra.py | |
2. sed -i 's/gc_grace_sec = 60/gc_grace_sec = 864000/g' /usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.py | |
3. sed -i 's/gc_grace_sec = 60/gc_grace_sec = 864000/g' /usr/lib/python2.7/dist-packages/svc_monitor/db.py | |
4. rm /usr/lib/python2.7/dist-packages/cfgm_common/vnc_cassandra.pyc /usr/lib/python2.7/dist-packages/schema_transformer/to_bgp.pyc /usr/lib/python2.7/dist-packages/svc_monitor/db.pyc | |
5. service supervisor-config restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment