[ovs-discuss] Handling conf.db ownership on OVS_USER_ID changes

Ben Pfaff blp at ovn.org
Tue Apr 16 23:31:02 UTC 2019


On Tue, Apr 16, 2019 at 04:11:44PM -0700, Ansis Atteka wrote:
> On Tue, 16 Apr 2019 at 15:36, Jaime Caamaño Ruiz <jcaamano at suse.de> wrote:
> >
> > > On any given system, I would expect ovsdb-server to run as the same
> > > user
> > > every time.  Is there a reason to sometimes use a different user?
> >
> > Well, changing from root which was the only supported option in the
> > past and current default to a different user (like the suggested
> > openvswitch), this one time, might be somewhat common. And the scenario
> > that I am looking at is suporting a pianless upgrade through it.
> 
> Actually debian packages still by default use "root" user. Not "openvswitch".
> 
> Long time ago there was an attempt to change the default user across
> all different flavor packages to openvswitch (you can lookup the patch
> on mailing list). However, as you noticed upgrades are tricky. Hence
> packages built from our debian/rules and rhel/openvswitch.spec.in
> files still use "root" as default user. The packages built with
> rhel/openvswitch-fedora.spec.in are an exception where the user indeed
> is "openvswitch". Unless you passed --without libcapng flag to
> rpmbuild invocation. Then the user would still be "root".
> 
> Here are the difficulties with automating the change of file ownership:

Wow, much harder than I would have guessed too!  Thanks for all the
details.


More information about the discuss mailing list