blob: d148d52358454a78e15e7af43732a50b16c4f10d [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>
32 <group name="Cleanup-Atomix" if="${OCC1}">
33 <parallel var="${OCC#}">
34 <step name="Atomix-Kill-${#}"
35 env="~"
36 exec="atomix-kill ${OCC#}"/>
37 <step name="Atomix-Uninstall-${#}"
38 exec="atomix-uninstall ${OCC#}"
39 requires="Atomix-Kill-${#}"/>
40 </parallel>
41 </group>
Jon Hallfe4a0732017-03-31 10:46:02 -070042 </group>
Thomas Vachuska8189a742015-05-29 10:02:52 -070043
Jordan Halterman19c123a2018-07-30 13:57:19 -070044 <step name="Generate-Cluster-Key" exec="onos-gen-cluster-key -f"/>
Brian O'Connor740e98c2017-06-29 17:07:17 -070045
Jordan Halterman19c123a2018-07-30 13:57:19 -070046 <group name="Install-Atomix" if="${OCC1}">
Jordan Halterman00e92da2018-05-22 23:05:52 -070047 <group name="Parallel-Install-Atomix">
48 <parallel var="${OCC#}">
49 <step name="Parallel-Install-Atomix-${#}" exec="atomix-install ${OCC#}"
Brian O'Connor740e98c2017-06-29 17:07:17 -070050 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup"/>
Jon Hallfe4a0732017-03-31 10:46:02 -070051 </parallel>
52 </group>
53 </group>
Thomas Vachuska12bf4452015-06-26 09:15:38 -070054
Jordan Halterman00e92da2018-05-22 23:05:52 -070055 <group name="Install-ONOS">
56 <group name="Sequential-Install-ONOS" if="${ONOS_STC_SEQ_START}">
57 <sequential var="${OC#}"
58 starts="Sequential-Install-${#}"
59 ends="Sequential-Install-${#-1}">
60 <step name="Sequential-Install-${#}" exec="onos-install ${OC#}"
61 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/>
62 </sequential>
63 </group>
64
65 <group name="Parallel-Install-ONOS" unless="${ONOS_STC_SEQ_START}">
66 <parallel var="${OC#}">
67 <step name="Parallel-Install-${#}" exec="onos-install ${OC#}"
68 requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/>
69 </parallel>
70 </group>
71 </group>
72
73 <group name="Verify" requires="Install-ONOS">
Jon Hallfe4a0732017-03-31 10:46:02 -070074 <parallel var="${OC#}">
75 <step name="Secure-SSH-${#}"
76 exec="onos-secure-ssh -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS} ${OC#}"
Jordan Halterman00e92da2018-05-22 23:05:52 -070077 requires="Install-ONOS"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070078
Jon Hallfe4a0732017-03-31 10:46:02 -070079 <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}"
80 requires="~Secure-SSH-${#}"/>
Thomas Vachuska731193d2015-12-10 11:41:46 -080081
Jon Hallfe4a0732017-03-31 10:46:02 -070082 <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#}" delay="3"
83 requires="~Wait-for-Start-${#}"/>
84 <step name="Check-Components-${#}" delay="5"
85 exec="onos-check-components ${OC#}"
86 requires="~Wait-for-Start-${#}"/>
Thomas Vachuska68acdba2016-03-02 19:41:27 -080087
Jon Hallfe4a0732017-03-31 10:46:02 -070088 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"
89 requires="~Check-Components-${#}"/>
90 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} ${ONOS_APPS} includes"
91 requires="~Check-Components-${#}"/>
92
93 <dependency name="Enable-Flow-Objective-Intents" requires="Check-Apps-${#}"/>
94 </parallel>
95 </group>
96
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070097 </group>
98</scenario>