Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add shared volume for side-car wrapper locks
Browse files Browse the repository at this point in the history
The lock used in the wrapper is under /var/lock in the container which
is not shared with the host so the sync script never waits for the
wrapper to be done. Moving the lock file to a path on a shared mount in
the container seems to solve that particular race.

Partial-bug: #1874470

Change-Id: Iaa3a19bc47241e6eb686d65c1a198ec69505398e
Signed-off-by: Bogdan Dobrelya <[email protected]>
  • Loading branch information
bogdando committed Apr 29, 2020
1 parent 5d1108d commit 1517df0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployment/neutron/neutron-dhcp-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ outputs:
- /var/lib/neutron:/var/lib/neutron:shared,z
- /run/netns:/run/netns:shared
- /var/lib/neutron/kill_scripts:/etc/neutron/kill_scripts:shared,z
- /var/lock/containers:/var/lock:shared,z
-
if:
- docker_enabled
Expand Down Expand Up @@ -410,6 +411,12 @@ outputs:
path: /var/lib/neutron
state: directory
setype: container_file_t
- - name: create /var/lock/containers
file:
path: /var/lock/containers
state: directory
mode: '0750'
setype: container_file_t
- - name: enable virt_sandbox_use_netlink for healtcheck
seboolean:
name: virt_sandbox_use_netlink
Expand Down
7 changes: 7 additions & 0 deletions deployment/neutron/neutron-l3-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ outputs:
- /var/lib/neutron:/var/lib/neutron:shared,z
- /run/netns:/run/netns:shared
- /var/lib/neutron/kill_scripts:/etc/neutron/kill_scripts:shared,z
- /var/lock/containers:/var/lock:shared,z
-
if:
- docker_enabled
Expand Down Expand Up @@ -351,6 +352,12 @@ outputs:
path: /var/lib/neutron
state: directory
setype: container_file_t
- - name: create /var/lock/containers
file:
path: /var/lock/containers
state: directory
mode: '0750'
setype: container_file_t
- - name: enable virt_sandbox_use_netlink for healtcheck
seboolean:
name: virt_sandbox_use_netlink
Expand Down
7 changes: 7 additions & 0 deletions deployment/ovn/ovn-metadata-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ outputs:
- /var/lib/neutron:/var/lib/neutron:shared,z
- /run/netns:/run/netns:shared
- /var/lib/neutron/kill_scripts:/etc/neutron/kill_scripts:shared,z
- /var/lock/containers:/var/lock:shared,z
-
if:
- docker_enabled
Expand Down Expand Up @@ -362,4 +363,10 @@ outputs:
path: /var/lib/neutron
state: directory
setype: container_file_t
- - name: create /var/lock/containers
file:
path: /var/lock/containers
state: directory
mode: '0750'
setype: container_file_t
upgrade_tasks: []

0 comments on commit 1517df0

Please sign in to comment.