blob: 87ba8cd53b8c0b27707dec04685c335cdae59702 [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#}">
Thomas Vachuskac544f632015-06-02 11:29:59 -070021 <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}" unless="${OCT}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070022 <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/>
23 <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}"/>
24
25 <step name="Untar-And-Run-${#}" exec="onos-untar-and-run ${OC#}"
26 requires="Uninstall-${#},Push-Bits-${#},Push-Bits"/>
27
28 <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}"
29 requires="Untar-And-Run-${#}"/>
30
31 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"
32 requires="~Wait-for-Start-${#}"/>
Thomas Vachuskac544f632015-06-02 11:29:59 -070033 <step name="Check-Components-${#}" exec="onos-check-components ${OC#}"
34 requires="~Wait-for-Start-${#},~Check-Logs-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070035 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} drivers"
Thomas Vachuskac544f632015-06-02 11:29:59 -070036 requires="~Wait-for-Start-${#},~Check-Logs-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070037
38 <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#} ${OC#}"
Thomas Vachuskac544f632015-06-02 11:29:59 -070039 requires="~Wait-for-Start-${#},~Check-Logs-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070040 </parallel>
41 </group>
42
43 <group name="Setup-Cluster" requires="Setup-Instances" unless="${NO_CLUSTER}">
44 <step name="Form-Cluster" exec="onos-form-cluster cell"/>
45 <parallel var="${OC#}">
Thomas Vachuskac544f632015-06-02 11:29:59 -070046 <step name="Wait-for-Start-Again-${#}" exec="onos-wait-for-start ${OC#}"
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070047 requires="Form-Cluster"/>
48
49 <step name="Check-Logs-Again-${#}" exec="onos-check-logs ${OC#}"
50 requires="~Wait-for-Start-Again-${#}"/>
Thomas Vachuskac544f632015-06-02 11:29:59 -070051 <step name="Check-Components-Again-${#}" exec="onos-check-components ${OC#}"
52 requires="~Wait-for-Start-Again-${#},~Check-Logs-Again-${#}"/>
53 <step name="Check-Apps-Again-${#}" exec="onos-check-apps ${OC#} drivers"
54 requires="~Wait-for-Start-Again-${#},~Check-Logs-Again-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070055
56 <step name="Check-Nodes-Again-${#}" exec="onos-check-nodes ${OC#}"
Thomas Vachuskac544f632015-06-02 11:29:59 -070057 requires="~Wait-for-Start-Again-${#},~Check-Logs-Again-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070058 </parallel>
59 </group>
60
61</scenario>