diff options
| author | Mark Goddard <mark@stackhpc.com> | 2019-06-07 18:49:46 +0100 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2019-06-09 17:36:14 +0100 |
| commit | 41bcd7b4961fd52066b79804fdce9f81cc129735 (patch) | |
| tree | 7865defb8e15336f03ab0a43f0fe565ded6e95c4 /docker | |
| parent | 498c57fcac31da9268918ec6c188fe2aae0c4906 (diff) | |
| download | kolla-41bcd7b4961fd52066b79804fdce9f81cc129735.tar.gz kolla-41bcd7b4961fd52066b79804fdce9f81cc129735.zip | |
Fix ownership of ironic inspector DHCP hostsdir
If you run with enable_ironic set to true and
ironic_inspector_pxe_filter set to dnsmasq (the default in stein),
ironic inspector can fail with the following in the logs:
Permission denied: u'/var/lib/ironic-inspector/dhcp-hostsdir/<MAC address>'
A node must be registered with a port for this to happen.
Weirdly this happens on centos/source, ubuntu/source, and ubuntu/binary,
but not centos/binary.
This change changes the ownership of
/var/lib/ironic-inspector/dhcp-hostsdir to ironic-inspector user to make
it writeable.
Change-Id: I19447727f19dbd9c0a3e17d218b48ddc4c253587
Closes-Bug: #1832026
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/ironic-inspector/Dockerfile.j2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/ironic-inspector/Dockerfile.j2 b/docker/ironic-inspector/Dockerfile.j2 index 1adc917a7..b1d48a997 100644 --- a/docker/ironic-inspector/Dockerfile.j2 +++ b/docker/ironic-inspector/Dockerfile.j2 @@ -48,7 +48,8 @@ RUN chmod 750 /etc/sudoers.d \ COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN chmod 755 /usr/local/bin/kolla_extend_start \ - && chown -R ironic-inspector: /etc/ironic-inspector + && mkdir -p /var/lib/ironic-inspector/dhcp-hostsdir \ + && chown -R ironic-inspector: /etc/ironic-inspector /var/lib/ironic-inspector {% block ironic_inspector_footer %}{% endblock %} {% block footer %}{% endblock %} |
