FS#40374 - [openvswitch] needs to create /var/run/openvswitch

Attached to Project: Community Packages
Opened by Giulio Fidente (giulivo) - Thursday, 15 May 2014, 10:50 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 15 May 2014, 14:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
the ovsdb-server service needs /var/run/openvswitch to start, which instead is not created by the package

Additional info:
openvswitch 2.1.2-1

Steps to reproduce:
install the package and run "systemctl start ovsdb-server"
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 15 May 2014, 14:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  added systemd-tmpfiles to .install
Comment by Doug Newgard (Scimmia) - Thursday, 15 May 2014, 12:59 GMT
The package can't create it because /var/run is a symlink to ../run, which is tmpfs. The package does include a tmpfiles entry to create /run/openvswitch, although it may not be formatted correctly (missing a '-'). Can you confirm that systemd-tmpfiles-setup.service ran correctly?
Comment by Giulio Fidente (giulivo) - Thursday, 15 May 2014, 13:19 GMT
hi there, thanks for your quick reply

I investigated a bit into this and as you pointed, tmpfiles-setup should create the needed /run/openvswitch directory (I think you can actually remove the trailing -) ... yet tmpfiles-setup only runs once at boot time so it gets no notifications about new files in tmpfiles.d :(

maybe you could create it via .install script to make sure it is there after the initial package installation and before next reboot? seems a bit of a hack but ... :(
Comment by Doug Newgard (Scimmia) - Thursday, 15 May 2014, 13:21 GMT
Oh, so this is only happening on the original install and fine after a reboot?
Comment by Giulio Fidente (giulivo) - Thursday, 15 May 2014, 14:31 GMT
Confirmed, the directory /run/openvswitch appears after a reboot. The openvswitch.conf seems to work as-is (with the single trailing -) as well as without any trailing -

Loading...