Skip to content

Commit a9c94ab

Browse files
committed
openvswitch: Fix logs dir permission
Closes-Bug: #1795609 Change-Id: Iedfb2df027c0cefc45668a76d45ce62193aba9ef
1 parent 744ba3b commit a9c94ab

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

docker/openvswitch/openvswitch-base/extend_start.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ if [[ $(stat -c %a /var/log/kolla/openvswitch) != "755" ]]; then
77
chmod 755 /var/log/kolla/openvswitch
88
fi
99

10+
chown -R openvswitch:openvswitch /var/log/kolla/openvswitch
11+
1012
. /usr/local/bin/kolla_openvswitch_extend_start

docker/openvswitch/openvswitch-db-server/extend_start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ fi
88
if [[ $(ovsdb-tool needs-conversion /var/lib/openvswitch/conf.db) == yes ]]; then
99
ovsdb-tool convert "/var/lib/openvswitch/conf.db"
1010
fi
11+
12+
if [[ ! -r "/var/log/kolla/openvswitch/ovsdb-server.log" ]]; then
13+
touch /var/log/kolla/openvswitch/ovsdb-server.log
14+
chown openvswitch:openvswitch /var/log/kolla/openvswitch/ovsdb-server.log
15+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/bin/bash
22

3+
if [[ ! -r "/var/log/kolla/openvswitch/ovs-vswitchd.log" ]]; then
4+
touch /var/log/kolla/openvswitch/ovs-vswitchd.log
5+
chown openvswitch:openvswitch /var/log/kolla/openvswitch/ovs-vswitchd.log
6+
fi
7+
38
modprobe openvswitch

0 commit comments

Comments
 (0)