Remove config-internal for openvswitch
Change-Id: I4b8f275b670a1ac3b72b2af34b53bddca4a63cb2 Partially-Implements: blueprint remove-config-internal
This commit is contained in:
parent
a5e907a8e9
commit
3cfd5265ae
@ -1,8 +1,7 @@
|
|||||||
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%ovs-base:%%KOLLA_TAG%%
|
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%ovs-base:%%KOLLA_TAG%%
|
||||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
COPY ./start.sh /start.sh
|
COPY start.sh /
|
||||||
|
COPY config-external.sh /opt/kolla/
|
||||||
COPY config-internal.sh config-external.sh /opt/kolla/
|
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
CMD ["/start.sh"]
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../../../../common/openvswitch/ovs-db-server/config-internal.sh
|
|
@ -1,8 +1,7 @@
|
|||||||
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%ovs-base:%%KOLLA_TAG%%
|
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%ovs-base:%%KOLLA_TAG%%
|
||||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
COPY ./start.sh /start.sh
|
COPY start.sh /
|
||||||
|
COPY ovs_ensure_configured.sh config-external.sh /opt/kolla/
|
||||||
COPY ovs_ensure_configured.sh config-internal.sh config-external.sh /opt/kolla/
|
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
CMD ["/start.sh"]
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../../../../common/openvswitch/ovs-vswitchd/config-internal.sh
|
|
@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
|
|
||||||
check_required_vars OVS_DB_FILE \
|
|
||||||
OVS_UNIXSOCK
|
|
||||||
|
|
||||||
|
|
||||||
mkdir -p "$(dirname $OVS_UNIXSOCK)"
|
|
||||||
|
|
||||||
if [[ ! -e "${OVS_DB_FILE}" ]]; then
|
|
||||||
ovsdb-tool create "${OVS_DB_FILE}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec ovsdb-server $OVS_DB_FILE -vconsole:emer -vsyslog:err -vfile:info --remote=punix:"${OVS_UNIXSOCK}" --log-file="${OVS_LOG_FILE}"
|
|
@ -13,7 +13,7 @@ ARGS="$DB_FILE -vconsole:emer -vsyslog:err -vfile:info --remote=punix:${UNIXSOCK
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Config-internal script exec out of this function, it does not return here.
|
# Execute config strategy
|
||||||
set_configs
|
set_configs
|
||||||
|
|
||||||
mkdir -p "${UNIXSOCK_DIR}"
|
mkdir -p "${UNIXSOCK_DIR}"
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
|
|
||||||
check_required_vars OVS_UNIXSOCK
|
|
||||||
|
|
||||||
modprobe openvswitch
|
|
||||||
|
|
||||||
mkdir -p "$(dirname $OVS_UNIXSOCK)"
|
|
||||||
|
|
||||||
exec ovs-vswitchd unix:"${OVS_UNIXSOCK}" -vconsole:emer -vsyslog:err -vfile:info --mlockall --log-file="${OVS_LOG_FILE}"
|
|
||||||
|
|
@ -10,7 +10,7 @@ ARGS="unix:${UNIXSOCK} -vconsole:emer -vsyslog:err -vfile:info --mlockall --log-
|
|||||||
# Loading common functions.
|
# Loading common functions.
|
||||||
source /opt/kolla/kolla-common.sh
|
source /opt/kolla/kolla-common.sh
|
||||||
|
|
||||||
# Config-internal script exec out of this function, it does not return here.
|
# Execute config strategy
|
||||||
set_configs
|
set_configs
|
||||||
|
|
||||||
modprobe openvswitch
|
modprobe openvswitch
|
||||||
|
@ -502,12 +502,11 @@ In order for each service to function, there is a minimum set of required variab
|
|||||||
|
|
||||||
# Ovs-db-server
|
# Ovs-db-server
|
||||||
|
|
||||||
OVS_DB_FILE
|
None
|
||||||
OVS_UNIXSOCK
|
|
||||||
|
|
||||||
# Ovs-vswitchd
|
# Ovs-vswitchd
|
||||||
|
|
||||||
OVS_UNIXSOCK
|
None
|
||||||
|
|
||||||
# Rabbitmq
|
# Rabbitmq
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user