|
| 1 | +--- |
| 2 | +vas: |
| 3 | + dz-storage: |
| 4 | + stages: |
| 5 | + - pre_stage_run: |
| 6 | + - name: Apply taint on worker-9 |
| 7 | + type: cr |
| 8 | + definition: |
| 9 | + spec: |
| 10 | + taints: |
| 11 | + - effect: NoSchedule |
| 12 | + key: testOperator |
| 13 | + value: 'true' |
| 14 | + - effect: NoExecute |
| 15 | + key: testOperator |
| 16 | + value: 'true' |
| 17 | + kind: Node |
| 18 | + resource_name: worker-9 |
| 19 | + state: patched |
| 20 | + - name: Disable rp_filters on OCP nodes |
| 21 | + type: cr |
| 22 | + definition: |
| 23 | + spec: |
| 24 | + profile: |
| 25 | + - data: | |
| 26 | + [main] |
| 27 | + summary=Optimize systems running OpenShift (provider specific parent profile) |
| 28 | + include=-provider-${f:exec:cat:/var/lib/ocp-tuned/provider},openshift |
| 29 | +
|
| 30 | + [sysctl] |
| 31 | + net.ipv4.conf.enp8s0.rp_filter=0 |
| 32 | + net.ipv4.conf.enp9s0.rp_filter=0 |
| 33 | + name: openshift-no-reapply-sysctl |
| 34 | + recommend: |
| 35 | + - match: |
| 36 | + # applied to all nodes except worker-9, because worker-9 has no enp8s0 |
| 37 | + - label: kubernetes.io/hostname |
| 38 | + value: worker-0 |
| 39 | + - label: kubernetes.io/hostname |
| 40 | + value: worker-1 |
| 41 | + - label: kubernetes.io/hostname |
| 42 | + value: worker-2 |
| 43 | + - label: kubernetes.io/hostname |
| 44 | + value: worker-3 |
| 45 | + - label: kubernetes.io/hostname |
| 46 | + value: worker-4 |
| 47 | + - label: kubernetes.io/hostname |
| 48 | + value: worker-5 |
| 49 | + - label: kubernetes.io/hostname |
| 50 | + value: worker-6 |
| 51 | + - label: kubernetes.io/hostname |
| 52 | + value: worker-7 |
| 53 | + - label: kubernetes.io/hostname |
| 54 | + value: worker-8 |
| 55 | + - label: node-role.kubernetes.io/master |
| 56 | + operand: |
| 57 | + tunedConfig: |
| 58 | + reapply_sysctl: false |
| 59 | + priority: 15 |
| 60 | + profile: openshift-no-reapply-sysctl |
| 61 | + api_version: tuned.openshift.io/v1 |
| 62 | + kind: Tuned |
| 63 | + resource_name: openshift-no-reapply-sysctl |
| 64 | + namespace: openshift-cluster-node-tuning-operator |
| 65 | + state: present |
| 66 | + name: nncp-configuration |
| 67 | + path: examples/dt/dz-storage/control-plane/networking/nncp |
| 68 | + wait_conditions: |
| 69 | + - >- |
| 70 | + oc -n openstack wait nncp |
| 71 | + -l osp/nncm-config-type=standard |
| 72 | + --for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured |
| 73 | + --timeout=600s |
| 74 | + values: |
| 75 | + - name: network-values |
| 76 | + src_file: values.yaml |
| 77 | + build_output: nncp.yaml |
| 78 | + |
| 79 | + - name: networking |
| 80 | + path: examples/dt/dz-storage/control-plane/networking |
| 81 | + wait_conditions: |
| 82 | + - >- |
| 83 | + oc -n metallb-system wait pod |
| 84 | + -l app=metallb -l component=speaker |
| 85 | + --for condition=Ready |
| 86 | + values: |
| 87 | + - name: network-values |
| 88 | + src_file: nncp/values.yaml |
| 89 | + build_output: networking.yaml |
| 90 | + |
| 91 | + - path: examples/dt/dz-storage/topology |
| 92 | + wait_conditions: |
| 93 | + - >- |
| 94 | + oc -n openstack wait |
| 95 | + --for=jsonpath='{.metadata.name}'=azone-node-affinity |
| 96 | + topology/azone-node-affinity --timeout=60s |
| 97 | + values: |
| 98 | + - name: node-zone-labels |
| 99 | + src_file: node-zone-labels.yaml |
| 100 | + build_output: topology.yaml |
| 101 | + |
| 102 | + # allow 60m (not 30m) for larger control plane on more nodes |
| 103 | + - name: control-plane |
| 104 | + path: examples/dt/dz-storage/control-plane |
| 105 | + wait_conditions: |
| 106 | + - >- |
| 107 | + oc -n openstack wait openstackcontrolplane |
| 108 | + controlplane |
| 109 | + --for condition=Ready |
| 110 | + --timeout=60m |
| 111 | + values: |
| 112 | + - name: network-values |
| 113 | + src_file: networking/nncp/values.yaml |
| 114 | + - name: service-values |
| 115 | + src_file: service-values.yaml |
| 116 | + build_output: control-plane.yaml |
| 117 | + post_stage_run: |
| 118 | + - name: Create BGPConfiguration after controlplane is deployed |
| 119 | + type: cr |
| 120 | + definition: |
| 121 | + spec: {} |
| 122 | + api_version: network.openstack.org/v1beta1 |
| 123 | + kind: BGPConfiguration |
| 124 | + resource_name: bgpconfiguration |
| 125 | + namespace: openstack |
| 126 | + state: present |
| 127 | + |
| 128 | + - name: edpm-computes-r0-nodeset |
| 129 | + path: examples/dt/dz-storage/edpm/computes/r0 |
| 130 | + wait_conditions: |
| 131 | + - >- |
| 132 | + oc -n openstack wait openstackdataplanenodeset |
| 133 | + r0-compute-nodes |
| 134 | + --for condition=SetupReady |
| 135 | + --timeout=600s |
| 136 | + values: |
| 137 | + - name: edpm-r0-compute-nodeset-values |
| 138 | + src_file: values.yaml |
| 139 | + build_output: edpm-r0-compute-nodeset.yaml |
| 140 | + |
| 141 | + - name: edpm-computes-r1-nodeset |
| 142 | + path: examples/dt/dz-storage/edpm/computes/r1 |
| 143 | + wait_conditions: |
| 144 | + - >- |
| 145 | + oc -n openstack wait openstackdataplanenodeset |
| 146 | + r1-compute-nodes |
| 147 | + --for condition=SetupReady |
| 148 | + --timeout=600s |
| 149 | + values: |
| 150 | + - name: edpm-r1-compute-nodeset-values |
| 151 | + src_file: values.yaml |
| 152 | + build_output: edpm-r1-compute-nodeset.yaml |
| 153 | + |
| 154 | + - name: edpm-computes-r2-nodeset |
| 155 | + path: examples/dt/dz-storage/edpm/computes/r2 |
| 156 | + wait_conditions: |
| 157 | + - >- |
| 158 | + oc -n openstack wait openstackdataplanenodeset |
| 159 | + r2-compute-nodes |
| 160 | + --for condition=SetupReady |
| 161 | + --timeout=600s |
| 162 | + values: |
| 163 | + - name: edpm-r2-compute-nodeset-values |
| 164 | + src_file: values.yaml |
| 165 | + build_output: edpm-r2-compute-nodeset.yaml |
| 166 | + |
| 167 | + - name: edpm-networkers-r0-nodeset |
| 168 | + path: examples/dt/dz-storage/edpm/networkers/r0 |
| 169 | + wait_conditions: |
| 170 | + - >- |
| 171 | + oc -n openstack wait openstackdataplanenodeset |
| 172 | + r0-networker-nodes |
| 173 | + --for condition=SetupReady |
| 174 | + --timeout=600s |
| 175 | + values: |
| 176 | + - name: edpm-r0-networker-nodeset-values |
| 177 | + src_file: values.yaml |
| 178 | + build_output: edpm-r0-networker-nodeset.yaml |
| 179 | + |
| 180 | + - name: edpm-networkers-r1-nodeset |
| 181 | + path: examples/dt/dz-storage/edpm/networkers/r1 |
| 182 | + wait_conditions: |
| 183 | + - >- |
| 184 | + oc -n openstack wait openstackdataplanenodeset |
| 185 | + r1-networker-nodes |
| 186 | + --for condition=SetupReady |
| 187 | + --timeout=600s |
| 188 | + values: |
| 189 | + - name: edpm-r1-networker-nodeset-values |
| 190 | + src_file: values.yaml |
| 191 | + build_output: edpm-r1-networker-nodeset.yaml |
| 192 | + |
| 193 | + - name: edpm-networkers-r2-nodeset |
| 194 | + path: examples/dt/dz-storage/edpm/networkers/r2 |
| 195 | + wait_conditions: |
| 196 | + - >- |
| 197 | + oc -n openstack wait openstackdataplanenodeset |
| 198 | + r2-networker-nodes |
| 199 | + --for condition=SetupReady |
| 200 | + --timeout=600s |
| 201 | + values: |
| 202 | + - name: edpm-r2-networker-nodeset-values |
| 203 | + src_file: values.yaml |
| 204 | + build_output: edpm-r2-networker-nodeset.yaml |
| 205 | + |
| 206 | + - name: edpm-deployment |
| 207 | + path: examples/dt/dz-storage/edpm/deployment |
| 208 | + wait_conditions: |
| 209 | + - >- |
| 210 | + oc -n openstack wait openstackdataplanedeployment |
| 211 | + edpm-deployment |
| 212 | + --for condition=Ready |
| 213 | + --timeout=120m |
| 214 | + values: |
| 215 | + - name: edpm-deployment-values |
| 216 | + src_file: values.yaml |
| 217 | + build_output: edpm-deployment.yaml |
| 218 | + post_stage_run: |
| 219 | + - name: Wait until computes are ready |
| 220 | + type: playbook |
| 221 | + source: "../../playbooks/bgp-l3-computes-ready.yml" |
| 222 | + extra_vars: |
| 223 | + num_computes: 6 |
0 commit comments