From 5ade3f6a87a63cf5c4a5a84327d436fb7a1a7fab Mon Sep 17 00:00:00 2001 From: Gary Perkins Date: Thu, 4 Oct 2018 12:57:05 +0100 Subject: Fixed file modes in toolbox:/usr/share/ansible Sometimes, when deploying with user root, the local repo has files of mode 0600. This has been found to cause "Permission denied" errors when deploying Glance. This little fix is to explicitly set a more permissive file mode on those files to allow the deployment of Glance to setup it's service and endpoints. Change-Id: I30ea6898e7bf1b6713cb41656420e8d515be224e Signed-off-by: Gary Perkins --- docker/kolla-toolbox/Dockerfile.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docker') diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2 index 0fc920ada..4a1b31891 100644 --- a/docker/kolla-toolbox/Dockerfile.j2 +++ b/docker/kolla-toolbox/Dockerfile.j2 @@ -100,6 +100,11 @@ ENV ANSIBLE_LIBRARY /usr/share/ansible:$ANSIBLE_LIBRARY COPY find_disks.py kolla_keystone_service.py kolla_keystone_user.py kolla_sanity.py /usr/share/ansible/ COPY ansible.cfg /var/lib/ansible/.ansible.cfg +RUN chmod 644 /usr/share/ansible/find_disks.py \ + /usr/share/ansible/kolla_keystone_service.py \ + /usr/share/ansible/kolla_keystone_user.py \ + /usr/share/ansible/kolla_sanity.py \ + /var/lib/ansible/.ansible.cfg COPY ansible_sudoers /etc/sudoers.d/kolla_ansible_sudoers RUN chmod 440 /etc/sudoers.d/kolla_ansible_sudoers -- cgit v1.2.3