Dear OVS gurus, While tweaking the dbdir param in OVS build, I hit an issue [bug] that affects how OVS start scripts handle the creation of file system-id.conf.
The issue is that ovs-ctl script is assuming that the directory [etcdir] would have been created as part of dbdir [dbdir], but in this case, that is just not true. I took a stab at fixing it here [patchWorks], mostly by taking a crash course on automake [am] and changes that Ben did for dbdir [dbdiradd], back in 2012. So, I would like very much to hear from you if that is the proper approach. Thanks, -- flaviof [etcdir]: https://github.com/openvswitch/ovs/blob/7e96dff2c3e1069178c6a1be3e7b99c45fd3302d/utilities/ovs-lib.in#L26 [dbdir]: https://github.com/openvswitch/ovs/blob/7e96dff2c3e1069178c6a1be3e7b99c45fd3302d/utilities/ovs-lib.in#L35 [bug]: $ ./boot.sh && \ ./configure --with-dbdir=/tmp/dbdir \ --prefix=/usr --localstatedir=/var --sysconfdir=/etc && \ make -j$(nproc) && \ sudo make install && \ echo ok $ sudo cp ./debian/openvswitch-switch.init /etc/init.d/openvswitch-switch $ sudo /etc/init.d/openvswitch-switch start * Inserting openvswitch module * /tmp/dbdir/conf.db does not exist * Creating empty database /tmp/dbdir/conf.db * Starting ovsdb-server /usr/share/openvswitch/scripts/ovs-ctl: 96: /usr/share/openvswitch/scripts/ovs-ctl: cannot create /etc/openvswitch/system-id.conf: Directory nonexistent * Configuring Open vSwitch system IDs * Starting ovs-vswitchd * Enabling remote OVSDB managers $ [patchWorks]: http://openvswitch.org/pipermail/dev/2016-September/079421.html [am]: https://en.wikipedia.org/wiki/Automake [dbdiradd]: git show c3bf5498 git show f973f2af2
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss