Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Foundation |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -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="setup" description="ONOS cluster setup"> |
| 17 | <group name="Setup"> |
| 18 | <step name="Push-Bits" exec="onos-push-bits-through-proxy" if="${OCT}"/> |
Thomas Vachuska | 68acdba | 2016-03-02 19:41:27 -0800 | [diff] [blame] | 19 | <step name="Enable-Flow-Objective-Intents" if="${ONOS_USE_FOI}" |
| 20 | exec="onos ${OC1} cfg set org.onosproject.net.intent.impl.compiler.IntentConfigurableRegistrator useFlowObjectives true"/> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 21 | |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 22 | <group name="Cleanup"> |
Jordan Halterman | 19c123a | 2018-07-30 13:57:19 -0700 | [diff] [blame] | 23 | <group name="Cleanup-ONOS"> |
| 24 | <parallel var="${OC#}"> |
| 25 | <step name="Push-Bits-${#}" exec="onos-push-bits ${OC#}" |
| 26 | unless="${OCT}"/> |
| 27 | <step name="Uninstall-${#}" exec="onos-uninstall ${OC#}"/> |
| 28 | <step name="Kill-${#}" env="~" exec="onos-kill ${OC#}" |
| 29 | requires="Uninstall-${#}"/> |
| 30 | </parallel> |
| 31 | </group> |
| 32 | <group name="Cleanup-Atomix" if="${OCC1}"> |
| 33 | <parallel var="${OCC#}"> |
| 34 | <step name="Atomix-Kill-${#}" |
| 35 | env="~" |
| 36 | exec="atomix-kill ${OCC#}"/> |
| 37 | <step name="Atomix-Uninstall-${#}" |
| 38 | exec="atomix-uninstall ${OCC#}" |
| 39 | requires="Atomix-Kill-${#}"/> |
| 40 | </parallel> |
| 41 | </group> |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 42 | </group> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 43 | |
Jordan Halterman | 19c123a | 2018-07-30 13:57:19 -0700 | [diff] [blame] | 44 | <step name="Generate-Cluster-Key" exec="onos-gen-cluster-key -f"/> |
Brian O'Connor | 740e98c | 2017-06-29 17:07:17 -0700 | [diff] [blame] | 45 | |
Jordan Halterman | 19c123a | 2018-07-30 13:57:19 -0700 | [diff] [blame] | 46 | <group name="Install-Atomix" if="${OCC1}"> |
Jordan Halterman | 00e92da | 2018-05-22 23:05:52 -0700 | [diff] [blame] | 47 | <group name="Parallel-Install-Atomix"> |
| 48 | <parallel var="${OCC#}"> |
| 49 | <step name="Parallel-Install-Atomix-${#}" exec="atomix-install ${OCC#}" |
Brian O'Connor | 740e98c | 2017-06-29 17:07:17 -0700 | [diff] [blame] | 50 | requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup"/> |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 51 | </parallel> |
| 52 | </group> |
| 53 | </group> |
Thomas Vachuska | 12bf445 | 2015-06-26 09:15:38 -0700 | [diff] [blame] | 54 | |
Jordan Halterman | 00e92da | 2018-05-22 23:05:52 -0700 | [diff] [blame] | 55 | <group name="Install-ONOS"> |
| 56 | <group name="Sequential-Install-ONOS" if="${ONOS_STC_SEQ_START}"> |
| 57 | <sequential var="${OC#}" |
| 58 | starts="Sequential-Install-${#}" |
| 59 | ends="Sequential-Install-${#-1}"> |
| 60 | <step name="Sequential-Install-${#}" exec="onos-install ${OC#}" |
| 61 | requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/> |
| 62 | </sequential> |
| 63 | </group> |
| 64 | |
| 65 | <group name="Parallel-Install-ONOS" unless="${ONOS_STC_SEQ_START}"> |
| 66 | <parallel var="${OC#}"> |
| 67 | <step name="Parallel-Install-${#}" exec="onos-install ${OC#}" |
| 68 | requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/> |
| 69 | </parallel> |
| 70 | </group> |
| 71 | </group> |
| 72 | |
| 73 | <group name="Verify" requires="Install-ONOS"> |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 74 | <parallel var="${OC#}"> |
| 75 | <step name="Secure-SSH-${#}" |
| 76 | exec="onos-secure-ssh -u ${ONOS_WEB_USER} -p ${ONOS_WEB_PASS} ${OC#}" |
Jordan Halterman | 00e92da | 2018-05-22 23:05:52 -0700 | [diff] [blame] | 77 | requires="Install-ONOS"/> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 78 | |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 79 | <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}" |
| 80 | requires="~Secure-SSH-${#}"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 81 | |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 82 | <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#}" delay="3" |
| 83 | requires="~Wait-for-Start-${#}"/> |
| 84 | <step name="Check-Components-${#}" delay="5" |
| 85 | exec="onos-check-components ${OC#}" |
| 86 | requires="~Wait-for-Start-${#}"/> |
Thomas Vachuska | 68acdba | 2016-03-02 19:41:27 -0800 | [diff] [blame] | 87 | |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 88 | <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}" |
| 89 | requires="~Check-Components-${#}"/> |
| 90 | <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} ${ONOS_APPS} includes" |
| 91 | requires="~Check-Components-${#}"/> |
| 92 | |
| 93 | <dependency name="Enable-Flow-Objective-Intents" requires="Check-Apps-${#}"/> |
| 94 | </parallel> |
| 95 | </group> |
| 96 | |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 97 | </group> |
| 98 | </scenario> |