Skip to content

Commit 7f56558

Browse files
authored
Merge pull request #1379 from rackerlabs/dnsmasq-snponly
fix(ironic): add snponly.efi to the tftp server
2 parents cda8358 + 24e6b87 commit 7f56558

File tree

6 files changed

+6
-25
lines changed

6 files changed

+6
-25
lines changed

.github/workflows/containers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
with:
112112
context: "{{defaultContext}}:containers/dnsmasq"
113113
file: Dockerfile
114-
push: ${{ github.event_name != 'pull_request' }}
114+
push: true
115115
tags: ${{ steps.meta.outputs.tags }}
116116
labels: ${{ steps.meta.outputs.labels }}
117117

components/ironic/dnsmasq-ss.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ spec:
7878
mountPath: /etc/dnsmasq.d
7979
- name: pod-dhcp
8080
mountPath: /var/lib/misc
81-
- name: understack-data
82-
mountPath: /var/lib/understack/
83-
readOnly: true
8481
volumes:
8582
- name: pod-tmp
8683
emptyDir: {}
@@ -90,6 +87,3 @@ spec:
9087
- name: pod-dhcp
9188
persistentVolumeClaim:
9289
claimName: dnsmasq-dhcp
93-
- name: understack-data
94-
persistentVolumeClaim:
95-
claimName: understack-data

components/ironic/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ resources:
77
- ironic-rabbitmq-queue.yaml
88
- dnsmasq-pvc.yaml
99
- dnsmasq-ss.yaml
10-
- understack-data-pvc.yaml
1110
- ironic-ks-user-baremetal.yaml
1211
# less than ideal addition but necessary so that we can have the ironic.conf.d loading
1312
# working due to the way the chart hardcodes the config-file parameter which then

components/ironic/understack-data-pvc.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

components/ironic/values.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ pod:
215215
mountPath: /etc/dnsmasq.d/
216216
- name: dnsmasq-dhcp
217217
mountPath: /var/lib/dnsmasq/
218-
- name: understack-data
219-
mountPath: /var/lib/understack
220218
- name: device-types
221219
mountPath: /var/lib/understack/device-types
222220
- name: ironic-etc-snippets
@@ -229,9 +227,6 @@ pod:
229227
- name: dnsmasq-dhcp
230228
persistentVolumeClaim:
231229
claimName: dnsmasq-dhcp
232-
- name: understack-data
233-
persistentVolumeClaim:
234-
claimName: understack-data
235230
- name: device-types
236231
configMap:
237232
name: device-types

containers/dnsmasq/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apt-get update && apt-get -y install \
1616
pkg-config \
1717
ca-certificates \
1818
quilt \
19+
ipxe \
1920
--no-install-recommends
2021
WORKDIR /src
2122
RUN apt-get -y build-dep dnsmasq
@@ -42,11 +43,14 @@ COPY --from=builder /src/dnsmasq-base_*_amd64.deb /tmp
4243
COPY --from=builder /src/dnsmasq_*_all.deb /tmp
4344

4445
RUN apt-get update && \
45-
apt-get -y install --no-install-recommends python3-jinja2 && \
46+
apt-get -y install --no-install-recommends python3-jinja2 ipxe && \
4647
apt-get -y --fix-broken install --no-install-recommends /tmp/dnsmasq-base_*_amd64.deb /tmp/dnsmasq_*_all.deb && \
4748
apt-get clean && \
4849
rm -rf /var/lib/apt/lists/* /tmp/*.deb
4950

51+
RUN mkdir -p /var/lib/openstack-helm/tftpboot && \
52+
cp /usr/lib/ipxe/snponly.efi /var/lib/openstack-helm/tftpboot/
53+
5054
COPY common/helpers.sh /helpers.sh
5155
COPY dnsmasq/entry-point.sh /entry-point.sh
5256
RUN chmod +x /entry-point.sh

0 commit comments

Comments
 (0)