Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 1 | SETUPDIR:=../setup |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 2 | MYIP:=$(shell hostname -i) |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 3 | |
Srikanth Vavilapalli | c2c824a | 2016-03-04 17:55:24 -0500 | [diff] [blame] | 4 | cloudlab: common_cloudlab cord acord |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 5 | |
| 6 | devstack: upgrade_pkgs common_devstack devstack_net_fix cord |
| 7 | |
Srikanth Vavilapalli | 8099a16 | 2016-03-08 01:50:33 -0500 | [diff] [blame] | 8 | cord: virtualbng_json vtn_network_cfg_json |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 9 | sudo MYIP=$(MYIP) docker-compose up -d |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 10 | bash ../common/wait_for_xos.sh |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 11 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/fixtures.yaml |
| 12 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/base.yaml |
| 13 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml |
| 14 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/cord/cord.yaml |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 15 | |
Andy Bavier | 5144cc0 | 2016-01-20 13:18:38 -0800 | [diff] [blame] | 16 | containers: |
| 17 | cd ../../../containers/xos; make devel |
| 18 | cd ../../../containers/synchronizer; make |
| 19 | |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 20 | common_cloudlab: |
| 21 | make -C ../common -f Makefile.cloudlab |
| 22 | |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 23 | common_devstack: |
| 24 | make -C ../common -f Makefile.devstack |
| 25 | |
Srikanth Vavilapalli | 8099a16 | 2016-03-08 01:50:33 -0500 | [diff] [blame] | 26 | acord: cloudlab_ceilometer_custom_images ceilometer_cloudlab_cord_plugins |
Srikanth Vavilapalli | c2c824a | 2016-03-04 17:55:24 -0500 | [diff] [blame] | 27 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/cord/ceilometer.yaml |
| 28 | |
Srikanth Vavilapalli | 8099a16 | 2016-03-08 01:50:33 -0500 | [diff] [blame] | 29 | ceilometer_cloudlab_cord_plugins: |
| 30 | if [ -d ./ceilometer-plugins ]; then rm -fr ./ceilometer-plugins; fi |
| 31 | git clone https://github.com/srikanthvavila/ceilometer-plugins.git |
| 32 | sudo cp -r ceilometer-plugins/network/ext_services /usr/lib/python2.7/dist-packages/ceilometer/network/ |
| 33 | sudo cp -r ceilometer-plugins/network/statistics/onos /usr/lib/python2.7/dist-packages/ceilometer/network/statistics/ |
| 34 | sudo cp ceilometer-plugins/network/statistics/__init__.py /usr/lib/python2.7/dist-packages/ceilometer/network/statistics/ |
| 35 | sudo cp ceilometer-plugins/entry_points.txt /usr/lib/python2.7/dist-packages/ceilometer-*egg-info/ |
| 36 | sudo cp ceilometer-plugins/pipeline.yaml /etc/ceilometer/ |
| 37 | echo "Restarting ceilometer-agent-notification" |
| 38 | sudo service ceilometer-agent-notification restart |
| 39 | echo "Restarting ceilometer-agent-central" |
| 40 | sudo service ceilometer-agent-central restart |
| 41 | |
| 42 | ceilometer_pub_sub: |
| 43 | if [ -d ./pub-sub ]; then rm -fr ./pub-sub; fi |
| 44 | git clone https://github.com/srikanthvavila/pub-sub.git |
| 45 | echo "Starting Ceilometer PUB/SUB service...Ensure zookeeper and kafka services are launched (if required)" |
| 46 | cd pub-sub/ceilometer_pub_sub/ ; python sub_main.py & |
| 47 | cd ../.. |
Srikanth Vavilapalli | 36158e8 | 2015-10-28 23:52:29 -0400 | [diff] [blame] | 48 | |
Scott Baker | 1b426a1 | 2015-12-02 20:00:20 -0800 | [diff] [blame] | 49 | virtualbng_json: |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 50 | export SETUPDIR=$(SETUPDIR); bash make-virtualbng-json.sh |
Scott Baker | 1b426a1 | 2015-12-02 20:00:20 -0800 | [diff] [blame] | 51 | |
Scott Baker | 41fc11a | 2015-12-15 21:45:29 -0800 | [diff] [blame] | 52 | vtn_network_cfg_json: |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 53 | export SETUPDIR=$(SETUPDIR); bash make-vtn-networkconfig-json.sh |
Scott Baker | 41fc11a | 2015-12-15 21:45:29 -0800 | [diff] [blame] | 54 | |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 55 | stop: |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 56 | sudo MYIP=$(MYIP) docker-compose stop |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 57 | |
Andy Bavier | 0ef6aad | 2016-01-06 16:46:40 -0500 | [diff] [blame] | 58 | rm: |
| 59 | sudo MYIP=$(MYIP) docker-compose rm |
| 60 | |
Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 61 | showlogs: |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 62 | sudo MYIP=$(MYIP) docker-compose logs |
Andy Bavier | de1707d | 2015-12-16 14:10:01 -0500 | [diff] [blame] | 63 | |
Andy Bavier | 0ef6aad | 2016-01-06 16:46:40 -0500 | [diff] [blame] | 64 | ps: |
| 65 | sudo MYIP=$(MYIP) docker-compose ps |
| 66 | |
Andy Bavier | de1707d | 2015-12-16 14:10:01 -0500 | [diff] [blame] | 67 | dataplane: etc_hosts |
| 68 | cd dataplane; ./gen-inventory.sh > hosts |
| 69 | cd dataplane; ansible-playbook -i hosts dataplane.yaml |
| 70 | |
| 71 | dataplane_bm: dataplane |
| 72 | cd dataplane; bash -c "./generate-bm.sh > hosts-bm" |
| 73 | cd dataplane; sudo bash -c "ansible-playbook -i hosts-bm dataplane-bm.yaml" |
| 74 | |
| 75 | etc_hosts: |
| 76 | sudo bash -c "sed -i '/^10.11.10/ d' /etc/hosts" |
| 77 | cd dataplane; sudo bash -c "./gen-etc-hosts.sh >> /etc/hosts" |
| 78 | |
| 79 | setup_client: |
| 80 | # add subscriber to vOLT? Is there a REST API? |
| 81 | echo "Don't forget: add-subscriber-access of:0000000000000001 1 432" |
| 82 | cd dataplane; ansible -i hosts client -m shell -s -a "route del default gw 10.11.10.5; dhclient br-sub" |
| 83 | # reboot the vBNG ONOS |
| 84 | cd dataplane; ansible -i hosts onos_vbng -m shell -s -a "docker restart ONOS" |
| 85 | |
Andy Bavier | 0ef6aad | 2016-01-06 16:46:40 -0500 | [diff] [blame] | 86 | cleanup: stop rm |
Andy Bavier | de1707d | 2015-12-16 14:10:01 -0500 | [diff] [blame] | 87 | cd dataplane; ./cleanup.sh |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 88 | bash -c "source ../setup/admin-openrc.sh; nova list --all-tenants; neutron net-list" |
Andy Bavier | 0ef6aad | 2016-01-06 16:46:40 -0500 | [diff] [blame] | 89 | echo "Don't forget to clean up vCPE containers" |
Andy Bavier | 4490ee9 | 2016-01-05 16:17:14 -0500 | [diff] [blame] | 90 | |
| 91 | devstack_net_fix: |
| 92 | sudo ../common/devstack/net-fix.sh |
| 93 | sudo bash -c "source ../setup/admin-openrc.sh; neutron subnet-update private-subnet --dns-nameservers list=true 8.8.8.8 8.8.4.4" |
| 94 | |
| 95 | upgrade_pkgs: |
| 96 | sudo pip install httpie --upgrade |
Srikanth Vavilapalli | c2c824a | 2016-03-04 17:55:24 -0500 | [diff] [blame] | 97 | |
| 98 | cloudlab_ceilometer_custom_images: |
Srikanth Vavilapalli | 092d719 | 2016-03-22 19:43:30 -0600 | [diff] [blame] | 99 | bash -c "source ../setup/admin-openrc.sh; glance image-show ceilometer-trusty-server-multi-nic || if test -f /proj/xos-PG0/images/ceilometer-trusty-server-multi-nic.compressed.qcow2 ; then glance image-create --name ceilometer-trusty-server-multi-nic --disk-format qcow2 --file /proj/xos-PG0/images/ceilometer-trusty-server-multi-nic.compressed.qcow2 --container-format bare ; else mkdir -p /tmp/images && wget http://www.vicci.org/cord/ceilometer-trusty-server-multi-nic.compressed.qcow2 -P /tmp/images && glance image-create --name ceilometer-trusty-server-multi-nic --disk-format qcow2 --file /tmp/images/ceilometer-trusty-server-multi-nic.compressed.qcow2 --container-format bare ; fi " |