[ovs-dev] [PATCH 2/2] rhel: Fix ovn database dir optional on first run
Jaime Caamaño Ruiz
jcaamano at suse.com
Mon Jun 10 16:58:12 UTC 2019
OVN database directory is createid on first run so make ownership
handling optional.
Fixes: 94e1e8be3187 ("rhel: run ovn with the same user as ovs")
Signed-off-by: Jaime Caamaño Ruiz <jcaamano at suse.com>
---
rhel/usr_lib_systemd_system_ovn-northd.service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rhel/usr_lib_systemd_system_ovn-northd.service b/rhel/usr_lib_systemd_system_ovn-northd.service
index ff510fbde..ea8c191e3 100644
--- a/rhel/usr_lib_systemd_system_ovn-northd.service
+++ b/rhel/usr_lib_systemd_system_ovn-northd.service
@@ -25,7 +25,7 @@ RemainAfterExit=yes
Environment=OVS_RUNDIR=%t/openvswitch OVS_DBDIR=/var/lib/openvswitch
EnvironmentFile=-/etc/sysconfig/ovn-northd
EnvironmentFile=/run/openvswitch.useropts
-ExecStartPre=/usr/bin/chown -R ${OVS_USER_ID} ${OVS_DBDIR}
+ExecStartPre=-/usr/bin/chown -R ${OVS_USER_ID} ${OVS_DBDIR}
ExecStart=/usr/share/openvswitch/scripts/ovn-ctl \
--ovs-user=${OVS_USER_ID} --ovn-user=${OVS_USER_ID} \
start_northd $OVN_NORTHD_OPTS
--
2.16.4
More information about the dev
mailing list