blob: f51a0e04d0a6092633e5db1ff1c28cb378e7f92f [file] [log] [blame]
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -07001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2015-present Open Networking Foundation
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -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="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}"/>
Thomas Vachuska5af2e4f2016-12-16 12:07:33 -080019 <step name="Secure-SSH" exec="onos-secure-ssh -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070020
21 <parallel var="${OC#}">
Thomas Vachuskac544f632015-06-02 11:29:59 -070022 <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}" unless="${OCT}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070023 <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/>
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070024 <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}" requires="Uninstall-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070025
26 <step name="Untar-And-Run-${#}" exec="onos-untar-and-run ${OC#}"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070027 requires="Kill-${#},Push-Bits-${#},Push-Bits"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070028
Thomas Vachuska12bf4452015-06-26 09:15:38 -070029 <dependency name="Secure-SSH" requires="Untar-And-Run-${#}"/>
30
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070031 <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}"
Thomas Vachuska12bf4452015-06-26 09:15:38 -070032 requires="Untar-And-Run-${#},~Secure-SSH"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070033
34 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"
35 requires="~Wait-for-Start-${#}"/>
Thomas Vachuskac544f632015-06-02 11:29:59 -070036 <step name="Check-Components-${#}" exec="onos-check-components ${OC#}"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070037 requires="~Wait-for-Start-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070038 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} drivers"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070039 requires="~Wait-for-Start-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070040
41 <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#} ${OC#}"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070042 requires="~Wait-for-Start-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070043 </parallel>
44 </group>
45
46 <group name="Setup-Cluster" requires="Setup-Instances" unless="${NO_CLUSTER}">
Thomas Vachuska3c831fa2015-08-17 18:44:15 -070047 <step name="Form-Cluster" exec="onos-form-cluster -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS} cell"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070048 <parallel var="${OC#}">
Thomas Vachuskac544f632015-06-02 11:29:59 -070049 <step name="Wait-for-Start-Again-${#}" exec="onos-wait-for-start ${OC#}"
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070050 requires="Form-Cluster"/>
51
52 <step name="Check-Logs-Again-${#}" exec="onos-check-logs ${OC#}"
53 requires="~Wait-for-Start-Again-${#}"/>
Thomas Vachuskac544f632015-06-02 11:29:59 -070054 <step name="Check-Components-Again-${#}" exec="onos-check-components ${OC#}"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070055 requires="~Wait-for-Start-Again-${#}"/>
Thomas Vachuskac544f632015-06-02 11:29:59 -070056 <step name="Check-Apps-Again-${#}" exec="onos-check-apps ${OC#} drivers"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070057 requires="~Wait-for-Start-Again-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070058
59 <step name="Check-Nodes-Again-${#}" exec="onos-check-nodes ${OC#}"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070060 requires="~Wait-for-Start-Again-${#}"/>
Thomas Vachuskaa48e3d12015-06-02 09:43:29 -070061 </parallel>
62 </group>
63
64</scenario>