blob: 3a57bd6d9e3a2aca51f7285fd83f3bb28b92e8a4 [file] [log] [blame]
Gabe Black90623222017-01-18 19:52:28 +00001include ~/service-profile/mcord/Makefile
2
3VIAVI_REPO_SERVER="http://10.3.75.178"
4
5passivetest: probe_dependencies passivetest-onboard mcord_taa
6 $(RUN_TOSCA) $(SERVICE_DIR)/PassiveTest/pod-passivetest.yaml
7
8rebuild-passivetest: probe_dependencies
9 bash $(COMMON_DIR)/rebuild.sh $(XOS_BOOTSTRAP_PORT) passivetest
10 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
11
12passivetest-onboard:
13 cp $(SERVICE_DIR)/PassiveTest/xos/synchronizer/passivetest_config $(CONFIG_DIR)/files/passivetest_config
14 sudo cp $(CONFIG_DIR)/id_rsa $(CONFIG_DIR)/key_import/passivetest_rsa
15 sudo cp $(CONFIG_DIR)/id_rsa.pub $(CONFIG_DIR)/key_import/passivetest_rsa.pub
16 $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml
17 $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/PassiveTest/xos/PassiveTest-onboard.yaml
18 $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/PassiveTest/xos/synchronizer/passivetest-synchronizer.yaml
19 $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml
20 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/passivetest
21 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
22 bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT)
23
24clean: cleanup
25 ./cleanup.sh
26 bash -c "source $(CONFIG_DIR)/admin-openrc.sh; nova list --all-tenants; neutron net-list"
27
28passivetest-acord:
29 bash install_monitoring_plugin.sh
30 $(RUN_TOSCA) $(SERVICE_DIR)/PassiveTest/passivetest-acord.yaml
31
32probe_dependencies: manifest
33
34manifest:
35 cp $(CONFIG_DIR)/id_rsa.pub $(SERVICE_DIR)/PassiveTest/xos/synchronizer/steps/roles/setup_probe/files/passivetest_rsa.pub
36 cd $(SERVICE_DIR)/PassiveTest/xos; bash $(SERVICE_DIR)/PassiveTest/xos/make_synchronizer_manifest.sh
37
38viv: viv.docker
39 bash install_viv.sh
40
41viv.docker:
42 wget $(VIAVI_REPO_SERVER)/viv.docker
43
44mcord_taa: mcord_taa.qcow2
45 bash -c "source $(CONFIG_DIR)/admin-openrc.sh; glance image-show mcord_taa || glance image-create --name mcord_taa --container-format bare --disk-format qcow2 --progress --is-public True --file mcord_taa.qcow2"
46
47mcord_taa.qcow2:
48 wget $(VIAVI_REPO_SERVER)/mcord_taa.qcow2
49
50cord-monitoringservice: $(SERVICE_DIR)/monitoring monitoring_files
51 @echo "[Patching CORD-MONITORINGSERVICE]"
52 cp $(SERVICE_DIR)/PassiveTest/ceilometerdashboard.py $(SERVICE_DIR)/monitoring/xos/api/tenant/monitoring/dashboard/ceilometerdashboard.py
53 @echo "[CORD-MONITORINGSERVICE]"
54 sudo cp $(CONFIG_DIR)/id_rsa $(CONFIG_DIR)/key_import/monitoringservice_rsa
55 $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/monitoring/xos/monitoring-onboard.yaml
56 $(RUN_TOSCA_BOOTSTRAP) $(CONFIG_DIR)/monitoring_synchronizer.yaml
57 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/monitoring
58 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
59 bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT)
60 $(RUN_TOSCA) $(CONFIG_DIR)/monitoringservice.yaml
61 $(RUN_TOSCA) $(CONFIG_DIR)/monitoringtenant.yaml
62 @echo "waiting for monitoring service to be fully ready...."
63 ansible-playbook -i local $(SERVICE_DIR)/monitoring/xos/test/monitoring_test_initial.yaml
64
65monitoring_files: monitoring_synchronizer.yaml monitoringservice.yaml monitoringtenant.yaml
66
67monitoring%.yaml:
68 rm $(CONFIG_DIR)/$@
69 cp $(CONFIG_DIR)/../cord-pod/$@ $(CONFIG_DIR)
70
71inframonitoring.yaml:
72 export SETUPDIR=$(CONFIG_DIR); bash $(CONFIG_DIR)/../cord-pod/make-inframonitoring-yaml.sh
73
74rebuild-monitoringservice:
75 bash $(COMMON_DIR)/rebuild.sh $(XOS_BOOTSTRAP_PORT) monitoring
76 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
77
78install-inframonitoring-agents:
79 bash $(SERVICE_DIR)/monitoring/xos/synchronizer/ceilometer/monitoring_agent/install_monitoring_ceilometer.sh
80 @echo "Validate if infra metrics are available...."
81 ansible-playbook -i local $(SERVICE_DIR)/monitoring/xos/test/monitoring_test_inframetrics.yaml
82
83enable-inframonitoring: inframonitoring.yaml onos_monitoring_service_endpoints.json
84 $(RUN_TOSCA) $(CONFIG_DIR)/inframonitoring.yaml
85
86onos_monitoring_service_endpoints.json:
87 cp $(CONFIG_DIR)/../cord-pod/$@ $(CONFIG_DIR)/
88
89
90