Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438862 - net-misc/openvswitch requires write access to /etc
Summary: net-misc/openvswitch requires write access to /etc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-18 21:53 UTC by Andreas Steinmetz
Modified: 2013-04-08 19:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Steinmetz 2012-10-18 21:53:57 UTC
openvswitch requires write access to /etc which is not sensible. /etc may be on a ro mounted root (in my case a ro mounted ssd). If lock files and suchlike stuff is required /etc is the wrong place, /var should be used instead.

Examples:

/etc/openvswitch/.conf.db.tmp.~lock~
/etc/openvswitch/.conf.db.~lock~
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-19 15:00:39 UTC
--with-pkidir=/etc/openvswitch/pki
Comment 2 Spooky Ghost 2013-02-12 08:46:00 UTC
/etc/openvswitch is the default location for the configuration database and (I assume) the lock files need to reside on the same filesystem as conf.db.  Can you run ovsdb-server with an alternate database path to suit your environment with a r/o /etc?  It doesn't seem appropriate to move configuration data to /var by default.
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2013-02-12 08:53:03 UTC
I guess we should move it to /var/db/openvswitch since upstream describes the configuration files as database anyway.
Any objections?
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2013-04-08 19:38:56 UTC
Fixed in version bump to 1.9.0 by moving the configuration database to /var/lib/openvswitch