|
| 1 | +--- |
| 2 | +stages: |
| 3 | + - name: TopoLVM Dependencies |
| 4 | + stages: >- |
| 5 | + {{ |
| 6 | + lookup("ansible.builtin.template", |
| 7 | + "common/stages/topolvm-deps-stages.yaml.j2") |
| 8 | + }} |
| 9 | +
|
| 10 | + - name: Dependencies |
| 11 | + stages: >- |
| 12 | + {{ |
| 13 | + lookup("ansible.builtin.template", |
| 14 | + "common/stages/deps-stages.yaml.j2") |
| 15 | + }} |
| 16 | +
|
| 17 | + - name: Cinder LVM |
| 18 | + stages: >- |
| 19 | + {{ |
| 20 | + lookup("ansible.builtin.file", |
| 21 | + "common/stages/cinder-lvm-label-stages.yaml") |
| 22 | + }} |
| 23 | +
|
| 24 | + - name: TopoLVM |
| 25 | + stages: >- |
| 26 | + {{ |
| 27 | + lookup("ansible.builtin.template", |
| 28 | + "common/stages/topolvm-stages.yaml.j2") |
| 29 | + }} |
| 30 | +
|
| 31 | + - name: OLM Openstack |
| 32 | + stages: >- |
| 33 | + {{ |
| 34 | + lookup("ansible.builtin.template", |
| 35 | + "common/stages/olm-openstack-stages.yaml.j2") |
| 36 | + }} |
| 37 | +
|
| 38 | + - name: NodeNetworkConfigurationPolicy (nncp) |
| 39 | + documentation: | |
| 40 | + Apply node network configuration policies to configure host networking. |
| 41 | + Waits for all policies to be successfully configured. |
| 42 | + j2_manifest: manifests/control-plane/networking/nncp.yaml.j2 |
| 43 | + wait_conditions: |
| 44 | + - >- |
| 45 | + oc wait -n openstack nncp -l osp/nncm-config-type=standard |
| 46 | + --for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured |
| 47 | + --timeout=180s |
| 48 | +
|
| 49 | + - name: NetworkAttchmentDefinition (NAD) |
| 50 | + documentation: | |
| 51 | + Create network attachment definitions for OpenStack services. |
| 52 | + Defines additional network interfaces for pods. |
| 53 | + manifest: manifests/control-plane/networking/nad.yaml |
| 54 | + |
| 55 | + - name: MetalLB - L2Advertisement and IPAddressPool |
| 56 | + documentation: | |
| 57 | + Configure MetalLB load balancer with IP address pools and L2 advertisements. |
| 58 | + Enables external access to OpenStack services. |
| 59 | + manifest: manifests/control-plane/networking/metallb.yaml |
| 60 | + |
| 61 | + - name: OpenstackControlPlane |
| 62 | + documentation: | |
| 63 | + Deploy the OpenStack control plane with all core services. |
| 64 | + Waits for the control plane to be fully ready before proceeding. |
| 65 | + j2_manifest: manifests/control-plane/control-plane.yaml.j2 |
| 66 | + wait_conditions: |
| 67 | + - >- |
| 68 | + oc -n openstack wait openstackcontrolplanes.core.openstack.org controlplane |
| 69 | + --for condition=OpenStackControlPlaneDNSReadyCondition --timeout=600s |
| 70 | +
|
| 71 | + - name: Extra DNS LoadBalancer on Ironic network |
| 72 | + documentation: | |
| 73 | + Deploy additional DNS service on the Ironic network for bare metal provisioning. |
| 74 | + Provides DNS resolution for ironic nodes during deployment and inspection. |
| 75 | + manifest: manifests/control-plane/dnsmasq-dns-ironic.yaml |
| 76 | + wait_conditions: |
| 77 | + - >- |
| 78 | + oc wait -n openstack service dnsmasq-dns-ironic |
| 79 | + --for jsonpath='.status.loadBalancer' --timeout=60s |
| 80 | +
|
| 81 | + - name: Wait for OpenstackControlPlane |
| 82 | + documentation: | |
| 83 | + Wait for the OpenStack control plane to be fully ready and operational. |
| 84 | + Ensures all services are running before proceeding with additional configurations. |
| 85 | + wait_conditions: |
| 86 | + - >- |
| 87 | + oc wait -n openstack openstackcontrolplane controlplane |
| 88 | + --for condition=Ready --timeout=30m |
| 89 | +
|
| 90 | + - name: Update openstack-operators OLM |
| 91 | + stages: >- |
| 92 | + {{ |
| 93 | + lookup('ansible.builtin.template', |
| 94 | + 'common/stages/openstack-olm-update.yaml.j2') |
| 95 | + }} |
| 96 | + run_conditions: |
| 97 | + - >- |
| 98 | + {{ |
| 99 | + openstack_operators_update is defined and |
| 100 | + openstack_operators_update | bool |
| 101 | + }} |
| 102 | +
|
| 103 | + - name: Wait for condition MinorUpdateAvailable True |
| 104 | + documentation: | |
| 105 | + Wait for OpenStack version to indicate a minor update is available. |
| 106 | + Required before proceeding with version updates. |
| 107 | + wait_conditions: |
| 108 | + - >- |
| 109 | + oc -n openstack wait openstackversions.core.openstack.org controlplane |
| 110 | + --for=condition=MinorUpdateAvailable=True --timeout=10m |
| 111 | + run_conditions: |
| 112 | + - "{{ openstack_update is defined and openstack_update | bool }}" |
| 113 | + |
| 114 | + - name: "Minor update :: Create OpenStackVersion patch" |
| 115 | + documentation: | |
| 116 | + This creates a patch file `{{ manifests_dir }}/patches/openstack_version_patch.yaml` |
| 117 | + If `openstack_update_custom_images` is defined it will populate the customContainerImages |
| 118 | + in the OpenstackVersion YAML patch. |
| 119 | + shell: >- |
| 120 | + {{ |
| 121 | + lookup('ansible.builtin.template', |
| 122 | + 'common/scripts/create_openstack_version_patch.sh.j2') |
| 123 | + }} |
| 124 | + run_conditions: |
| 125 | + - "{{ openstack_update is defined and openstack_update | bool }}" |
| 126 | + |
| 127 | + - name: "Minor update :: Update the target version in the OpenStackVersion custom resource (CR)" |
| 128 | + documentation: | |
| 129 | + The `hotstack-openstack-version-patch` script will get the `availableVersion` |
| 130 | + and us it to replace the string `__TARGET_VERSION__` in the patch file and |
| 131 | + apply the patch using `oc patch` command. |
| 132 | + command: >- |
| 133 | + hotstack-openstack-version-patch --namespace openstack --name controlplane |
| 134 | + --file {{ manifests_dir }}/patches/openstack_version_patch.yaml |
| 135 | + wait_conditions: |
| 136 | + - oc -n openstack wait openstackversions.core.openstack.org controlplane |
| 137 | + --for=condition=Ready --timeout=10m |
| 138 | + run_conditions: |
| 139 | + - "{{ openstack_update is defined and openstack_update | bool }}" |
0 commit comments