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> |
Jordan Halterman | d326de1 | 2018-07-31 11:57:21 -0700 | [diff] [blame] | 32 | <group name="Cleanup-Atomix-OC" unless="${OCC1}"> |
| 33 | <parallel var="${OC#}"> |
| 34 | <step name="Atomix-Kill-${#}" |
| 35 | env="~" |
| 36 | exec="atomix-kill ${OC#}"/> |
| 37 | <step name="Atomix-Uninstall-${#}" |
| 38 | exec="atomix-uninstall ${OC#}" |
| 39 | requires="Atomix-Kill-${#}"/> |
| 40 | </parallel> |
| 41 | </group> |
| 42 | <group name="Cleanup-Atomix-OCC" if="${OCC1}"> |
Jordan Halterman | 19c123a | 2018-07-30 13:57:19 -0700 | [diff] [blame] | 43 | <parallel var="${OCC#}"> |
| 44 | <step name="Atomix-Kill-${#}" |
| 45 | env="~" |
| 46 | exec="atomix-kill ${OCC#}"/> |
| 47 | <step name="Atomix-Uninstall-${#}" |
| 48 | exec="atomix-uninstall ${OCC#}" |
| 49 | requires="Atomix-Kill-${#}"/> |
| 50 | </parallel> |
| 51 | </group> |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 52 | </group> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 53 | |
Jordan Halterman | 19c123a | 2018-07-30 13:57:19 -0700 | [diff] [blame] | 54 | <step name="Generate-Cluster-Key" exec="onos-gen-cluster-key -f"/> |
Brian O'Connor | 740e98c | 2017-06-29 17:07:17 -0700 | [diff] [blame] | 55 | |
Jordan Halterman | d326de1 | 2018-07-31 11:57:21 -0700 | [diff] [blame] | 56 | <group name="Install-Atomix"> |
| 57 | <group name="Install-Atomix-OC" unless="${OCC1}"> |
| 58 | <group name="Parallel-Install-Atomix"> |
| 59 | <parallel var="${OC#}"> |
| 60 | <step name="Parallel-Install-Atomix-${#}" exec="atomix-install ${OC#}" |
| 61 | requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup"/> |
| 62 | </parallel> |
| 63 | </group> |
| 64 | </group> |
| 65 | |
| 66 | <group name="Install-Atomix-OCC" if="${OCC1}"> |
| 67 | <group name="Parallel-Install-Atomix"> |
| 68 | <parallel var="${OCC#}"> |
| 69 | <step name="Parallel-Install-Atomix-${#}" exec="atomix-install ${OCC#}" |
| 70 | requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup"/> |
| 71 | </parallel> |
| 72 | </group> |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 73 | </group> |
| 74 | </group> |
Thomas Vachuska | 12bf445 | 2015-06-26 09:15:38 -0700 | [diff] [blame] | 75 | |
Jordan Halterman | 00e92da | 2018-05-22 23:05:52 -0700 | [diff] [blame] | 76 | <group name="Install-ONOS"> |
| 77 | <group name="Sequential-Install-ONOS" if="${ONOS_STC_SEQ_START}"> |
| 78 | <sequential var="${OC#}" |
| 79 | starts="Sequential-Install-${#}" |
| 80 | ends="Sequential-Install-${#-1}"> |
| 81 | <step name="Sequential-Install-${#}" exec="onos-install ${OC#}" |
| 82 | requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/> |
| 83 | </sequential> |
| 84 | </group> |
| 85 | |
| 86 | <group name="Parallel-Install-ONOS" unless="${ONOS_STC_SEQ_START}"> |
| 87 | <parallel var="${OC#}"> |
| 88 | <step name="Parallel-Install-${#}" exec="onos-install ${OC#}" |
| 89 | requires="Generate-Cluster-Key,Push-Bits-${#},Push-Bits,Cleanup,Install-Atomix"/> |
| 90 | </parallel> |
| 91 | </group> |
| 92 | </group> |
| 93 | |
| 94 | <group name="Verify" requires="Install-ONOS"> |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 95 | <parallel var="${OC#}"> |
| 96 | <step name="Secure-SSH-${#}" |
| 97 | 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] | 98 | requires="Install-ONOS"/> |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 99 | |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 100 | <step name="Wait-for-Start-${#}" exec="onos-wait-for-start ${OC#}" |
| 101 | requires="~Secure-SSH-${#}"/> |
Thomas Vachuska | 731193d | 2015-12-10 11:41:46 -0800 | [diff] [blame] | 102 | |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 103 | <step name="Check-Nodes-${#}" exec="onos-check-nodes ${OC#}" delay="3" |
| 104 | requires="~Wait-for-Start-${#}"/> |
| 105 | <step name="Check-Components-${#}" delay="5" |
| 106 | exec="onos-check-components ${OC#}" |
| 107 | requires="~Wait-for-Start-${#}"/> |
Thomas Vachuska | 68acdba | 2016-03-02 19:41:27 -0800 | [diff] [blame] | 108 | |
Jon Hall | fe4a073 | 2017-03-31 10:46:02 -0700 | [diff] [blame] | 109 | <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}" |
| 110 | requires="~Check-Components-${#}"/> |
| 111 | <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} ${ONOS_APPS} includes" |
| 112 | requires="~Check-Components-${#}"/> |
| 113 | |
| 114 | <dependency name="Enable-Flow-Objective-Intents" requires="Check-Apps-${#}"/> |
| 115 | </parallel> |
| 116 | </group> |
| 117 | |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 118 | </group> |
| 119 | </scenario> |