Package: openvswitch-switch
Version: 2.1.0+git20140411-1
Openvswitch-switch (amd64) install will hang due to a missing directory. This
occurred on the previous version dated 0325 as well. The user will see the
following output during the install:
Setting up openvswitch-common (2.1.0+git20140411-1) ...
Setting up openvswitch-switch (2.1.0+git20140411-1) ...
Inserting openvswitch module.
/etc/openvswitch/conf.db does not exist ... (warning).
ovsdb-tool: I/O error: /etc/openvswitch/conf.db: failed to lock lockfile (No
such file or directory) Creating empty database /etc/openvswitch/conf.db ...
failed!
The install will then appear to hang. After investigating it appears that the
postinst script is looking for the directory /var/lib/openvswitch, but it does
not exist. The previous versions of the postinst script had the following:
case "$1" in
configure)
mkdir -p /var/lib/openvswitch
DEFAULT=/etc/default/openvswitch-switch
TEMPLATE=/usr/share/openvswitch/switch/default.template
The mkdir line is missing from the 2.1.0 version. I added this line and the
install was successful on a fresh system:
Setting up openvswitch-common (2.1.0+git20140411-1) ...
Setting up openvswitch-switch (2.1.0+git20140411-1) ...
Inserting openvswitch module.
/etc/openvswitch/conf.db does not exist ... (warning).
Creating empty database /etc/openvswitch/conf.db.
Starting ovsdb-server.
Configuring Open vSwitch system IDs.
Starting ovs-vswitchd.
Enabling remote OVSDB managers.
I suggest adding the mkdir line back in to the postinst script.
Thanks,
Josh
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev