From df78b6a3c6b3f9f7f60ed6638c79beea24089bcd Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Tue, 13 Sep 2022 08:19:09 +0200 Subject: [PATCH] Ensure /run/frr is present after (re)boot The frr container needs /run/frr to allow the host and adjiacent containers to interact with FRR via vtysh. This commit adds a tmpfiles entry to ensure this directory is created at boot time if /run is on tmpfs like in recent rhel/centos. Change-Id: I462eca8eb35bfcf118e8e44e023bbebbfcc281ef --- deployment/frr/frr-container-ansible.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deployment/frr/frr-container-ansible.yaml b/deployment/frr/frr-container-ansible.yaml index f89b776109..1af4c958ca 100644 --- a/deployment/frr/frr-container-ansible.yaml +++ b/deployment/frr/frr-container-ansible.yaml @@ -424,6 +424,11 @@ outputs: - { 'path': /run/frr, 'setype': container_file_t, 'mode': '0750' } - { 'path': /var/log/containers/ovn-bgp-agent, 'setype': container_file_t, 'mode': '0750' } - { 'path': /var/lib/config-data/ansible-generated/ovn-bgp-agent, 'setype': container_file_t, 'mode': '0750' } + - name: ensure /run/frr is present upon reboot + copy: + dest: /etc/tmpfiles.d/run-frr.conf + content: | + d /run/frr 0750 root root - - pre_deploy_step_tasks: - name: Configure FRR import_role: