blob: a3bdf3274c56f01da766e58b2fcba61833fe039f [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">
23 <parallel var="${OC#}">
24 <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}"
25 unless="${OCT}"/>
26 <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/>
27 <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}"
28 requires="Uninstall-${#}"/>
29 </parallel>
Jordan Halterman00e92da2018-05-22 23:05:52 -070030 <parallel var="${OCC#}">
31 <step name="Atomix-Kill-${#}"
32 env="~"
33 exec="atomix-kill ${OCC#}"/>
34 <step name="Atomix-Uninstall-${#}"
35 exec="atomix-uninstall ${OCC#}"
36 requires="Atomix-Kill-${#}"/>
37 </parallel>
Jon Hallfe4a0732017-03-31 10:46:02 -070038 </group>
Thomas Vachuska8189a742015-05-29 10:02:52 -070039
Jordan Halterman00e92da2018-05-22 23:05:52 -070040 <group name="Install-Atomix">
Brian O'Connor740e98c2017-06-29 17:07:17 -070041 <step name="Generate-Cluster-Key" exec="onos-gen-cluster-key -f" />
42
Jordan Halterman00e92da2018-05-22 23:05:52 -070043 <group name="Parallel-Install-Atomix">
44 <parallel var="${OCC#}">
45 <step name="Parallel-Install-Atomix-${#}" exec="atomix-install ${OCC#}"
Brian O'Connor740e98c2017-06-29 17:07:17 -070046 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup"/>
Jon Hallfe4a0732017-03-31 10:46:02 -070047 </parallel>
48 </group>
49 </group>
Thomas Vachuska12bf4452015-06-26 09:15:38 -070050
Jordan Halterman00e92da2018-05-22 23:05:52 -070051 <group name="Install-ONOS">
52 <group name="Sequential-Install-ONOS" if="${ONOS_STC_SEQ_START}">
53 <sequential var="${OC#}"
54 starts="Sequential-Install-${#}"
55 ends="Sequential-Install-${#-1}">
56 <step name="Sequential-Install-${#}" exec="onos-install ${OC#}"
57 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/>
58 </sequential>
59 </group>
60
61 <group name="Parallel-Install-ONOS" unless="${ONOS_STC_SEQ_START}">
62 <parallel var="${OC#}">
63 <step name="Parallel-Install-${#}" exec="onos-install ${OC#}"
64 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/>
65 </parallel>
66 </group>
67 </group>
68
69 <group name="Verify" requires="Install-ONOS">
Jon Hallfe4a0732017-03-31 10:46:02 -070070 <parallel var="${OC#}">
71 <step name="Secure-SSH-${#}"
72 exec="onos-secure-ssh -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS} ${OC#}"
Jordan Halterman00e92da2018-05-22 23:05:52 -070073 requires="Install-ONOS"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070074
Jon Hallfe4a0732017-03-31 10:46:02 -070075 <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}"
76 requires="~Secure-SSH-${#}"/>
Thomas Vachuska731193d2015-12-10 11:41:46 -080077
Jon Hallfe4a0732017-03-31 10:46:02 -070078 <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#}" delay="3"
79 requires="~Wait-for-Start-${#}"/>
80 <step name="Check-Components-${#}" delay="5"
81 exec="onos-check-components ${OC#}"
82 requires="~Wait-for-Start-${#}"/>
Thomas Vachuska68acdba2016-03-02 19:41:27 -080083
Jon Hallfe4a0732017-03-31 10:46:02 -070084 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"
85 requires="~Check-Components-${#}"/>
86 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} ${ONOS_APPS} includes"
87 requires="~Check-Components-${#}"/>
88
89 <dependency name="Enable-Flow-Objective-Intents" requires="Check-Apps-${#}"/>
90 </parallel>
91 </group>
92
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070093 </group>
94</scenario>