blob: cfa04f89dfdae3eb461e6946b7502fb1e98b5a52 [file] [log] [blame]
Srikanth Vavilapalli9b1366e2016-02-15 01:23:41 -05001SETUPDIR:=../setup
2MYIP:=$(shell hostname -i)
3
Srikanth Vavilapalli774eaa82016-03-08 01:50:33 -05004cloudlab: common_cloudlab cloudlab_ceilometer_custom_images ceilometer_cloudlab_cord_plugins acord
Srikanth Vavilapalli9b1366e2016-02-15 01:23:41 -05005
Srikanth Vavilapalli774eaa82016-03-08 01:50:33 -05006devstack: upgrade_pkgs common_devstack devstack_net_fix devstack_images ceilometer_devstack_cord_plugins acord
Srikanth Vavilapalli9b1366e2016-02-15 01:23:41 -05007
Srikanth Vavilapalli774eaa82016-03-08 01:50:33 -05008cord:
Srikanth Vavilapalli9b1366e2016-02-15 01:23:41 -05009 sudo MYIP=$(MYIP) docker-compose up -d
10 bash ../common/wait_for_xos.sh
Scott Baker8e963e12016-04-25 20:20:59 -070011 sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/fixtures.yaml
Scott Baker52673912016-04-26 16:32:57 -070012 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 Vavilapalli9b1366e2016-02-15 01:23:41 -050014 sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /root/setup/nodes.yaml
Srikanth Vavilapalli3a68f562016-03-03 13:36:16 -050015
16acord: cord
Srikanth Vavilapalli9b1366e2016-02-15 01:23:41 -050017 sudo MYIP=$(MYIP) docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/acord/ceilometer.yaml
18
19containers:
20 cd ../../../containers/xos; make devel
21 cd ../../../containers/synchronizer; make
22
23common_cloudlab:
24 make -C ../common -f Makefile.cloudlab
25
26common_devstack:
27 make -C ../common -f Makefile.devstack
28
Srikanth Vavilapalli774eaa82016-03-08 01:50:33 -050029ceilometer_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
42ceilometer_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
50ceilometer_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 Vavilapalli9b1366e2016-02-15 01:23:41 -050056
57stop:
58 sudo MYIP=$(MYIP) docker-compose stop
59
60rm: stop
61 sudo MYIP=$(MYIP) docker-compose rm
62
63showlogs:
64 sudo MYIP=$(MYIP) docker-compose logs
65
66ps:
67 sudo MYIP=$(MYIP) docker-compose ps
68
69cleanup: stop rm
Srikanth Vavilapalli78a88892016-02-27 14:19:11 -050070 ./cleanup.sh
Srikanth Vavilapalli9b1366e2016-02-15 01:23:41 -050071 bash -c "source ../setup/admin-openrc.sh; nova list --all-tenants; neutron net-list"
72
73devstack_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
77upgrade_pkgs:
78 sudo pip install httpie --upgrade
79
80rebuild_xos:
81 make -C ../../../containers/xos devel
82
83rebuild_synchronizer:
84 make -C ../../../containers/synchronizer
Srikanth Vavilapalli3a68f562016-03-03 13:36:16 -050085
86devstack_images:
Srikanth Vavilapalli4516ca12016-03-22 19:43:30 -060087 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 Vavilapalli5892cdd2016-03-04 23:03:28 -050088
89cloudlab_ceilometer_custom_images:
Srikanth Vavilapalli4516ca12016-03-22 19:43:30 -060090 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 "