Srikanth Vavilapalli | 9b1366e | 2016-02-15 01:23:41 -0500 | [diff] [blame] | 1 | SETUPDIR:=../setup |
| 2 | MYIP:=$(shell hostname -i) |
| 3 | |
Srikanth Vavilapalli | 774eaa8 | 2016-03-08 01:50:33 -0500 | [diff] [blame] | 4 | cloudlab: common_cloudlab cloudlab_ceilometer_custom_images ceilometer_cloudlab_cord_plugins acord |
Srikanth Vavilapalli | 9b1366e | 2016-02-15 01:23:41 -0500 | [diff] [blame] | 5 | |
Srikanth Vavilapalli | 774eaa8 | 2016-03-08 01:50:33 -0500 | [diff] [blame] | 6 | devstack: upgrade_pkgs common_devstack devstack_net_fix devstack_images ceilometer_devstack_cord_plugins acord |
Srikanth Vavilapalli | 9b1366e | 2016-02-15 01:23:41 -0500 | [diff] [blame] | 7 | |
Srikanth Vavilapalli | 774eaa8 | 2016-03-08 01:50:33 -0500 | [diff] [blame] | 8 | cord: |
Srikanth Vavilapalli | 9b1366e | 2016-02-15 01:23:41 -0500 | [diff] [blame] | 9 | sudo MYIP=$(MYIP) docker-compose up -d |
| 10 | bash ../common/wait_for_xos.sh |
Scott Baker | 8e963e1 | 2016-04-25 20:20:59 -0700 | [diff] [blame] | 11 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/fixtures.yaml |
Scott Baker | 5267391 | 2016-04-26 16:32:57 -0700 | [diff] [blame] | 12 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/mydeployment.yaml |
| 13 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/cloudlab-openstack.yaml |
Srikanth Vavilapalli | 9b1366e | 2016-02-15 01:23:41 -0500 | [diff] [blame] | 14 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml |
Srikanth Vavilapalli | 3a68f56 | 2016-03-03 13:36:16 -0500 | [diff] [blame] | 15 | |
| 16 | acord: cord |
Srikanth Vavilapalli | 9b1366e | 2016-02-15 01:23:41 -0500 | [diff] [blame] | 17 | sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/acord/ceilometer.yaml |
| 18 | |
| 19 | containers: |
| 20 | cd ../../../containers/xos; make devel |
| 21 | cd ../../../containers/synchronizer; make |
| 22 | |
| 23 | common_cloudlab: |
| 24 | make -C ../common -f Makefile.cloudlab |
| 25 | |
| 26 | common_devstack: |
| 27 | make -C ../common -f Makefile.devstack |
| 28 | |
Srikanth Vavilapalli | 774eaa8 | 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_devstack_cord_plugins: |
| 43 | if [ -d ./ceilometer-plugins ]; then rm -fr ./ceilometer-plugins; fi |
| 44 | git clone https://github.com/srikanthvavila/ceilometer-plugins.git |
| 45 | sudo cp -r ceilometer-plugins/network/ext_services /opt/stack/ceilometer/ceilometer/network/ |
| 46 | sudo cp ceilometer-plugins/entry_points.txt /opt/stack/ceilometer/ceilometer*egg-info/ |
| 47 | sudo cp ceilometer-plugins/pipeline.yaml /etc/ceilometer/ |
| 48 | echo "Remember to restart ceilometer-anotification ceilometer-acentral screens" |
| 49 | |
| 50 | ceilometer_pub_sub: |
| 51 | if [ -d ./pub-sub ]; then rm -fr ./pub-sub; fi |
| 52 | git clone https://github.com/srikanthvavila/pub-sub.git |
| 53 | echo "Starting Ceilometer PUB/SUB service...Ensure zookeeper and kafka services are launched (if required)" |
| 54 | cd pub-sub/ceilometer_pub_sub/ ; python sub_main.py & |
| 55 | cd ../.. |
Srikanth Vavilapalli | 9b1366e | 2016-02-15 01:23:41 -0500 | [diff] [blame] | 56 | |
| 57 | stop: |
| 58 | sudo MYIP=$(MYIP) docker-compose stop |
| 59 | |
| 60 | rm: stop |
| 61 | sudo MYIP=$(MYIP) docker-compose rm |
| 62 | |
| 63 | showlogs: |
| 64 | sudo MYIP=$(MYIP) docker-compose logs |
| 65 | |
| 66 | ps: |
| 67 | sudo MYIP=$(MYIP) docker-compose ps |
| 68 | |
| 69 | cleanup: stop rm |
Srikanth Vavilapalli | 78a8889 | 2016-02-27 14:19:11 -0500 | [diff] [blame] | 70 | ./cleanup.sh |
Srikanth Vavilapalli | 9b1366e | 2016-02-15 01:23:41 -0500 | [diff] [blame] | 71 | bash -c "source ../setup/admin-openrc.sh; nova list --all-tenants; neutron net-list" |
| 72 | |
| 73 | devstack_net_fix: |
| 74 | sudo ../common/devstack/net-fix.sh |
| 75 | 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" |
| 76 | |
| 77 | upgrade_pkgs: |
| 78 | sudo pip install httpie --upgrade |
| 79 | |
| 80 | rebuild_xos: |
| 81 | make -C ../../../containers/xos devel |
| 82 | |
| 83 | rebuild_synchronizer: |
| 84 | make -C ../../../containers/synchronizer |
Srikanth Vavilapalli | 3a68f56 | 2016-03-03 13:36:16 -0500 | [diff] [blame] | 85 | |
| 86 | devstack_images: |
Srikanth Vavilapalli | 4516ca1 | 2016-03-22 19:43:30 -0600 | [diff] [blame] | 87 | bash -c "source ../setup/admin-openrc.sh; glance image-show ceilometer-trusty-server-multi-nic || ! mkdir -p /opt/stack/images || ! wget http://www.vicci.org/cord/ceilometer-trusty-server-multi-nic.compressed.qcow2 -P /opt/stack/images || glance image-create --name ceilometer-trusty-server-multi-nic --disk-format qcow2 --file /opt/stack/images/ceilometer-trusty-server-multi-nic.compressed.qcow2 --container-format bare" |
Srikanth Vavilapalli | 5892cdd | 2016-03-04 23:03:28 -0500 | [diff] [blame] | 88 | |
| 89 | cloudlab_ceilometer_custom_images: |
Srikanth Vavilapalli | 4516ca1 | 2016-03-22 19:43:30 -0600 | [diff] [blame] | 90 | 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 " |