Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Laboratory |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 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}"/> |
Thomas Vachuska | 3c831fa | 2015-08-17 18:44:15 -0700 | [diff] [blame] | 19 | <step name="Secure-SSH" exec="onos-secure-ssh -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS}" if="${ONOS_USE_SSH}"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 20 | |
| 21 | <parallel var="${OC#}"> |
Thomas Vachuska | c544f63 | 2015-06-02 11:29:59 -0700 | [diff] [blame] | 22 | <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}" unless="${OCT}"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 23 | <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/> |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 24 | <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}" requires="Uninstall-${#}"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 25 | |
| 26 | <step name="Untar-And-Run-${#}" exec="onos-untar-and-run ${OC#}" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 27 | requires="Kill-${#},Push-Bits-${#},Push-Bits"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 28 | |
Thomas Vachuska | 12bf445 | 2015-06-26 09:15:38 -0700 | [diff] [blame] | 29 | <dependency name="Secure-SSH" requires="Untar-And-Run-${#}"/> |
| 30 | |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 31 | <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}" |
Thomas Vachuska | 12bf445 | 2015-06-26 09:15:38 -0700 | [diff] [blame] | 32 | requires="Untar-And-Run-${#},~Secure-SSH"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 33 | |
| 34 | <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}" |
| 35 | requires="~Wait-for-Start-${#}"/> |
Thomas Vachuska | c544f63 | 2015-06-02 11:29:59 -0700 | [diff] [blame] | 36 | <step name="Check-Components-${#}" exec="onos-check-components ${OC#}" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 37 | requires="~Wait-for-Start-${#}"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 38 | <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} drivers" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 39 | requires="~Wait-for-Start-${#}"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 40 | |
| 41 | <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#} ${OC#}" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 42 | requires="~Wait-for-Start-${#}"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 43 | </parallel> |
| 44 | </group> |
| 45 | |
| 46 | <group name="Setup-Cluster" requires="Setup-Instances" unless="${NO_CLUSTER}"> |
Thomas Vachuska | 3c831fa | 2015-08-17 18:44:15 -0700 | [diff] [blame] | 47 | <step name="Form-Cluster" exec="onos-form-cluster -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS} cell"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 48 | <parallel var="${OC#}"> |
Thomas Vachuska | c544f63 | 2015-06-02 11:29:59 -0700 | [diff] [blame] | 49 | <step name="Wait-for-Start-Again-${#}" exec="onos-wait-for-start ${OC#}" |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 50 | requires="Form-Cluster"/> |
| 51 | |
| 52 | <step name="Check-Logs-Again-${#}" exec="onos-check-logs ${OC#}" |
| 53 | requires="~Wait-for-Start-Again-${#}"/> |
Thomas Vachuska | c544f63 | 2015-06-02 11:29:59 -0700 | [diff] [blame] | 54 | <step name="Check-Components-Again-${#}" exec="onos-check-components ${OC#}" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 55 | requires="~Wait-for-Start-Again-${#}"/> |
Thomas Vachuska | c544f63 | 2015-06-02 11:29:59 -0700 | [diff] [blame] | 56 | <step name="Check-Apps-Again-${#}" exec="onos-check-apps ${OC#} drivers" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 57 | requires="~Wait-for-Start-Again-${#}"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 58 | |
| 59 | <step name="Check-Nodes-Again-${#}" exec="onos-check-nodes ${OC#}" |
Thomas Vachuska | 4cfcc56 | 2015-06-03 09:51:02 -0700 | [diff] [blame] | 60 | requires="~Wait-for-Start-Again-${#}"/> |
Thomas Vachuska | a48e3d1 | 2015-06-02 09:43:29 -0700 | [diff] [blame] | 61 | </parallel> |
| 62 | </group> |
| 63 | |
| 64 | </scenario> |