blob: a53e317cd1e931dc5aafd42247afc69cb9557488 [file] [log] [blame]
Thomas Vachuskaf9c84362015-04-15 11:20:45 -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="setup" description="ONOS cluster setup">
17 <group name="Setup">
18 <step name="Push-Bits" exec="onos-push-bits-through-proxy" if="${OCT}"/>
Thomas Vachuska3c831fa2015-08-17 18:44:15 -070019 <step name="Secure-SSH" exec="onos-secure-ssh -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS}" if="${ONOS_USE_SSH}"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070020
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070021 <parallel var="${OC#}">
Thomas Vachuska12bf4452015-06-26 09:15:38 -070022 <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}"
23 unless="${OCT}"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070024 <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/>
Thomas Vachuska12bf4452015-06-26 09:15:38 -070025 <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}"
26 requires="Uninstall-${#}"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070027
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070028 <step name="Install-${#}" exec="onos-install ${OC#}"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070029 requires="Kill-${#},Push-Bits-${#},Push-Bits"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070030
Thomas Vachuska12bf4452015-06-26 09:15:38 -070031 <dependency name="Secure-SSH" requires="Install-${#}"/>
32
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070033 <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}"
Thomas Vachuska12bf4452015-06-26 09:15:38 -070034 requires="Install-${#},~Secure-SSH"/>
Thomas Vachuska8189a742015-05-29 10:02:52 -070035
Thomas Vachuska731193d2015-12-10 11:41:46 -080036 <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#}" delay="3"
Thomas Vachuska4b84baf2015-07-27 10:49:06 -070037 requires="~Wait-for-Start-${#}"/>
Thomas Vachuska731193d2015-12-10 11:41:46 -080038 <step name="Check-Components-${#}" delay="5"
Thomas Vachuska12bf4452015-06-26 09:15:38 -070039 exec="onos-check-components ${OC#}"
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070040 requires="~Wait-for-Start-${#}"/>
Thomas Vachuska731193d2015-12-10 11:41:46 -080041
42 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"
43 requires="~Check-Components-${#}"/>
44 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} ${ONOS_APPS} includes"
45 requires="~Check-Components-${#}"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070046 </parallel>
47 </group>
48</scenario>