File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,9 +19,6 @@ COMMAND="${@:-start}"
1919{{- if and (.Values.bootstrap.object_store.enabled) (.Values.bootstrap.object_store.openstack.enabled) }}
2020OPTIONS=" --config-file /tmp/pod-shared/swift.conf"
2121{{- end }}
22- {{- if and (.Values.bootstrap.network.enabled) (.Values.bootstrap.network.openstack.enabled) }}
23- OPTIONS=" ${OPTIONS} --config-file /tmp/pod-shared/cleaning-network.conf"
24- {{- end }}
2522
2623function start () {
2724 exec ironic-api \
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ mkdir -p /var/lib/openstack-helm/ironic/master_images
2222{{- if and (.Values.bootstrap.object_store.enabled) (.Values.bootstrap.object_store.openstack.enabled) }}
2323OPTIONS=" --config-file /tmp/pod-shared/swift.conf"
2424{{- end }}
25- {{- if and (.Values.bootstrap.network.enabled) (.Values.bootstrap.network.openstack.enabled) }}
26- OPTIONS=" ${OPTIONS} --config-file /tmp/pod-shared/cleaning-network.conf"
27- {{- end }}
2825
2926exec ironic-conductor \
3027 --config-file /etc/ironic/ironic.conf \
Load diff This file was deleted.
Original file line number Diff line number Diff line change 3030{{- end }}
3131 manage-cleaning-network.sh : |
3232{{ tuple "bin/_manage-cleaning-network.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
33- retreive-cleaning-network.sh : |
34- {{ tuple "bin/_retreive-cleaning-network.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
3533 retreive-swift-config.sh : |
3634{{ tuple "bin/_retreive-swift-config.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
3735 db-drop.py : |
Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ limitations under the License.
188188{{- $_ := set .Values.conf.ironic.swift "password" .Values.endpoints.identity.auth.ironic.password -}}
189189{{- end -}}
190190
191- {{- if empty .Values.conf.ironic.conductor.api_url -}}
192- {{- $_ := tuple "baremetal" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.conductor "api_url" -}}
191+ {{- if empty .Values.conf.ironic.neutron.cleaning_network -}}
192+ {{- $_ := set .Values.conf.ironic.neutron "cleaning_network" (default "" .Values.network.pxe.neutron_network_name) -}}
193193{{- end -}}
194194
195195{{- if empty .Values.conf.ironic.api.public_endpoint -}}
@@ -220,6 +220,10 @@ limitations under the License.
220220{{- $formatter_fluent := dict "class" "oslo_log.formatters.FluentFormatter" -}}
221221{{- $_ := set .Values.conf.logging "formatter_fluent" $formatter_fluent -}}
222222{{- end -}}
223+
224+ {{- if empty .Values.conf.ironic.keystone_authtoken.auth_uri -}}
225+ {{- $_ := tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.ironic.keystone_authtoken "auth_uri" -}}
226+ {{- end -}}
223227---
224228apiVersion : v1
225229kind : Secret
Original file line number Diff line number Diff line change 7979 readOnly : true
8080 - name : pod-shared
8181 mountPath : /tmp/pod-shared
82- {{- end }}
83- {{- if and (.Values.bootstrap.network.enabled) (.Values.bootstrap.network.openstack.enabled) }}
84- - name : ironic-retrive-cleaning-net
85- {{ tuple $envAll "ironic_retrive_cleaning_network" | include "helm-toolkit.snippets.image" | indent 10 }}
86- {{ tuple $envAll $envAll.Values.pod.resources.conductor | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
87- env :
88- {{- with $env := dict "ksUserSecret" .Values.secrets.identity.ironic }}
89- {{- include "helm-toolkit.snippets.keystone_openrc_env_vars" $env | indent 12 }}
90- {{- end }}
91- {{ include "helm-toolkit.utils.to_k8s_env_vars" $envAll.Values.network.pxe | indent 12 }}
92- command :
93- - /tmp/retreive-cleaning-network.sh
94- volumeMounts :
95- - name : pod-tmp
96- mountPath : /tmp
97- - name : ironic-bin
98- mountPath : /tmp/retreive-cleaning-network.sh
99- subPath : retreive-cleaning-network.sh
100- readOnly : true
101- - name : pod-shared
102- mountPath : /tmp/pod-shared
10382{{- end }}
10483 containers :
10584 - name : ironic-api
Original file line number Diff line number Diff line change @@ -142,27 +142,6 @@ spec:
142142 readOnly : true
143143 - name : pod-shared
144144 mountPath : /tmp/pod-shared
145- {{- end }}
146- {{- if and (.Values.bootstrap.network.enabled) (.Values.bootstrap.network.openstack.enabled) }}
147- - name : ironic-retrive-cleaning-net
148- {{ tuple $envAll "ironic_retrive_cleaning_network" | include "helm-toolkit.snippets.image" | indent 10 }}
149- {{ tuple $envAll $envAll.Values.pod.resources.conductor | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
150- env :
151- {{- with $env := dict "ksUserSecret" .Values.secrets.identity.ironic }}
152- {{- include "helm-toolkit.snippets.keystone_openrc_env_vars" $env | indent 12 }}
153- {{- end }}
154- {{ include "helm-toolkit.utils.to_k8s_env_vars" $envAll.Values.network.pxe | indent 12 }}
155- command :
156- - /tmp/retreive-cleaning-network.sh
157- volumeMounts :
158- - name : pod-tmp
159- mountPath : /tmp
160- - name : ironic-bin
161- mountPath : /tmp/retreive-cleaning-network.sh
162- subPath : retreive-cleaning-network.sh
163- readOnly : true
164- - name : pod-shared
165- mountPath : /tmp/pod-shared
166145{{- end }}
167146 {{- with .Values.conductor.initContainers }}
168147 {{- tpl (toYaml .) $ | nindent 8 }}
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ labels:
3434images :
3535 tags :
3636 ironic_manage_cleaning_network : quay.io/airshipit/openstack-client:2025.1-ubuntu_noble
37- ironic_retrive_cleaning_network : quay.io/airshipit/openstack-client:2025.1-ubuntu_noble
3837 ironic_retrive_swift_config : quay.io/airshipit/openstack-client:2025.1-ubuntu_noble
3938 # Bootstrap image requires curl
4039 bootstrap : quay.io/airshipit/openstack-client:2025.1-ubuntu_noble
@@ -329,10 +328,6 @@ bootstrap:
329328 source : tinyipa-stable-wallaby.vmlinuz
330329 disk_format : aki
331330 container_format : aki
332- network :
333- enabled : true
334- openstack :
335- enabled : true
336331 object_store :
337332 enabled : true
338333 openstack :
Original file line number Diff line number Diff line change 1+ ---
2+ ironic :
3+ - |
4+ Drop the retrive-cleaning-network init container as it was only setting a
5+ deprecated option and the script it ran gave less feedback to the user than
6+ the built in check inside of Ironic. With the future of Ironic standalone
7+ networking this option will make even less sense so allow the default
8+ behavior of looking up the name in Ironic.
9+ ...
You can’t perform that action at this time.
0 commit comments