Skip to content

Commit

Permalink
Fix owner of the /var/lib/openstack created by the neutron_dhcp role
Browse files Browse the repository at this point in the history
This directory may be created by libvirt role or neutron_dhcp role and
it had wrong owner set (root) when was created by edpm_neutron_dhcp
role. Because of that edpm_libvirt role which was run after
edpm_neutron_dhcp was failing due to permission error to access
/var/lib/openstack/config/ directory.
  • Loading branch information
slawqo committed Oct 10, 2023
1 parent 0e47f51 commit e0a6307
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/edpm_neutron_dhcp/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
path: "{{ item.path }}"
setype: "container_file_t"
state: directory
owner: "{{ item.owner | default(ansible_user) }}"
group: "{{ item.group | default(ansible_user) }}"
mode: "{{ item.mode | default(omit) }}"
loop:
- {'path': "/var/lib/openstack/config/containers", "mode": "0750" }
- {'path': "/var/lib/neutron", "mode": "0750" }
- {'path': "{{ edpm_neutron_dhcp_agent_config_dir }}", "mode": "0755" }
- {'path': "/var/log/containers/stdouts"}
- {'path': "/var/log/containers/neutron"}
- {'path': "/var/log/containers/stdouts", "mode": "0755" }
- {'path': "/var/log/containers/neutron", "mode": "0755" }
tags:
- install
- neutron
Expand Down

0 comments on commit e0a6307

Please sign in to comment.