blob: ab31d666a4cc475ef8fd76964e31c856fc835499 [file] [log] [blame]
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2015-present Open Networking Foundation
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07003 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<scenario name="setup" description="ONOS cluster setup">
17 <group name="Setup">
18 <step name="Push-Bits" exec="onos-push-bits-through-proxy" if="${OCT}"/>
Thomas Vachuska68acdba2016-03-02 19:41:27 -080019 <step name="Enable-Flow-Objective-Intents" if="${ONOS_USE_FOI}"
20 exec="onos ${OC1} cfg set org.onosproject.net.intent.impl.compiler.IntentConfigurableRegistrator useFlowObjectives true"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070021
Jon Hallfe4a0732017-03-31 10:46:02 -070022 <group name="Cleanup">
Jordan Halterman19c123a2018-07-30 13:57:19 -070023 <group name="Cleanup-ONOS">
24 <parallel var="${OC#}">
25 <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}"
26 unless="${OCT}"/>
27 <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/>
28 <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}"
29 requires="Uninstall-${#}"/>
30 </parallel>
31 </group>
Jordan Haltermand326de12018-07-31 11:57:21 -070032 <group name="Cleanup-Atomix-OC" unless="${OCC1}">
33 <parallel var="${OC#}">
34 <step name="Atomix-Kill-${#}"
35 env="~"
36 exec="atomix-kill ${OC#}"/>
37 <step name="Atomix-Uninstall-${#}"
38 exec="atomix-uninstall ${OC#}"
39 requires="Atomix-Kill-${#}"/>
40 </parallel>
41 </group>
42 <group name="Cleanup-Atomix-OCC" if="${OCC1}">
Jordan Halterman19c123a2018-07-30 13:57:19 -070043 <parallel var="${OCC#}">
44 <step name="Atomix-Kill-${#}"
45 env="~"
46 exec="atomix-kill ${OCC#}"/>
47 <step name="Atomix-Uninstall-${#}"
48 exec="atomix-uninstall ${OCC#}"
49 requires="Atomix-Kill-${#}"/>
50 </parallel>
51 </group>
Jon Hallfe4a0732017-03-31 10:46:02 -070052 </group>
Thomas Vachuska8189a742015-05-29 10:02:52 -070053
Jordan Halterman19c123a2018-07-30 13:57:19 -070054 <step name="Generate-Cluster-Key" exec="onos-gen-cluster-key -f"/>
Brian O'Connor740e98c2017-06-29 17:07:17 -070055
Jordan Haltermand326de12018-07-31 11:57:21 -070056 <group name="Install-Atomix">
57 <group name="Install-Atomix-OC" unless="${OCC1}">
58 <group name="Parallel-Install-Atomix">
59 <parallel var="${OC#}">
60 <step name="Parallel-Install-Atomix-${#}" exec="atomix-install ${OC#}"
61 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup"/>
62 </parallel>
63 </group>
64 </group>
65
66 <group name="Install-Atomix-OCC" if="${OCC1}">
67 <group name="Parallel-Install-Atomix">
68 <parallel var="${OCC#}">
69 <step name="Parallel-Install-Atomix-${#}" exec="atomix-install ${OCC#}"
70 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup"/>
71 </parallel>
72 </group>
Jon Hallfe4a0732017-03-31 10:46:02 -070073 </group>
74 </group>
Thomas Vachuska12bf4452015-06-26 09:15:38 -070075
Jordan Halterman00e92da2018-05-22 23:05:52 -070076 <group name="Install-ONOS">
77 <group name="Sequential-Install-ONOS" if="${ONOS_STC_SEQ_START}">
78 <sequential var="${OC#}"
79 starts="Sequential-Install-${#}"
80 ends="Sequential-Install-${#-1}">
81 <step name="Sequential-Install-${#}" exec="onos-install ${OC#}"
82 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/>
83 </sequential>
84 </group>
85
86 <group name="Parallel-Install-ONOS" unless="${ONOS_STC_SEQ_START}">
87 <parallel var="${OC#}">
88 <step name="Parallel-Install-${#}" exec="onos-install ${OC#}"
89 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/>
90 </parallel>
91 </group>
92 </group>
93
94 <group name="Verify" requires="Install-ONOS">
Jon Hallfe4a0732017-03-31 10:46:02 -070095 <parallel var="${OC#}">
96 <step name="Secure-SSH-${#}"
97 exec="onos-secure-ssh -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS} ${OC#}"
Jordan Halterman00e92da2018-05-22 23:05:52 -070098 requires="Install-ONOS"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070099
Jon Hallfe4a0732017-03-31 10:46:02 -0700100 <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}"
101 requires="~Secure-SSH-${#}"/>
Thomas Vachuska731193d2015-12-10 11:41:46 -0800102
Jon Hallfe4a0732017-03-31 10:46:02 -0700103 <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#}" delay="3"
104 requires="~Wait-for-Start-${#}"/>
105 <step name="Check-Components-${#}" delay="5"
106 exec="onos-check-components ${OC#}"
107 requires="~Wait-for-Start-${#}"/>
Thomas Vachuska68acdba2016-03-02 19:41:27 -0800108
Jon Hallfe4a0732017-03-31 10:46:02 -0700109 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"
110 requires="~Check-Components-${#}"/>
111 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} ${ONOS_APPS} includes"
112 requires="~Check-Components-${#}"/>
113
114 <dependency name="Enable-Flow-Objective-Intents" requires="Check-Apps-${#}"/>
115 </parallel>
116 </group>
117
Thomas Vachuskaf9c84362015-04-15 11:20:45 -0700118 </group>
119</scenario>