]> git.proxmox.com Git - mirror_ovs.git/commit
rhel: Fix reload of OVS_USER_ID on startup.
authorJaime Caamaño Ruiz <jcaamano@suse.com>
Tue, 12 May 2020 16:38:20 +0000 (18:38 +0200)
committerIlya Maximets <i.maximets@ovn.org>
Tue, 15 Sep 2020 20:47:08 +0000 (22:47 +0200)
commit9d15c02a8bf9cc732cce33012bd1577758260521
treea122955f22e8df9a1407d0e46a2ddde98a6aaaa3
parent0287f840e8b7ab0947ba6f7397c310a652a831d8
rhel: Fix reload of OVS_USER_ID on startup.

OVS_USER_ID was being picked up from a previously existing
openvswitch.useropts rendering innefective any configuration change
through sysconfig.

There is no ordering between Exec* and Environment* stanzas of systemd,
full Enviroment* is always loaded before each Exec*. We make
sure that openvswitch.useropts is removed in a first Exec so that a
fresh OVS_USER_ID can be picked up from config in successive Exec*.

Fixes: 94e1e8b ("rhel: run ovn with the same user as ovs")
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com>
Acked-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
rhel/usr_lib_systemd_system_ovsdb-server.service