|
| 1 | +--- |
| 2 | +vas: |
| 3 | + multi-namespace: |
| 4 | + stages: |
| 5 | + - name: namespace-configuration # stage 0 |
| 6 | + path: examples/va/multi-namespace/namespace |
| 7 | + wait_conditions: |
| 8 | + - >- |
| 9 | + oc -n default wait ns openstack2 |
| 10 | + --for jsonpath='{.status.phase}'=Active |
| 11 | + --timeout=5m |
| 12 | + values: |
| 13 | + - name: namespace-values |
| 14 | + src_file: values.yaml |
| 15 | + build_output: namespace.yaml |
| 16 | + |
| 17 | + - name: nncp-configuration # stage 1 |
| 18 | + path: examples/va/multi-namespace/control-plane/networking/nncp |
| 19 | + wait_conditions: |
| 20 | + # We don't wait for these NNCPs at this stage, because we'll wait for |
| 21 | + # both namespaces in the next stage so that they can deploy in parallel |
| 22 | + # to save time |
| 23 | + - >- |
| 24 | + oc -n default wait ns openstack2 |
| 25 | + --for jsonpath='{.status.phase}'=Active |
| 26 | + --timeout=5m |
| 27 | + values: |
| 28 | + - name: network-values |
| 29 | + src_file: values.yaml |
| 30 | + build_output: nncp.yaml |
| 31 | + |
| 32 | + - name: nncp-configuration2 # stage 2 |
| 33 | + path: examples/va/multi-namespace/control-plane2/networking/nncp |
| 34 | + wait_conditions: |
| 35 | + - >- |
| 36 | + oc -n openstack wait nncp |
| 37 | + -l osp/nncm-config-type=standard |
| 38 | + --for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured |
| 39 | + --timeout=5m |
| 40 | + values: |
| 41 | + - name: network-values2 |
| 42 | + src_file: values.yaml |
| 43 | + build_output: nncp2.yaml |
| 44 | + |
| 45 | + - name: network-configuration # stage 3 |
| 46 | + path: examples/va/multi-namespace/control-plane/networking |
| 47 | + wait_conditions: |
| 48 | + - >- |
| 49 | + oc -n metallb-system wait pod |
| 50 | + -l app=metallb -l component=speaker |
| 51 | + --for condition=Ready |
| 52 | + --timeout=5m |
| 53 | + values: |
| 54 | + - name: network-values |
| 55 | + src_file: nncp/values.yaml |
| 56 | + build_output: network.yaml |
| 57 | + |
| 58 | + - name: network-configuration2 # stage 4 |
| 59 | + path: examples/va/multi-namespace/control-plane2/networking |
| 60 | + wait_conditions: |
| 61 | + - >- |
| 62 | + oc -n metallb-system wait pod |
| 63 | + -l app=metallb -l component=speaker |
| 64 | + --for condition=Ready |
| 65 | + --timeout=5m |
| 66 | + values: |
| 67 | + - name: network-values2 |
| 68 | + src_file: nncp/values.yaml |
| 69 | + build_output: network2.yaml |
| 70 | + |
| 71 | + - name: control-plane # stage 5 |
| 72 | + path: examples/va/multi-namespace/control-plane |
| 73 | + wait_conditions: |
| 74 | + # We don't wait for this namespace's OpenStackControlPlane at |
| 75 | + # this stage, because we'll wait for both namespaces in the next |
| 76 | + # stage so that they can deploy in parallel to save time |
| 77 | + - >- |
| 78 | + oc -n default wait ns openstack2 |
| 79 | + --for jsonpath='{.status.phase}'=Active |
| 80 | + --timeout=5m |
| 81 | + values: |
| 82 | + - name: service-values |
| 83 | + src_file: service-values.yaml |
| 84 | + - name: network-values |
| 85 | + src_file: networking/nncp/values.yaml |
| 86 | + build_output: ../control-plane.yaml |
| 87 | + |
| 88 | + - name: control-plane2 # stage 6 |
| 89 | + path: examples/va/multi-namespace/control-plane2 |
| 90 | + wait_conditions: |
| 91 | + - >- |
| 92 | + oc -n openstack wait osctlplane controlplane --for condition=Ready |
| 93 | + --timeout=60m |
| 94 | + - >- |
| 95 | + oc -n openstack2 wait osctlplane controlplane --for condition=Ready |
| 96 | + --timeout=60m |
| 97 | + values: |
| 98 | + - name: service-values |
| 99 | + src_file: service-values.yaml |
| 100 | + - name: network-values2 |
| 101 | + src_file: networking/nncp/values.yaml |
| 102 | + build_output: ../control-plane2.yaml |
| 103 | + |
| 104 | + - name: edpm-nodeset # stage 7 |
| 105 | + path: examples/va/multi-namespace/edpm/nodeset |
| 106 | + wait_conditions: |
| 107 | + # We don't wait for this namespace's OpenStackDataPlaneNodeSet at |
| 108 | + # this stage, because we'll wait for both namespaces in the next |
| 109 | + # stage so that they can deploy in parallel to save time |
| 110 | + - >- |
| 111 | + oc -n default wait ns openstack2 |
| 112 | + --for jsonpath='{.status.phase}'=Active |
| 113 | + --timeout=5m |
| 114 | + values: |
| 115 | + - name: edpm-nodeset-values |
| 116 | + src_file: values.yaml |
| 117 | + build_output: nodeset.yaml |
| 118 | + |
| 119 | + - pre_stage_run: # stage 8 |
| 120 | + - name: Get OpenStackDataPlaneServices for openstack2 namespace |
| 121 | + type: playbook |
| 122 | + source: "../../playbooks/multi-namespace/ns2_osdp_services.yaml" |
| 123 | + inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml" |
| 124 | + name: edpm-nodeset2 |
| 125 | + path: examples/va/multi-namespace/edpm2/nodeset |
| 126 | + wait_conditions: |
| 127 | + - >- |
| 128 | + oc -n openstack wait |
| 129 | + osdpns openstack-edpm --for condition=SetupReady |
| 130 | + --timeout=10m |
| 131 | + - >- |
| 132 | + oc -n openstack2 wait |
| 133 | + osdpns openstack-edpm --for condition=SetupReady |
| 134 | + --timeout=10m |
| 135 | + values: |
| 136 | + - name: edpm-nodeset2-values |
| 137 | + src_file: values.yaml |
| 138 | + build_output: nodeset2.yaml |
| 139 | + |
| 140 | + - name: edpm-deployment # stage 9 |
| 141 | + path: examples/va/multi-namespace/edpm |
| 142 | + wait_conditions: |
| 143 | + # We don't wait for this namespace's OpenStackDataPlaneDeployment at |
| 144 | + # this stage, because we'll wait for both namespaces in the next |
| 145 | + # stage so that they can deploy in parallel to save time |
| 146 | + - >- |
| 147 | + oc -n default wait ns openstack2 |
| 148 | + --for jsonpath='{.status.phase}'=Active |
| 149 | + --timeout=5m |
| 150 | + values: |
| 151 | + - name: edpm-deployment-values |
| 152 | + src_file: values.yaml |
| 153 | + build_output: deployment.yaml |
| 154 | + |
| 155 | + - name: edpm-deployment2 # stage 10 |
| 156 | + path: examples/va/multi-namespace/edpm2 |
| 157 | + wait_conditions: |
| 158 | + - >- |
| 159 | + oc -n openstack wait |
| 160 | + osdpns openstack-edpm --for condition=Ready |
| 161 | + --timeout=30m |
| 162 | + - >- |
| 163 | + oc -n openstack2 wait |
| 164 | + osdpns openstack-edpm --for condition=Ready |
| 165 | + --timeout=30m |
| 166 | + values: |
| 167 | + - name: edpm-deployment2-values |
| 168 | + src_file: values.yaml |
| 169 | + build_output: deployment2.yaml |
0 commit comments