Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 1 | # opencloud/Makefile |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 2 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 3 | CONFIG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) |
| 4 | COMMON_DIR := $(abspath ../common ) |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 5 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 6 | .DEFAULT_GOAL := xos |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 7 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 8 | DOCKER_PROJECT ?= mcord |
| 9 | BOOTSTRAP_PROJECT ?= mcordbs |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 10 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 11 | xos: prereqs config_dirs xos_download cord_services bootstrap onboarding podconfig |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 12 | |
| 13 | onboarding: |
| 14 | @echo "[ONBOARDING]" |
| 15 | # on-board any services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 16 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 17 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 18 | sudo cp id_rsa key_import/vBBU_rsa |
| 19 | sudo cp id_rsa.pub key_import/vBBU_rsa.pub |
Pingping Lin | eb05ccd | 2016-09-19 21:23:59 +0000 | [diff] [blame] | 20 | sudo cp id_rsa key_import/vPGWC_rsa |
| 21 | sudo cp id_rsa.pub key_import/vPGWC_rsa.pub |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 22 | sudo cp id_rsa key_import/onos_rsa |
| 23 | sudo cp id_rsa key_import/onos_rsa.pub |
| 24 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/openstack/xos/openstack-onboard.yaml |
Pingping Lin | 37e727c | 2016-08-29 23:02:12 +0000 | [diff] [blame] | 25 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vBBU/xos/vBBU-onboard.yaml |
Pingping Lin | 97c1261 | 2016-09-19 23:40:53 +0000 | [diff] [blame] | 26 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vPGWC/xos/vPGWC-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 27 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vtn/xos/vtn-onboard.yaml |
| 28 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/onos-service/xos/onos-onboard.yaml |
Matteo Scandolo | b286a6a | 2016-10-03 13:27:00 -0700 | [diff] [blame] | 29 | # $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/fabric/xos/\fabric-onboard.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 30 | $(RUN_TOSCA_BOOTSTRAP) synchronizers.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 31 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
| 32 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vbbu |
| 33 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vpgwc |
| 34 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vtn |
| 35 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/onos |
| 36 | # bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/fabric |
| 37 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 38 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 39 | |
| 40 | podconfig: nodes.yaml images.yaml |
| 41 | @echo "[PODCONFIG]" |
| 42 | $(RUN_TOSCA) setup.yaml |
| 43 | $(RUN_TOSCA) nodes.yaml |
| 44 | $(RUN_TOSCA) images.yaml |
| 45 | |
| 46 | vtn: vtn-external.yaml |
| 47 | $(RUN_TOSCA) vtn-external.yaml |
| 48 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 49 | vtn-external.yaml: |
| 50 | export SETUPDIR=$(CONFIG_DIR); bash ./make-vtn-external-yaml.sh |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 51 | |
Pingping Lin | 82366d3 | 2016-08-31 00:21:56 +0000 | [diff] [blame] | 52 | mcord: |
| 53 | $(RUN_TOSCA) mgmt-net.yaml |
| 54 | $(RUN_TOSCA) mcord.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 55 | |
| 56 | ceilometer_custom_images: images/ceilometer-service-trusty-server-multi-nic.img images/ceilometer-trusty-server-multi-nic.img |
| 57 | #TODO: Add logic for service VM custom image (ceilometer-service-trusty-server-multi-nic) |
| 58 | bash -c "source ./admin-openrc.sh; glance image-show ceilometer-trusty-server-multi-nic || glance image-create --name ceilometer-trusty-server-multi-nic --disk-format qcow2 --file ./images/ceilometer-trusty-server-multi-nic.compressed.qcow2 --container-format bare" |
| 59 | |
| 60 | #vsg_custom_images: images/vsg-1.1.img |
Pingping Lin | 5681d7d | 2016-09-13 23:29:50 +0000 | [diff] [blame] | 61 | # bash -c "source ./admin-openrc.sh; glance image-show vsg-1.1 || glance image-create --name vsg-1.1 --disk-format qcow2 --file ./images/vsg-1.1.img --container-format bare" |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 62 | |
| 63 | images/ceilometer-trusty-server-multi-nic.img: images |
| 64 | bash -c "source ./admin-openrc.sh; glance image-show ceilometer-trusty-server-multi-nic || wget http://www.vicci.org/cord/ceilometer-trusty-server-multi-nic.compressed.qcow2 -P ./images" |
| 65 | |
| 66 | images/ceilometer-service-trusty-server-multi-nic.img: images |
| 67 | #TODO: Add logic for service VM custom image (ceilometer-service-trusty-server-multi-nic) once image is uploaded into vicci portal |
| 68 | #bash -c "source ../setup/admin-openrc.sh; glance image-show ceilometer-service-trusty-server-multi-nic || wget http://www.vicci.org/cord/ceilometer-service-trusty-server-multi-nic.compressed.qcow2 -P ./images" |
| 69 | |
| 70 | #images/vsg-1.1.img: images |
| 71 | # [ -s images/vsg-1.1.img ] || wget http://www.vicci.org/cord/vsg-1.1.img -P ./images |
| 72 | |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 73 | onboard-slicing: slicing-ui |
| 74 | @echo "[ONBOARDING]" |
| 75 | # on-board slicing services here |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 76 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 77 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/disable-onboarding.yaml |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 78 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/mcord_slicing_ui/xos/mcord-slicing-onboard.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 79 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/mcord_slicing_ui |
| 80 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 81 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Matteo Scandolo | c55c057 | 2016-10-04 08:42:38 -0700 | [diff] [blame] | 82 | |
Matteo Scandolo | 1105c5b | 2016-10-03 11:25:34 -0700 | [diff] [blame] | 83 | slicing-ui: |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 84 | $(RUN_TOSCA) ./mcord-slicing-ui.yaml |