blob: 964c83e2c77a284794de27e7d57b6d7935c9e093 [file] [log] [blame]
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -07001<!--
2 ~ Copyright 2015 Open Networking Laboratory
3 ~
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="tar-setup" description="ONOS cluster setup via onos.tar.gz">
17 <group name="Setup-Instances">
18 <step name="Push-Bits" exec="onos-push-bits-through-proxy" if="${OCT}"/>
19
20 <parallel var="${OC#}">
21 <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}"
22 unless="${OCT}"/>
23 <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/>
24 <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}"/>
25
26 <step name="Untar-And-Run-${#}" exec="onos-untar-and-run ${OC#}"
27 requires="Uninstall-${#},Push-Bits-${#},Push-Bits"/>
28
29 <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}"
30 requires="Untar-And-Run-${#}"/>
31
32 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"
33 requires="~Wait-for-Start-${#}"/>
34 <step name="Check-Components-${#}"
35 exec="onos-check-components ${OC#}"
36 requires="~Wait-for-Start-${#}"/>
37 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} drivers"
38 requires="~Wait-for-Start-${#}"/>
39
40 <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#} ${OC#}"
41 requires="~Wait-for-Start-${#}"/>
42 </parallel>
43 </group>
44
45 <group name="Setup-Cluster" requires="Setup-Instances" unless="${NO_CLUSTER}">
46 <step name="Form-Cluster" exec="onos-form-cluster cell"/>
47 <parallel var="${OC#}">
48 <step name="Wait-for-Start-Again-${#}"
49 exec="onos-wait-for-start ${OC#}"
50 requires="Form-Cluster"/>
51
52 <step name="Check-Logs-Again-${#}" exec="onos-check-logs ${OC#}"
53 requires="~Wait-for-Start-Again-${#}"/>
54 <step name="Check-Components-Again-${#}"
55 exec="onos-check-components ${OC#}"
56 requires="~Wait-for-Start-Again-${#}"/>
57 <step name="Check-Apps-Again-${#}"
58 exec="onos-check-apps ${OC#} drivers"
59 requires="~Wait-for-Start-Again-${#}"/>
60
61 <step name="Check-Nodes-Again-${#}" exec="onos-check-nodes ${OC#}"
62 requires="~Wait-for-Start-Again-${#}"/>
63 </parallel>
64 </group>
65
66</scenario>