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