Added missing ovs-wrapped, and added important dir to library path.

This commit is contained in:
Pete Vander Giessen 2018-10-10 20:00:22 +00:00
parent bccd81e4a7
commit 8590e3d3fc
2 changed files with 23 additions and 1 deletions

16
conf/bin/ovs-wrapper Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
export OVS_LOGDIR=${SNAP_COMMON}/log/openvswitch
export OVS_RUNDIR=${SNAP_COMMON}/run/openvswitch
export OVS_SYSCONFDIR=${SNAP_COMMON}/etc
export OVS_PKGDATADIR=${SNAP}/share/openvswitch
export OVS_BINDIR=${SNAP}/bin
export OVS_SBINDIR=${SNAP}/sbin
mkdir -p ${OVS_LOGDIR}
mkdir -p ${OVS_RUNDIR}
mkdir -p ${OVS_SYSCONFDIR}/openvswitch
exec $@

View File

@ -8,7 +8,7 @@ description: |
grade: devel
confinement: classic
environment:
LD_LIBRARY_PATH: $SNAP/lib:$SNAP/usr/lib
LD_LIBRARY_PATH: $SNAP/lib:$SNAP/usr/lib:$SNAP/usr/lib/x86_64-linux-gnu
PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH
LC_ALL: C
OS_PLACEMENT_CONFIG_DIR: $SNAP/etc/nova/
@ -372,6 +372,12 @@ parts:
echo
done
ovs-wrapper:
source: conf
plugin: dump
after:
- openvswitch
# Openstack Shared Parts
templates:
after: [keystone, nova, neutron, openvswitch]