Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For introduce net-watchdog for dpdk case.
This container periodically checks that vhost0 is up and if it is check that it has IP, if there is no IP then it assign it. This is a qorkaround for now because vhost0 can dissappear any time if dpdk container restarts. For non-dpdk case the vhost0 init actions are done in agent container. Change-Id: I5051b7c1cf123aee0f2b875be1e6c59b5c736486 Partial-Bug: #1743610
- Loading branch information
Showing
16 changed files
with
445 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ARG CONTRAIL_REGISTRY=localhost:5000 | ||
ARG CONTRAIL_CONTAINER_TAG=4.1.0.0-6-centos7-newton | ||
FROM ${CONTRAIL_REGISTRY}/contrail-base:${CONTRAIL_CONTAINER_TAG} | ||
|
||
RUN yum install -y \ | ||
ethtool pciutils initscripts NetworkManager \ | ||
contrail-vrouter-utils \ | ||
yum clean all && \ | ||
rm -rf /var/cache/yum && \ | ||
ldconfig | ||
|
||
COPY entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
LABEL net.juniper.nodemgr.filter.name=contrail-vrouter-network-init | ||
LABEL net.juniper.contrail=agent | ||
LABEL net.juniper.node=agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
source /common.sh | ||
source /agent-functions.sh | ||
|
||
TRACK_VHOST0=${TRACK_VHOST0:-'true'} | ||
TRACK_VHOST0_PAUSE=${TRACK_VHOST0_PAUSE:-5} | ||
|
||
while (true) ; do | ||
|
||
echo "INFO: ip address show:" | ||
ip address show | ||
|
||
init_vhost0 | ||
|
||
if [[ "$TRACK_VHOST0" != 'true' ]] ; then | ||
echo "INFO: TRACK_VHOST0 is $TRACK_VHOST0. Stop stracking." | ||
break | ||
fi | ||
echo "INFO: wait for $TRACK_VHOST0_PAUSE seconds..." | ||
sleep $TRACK_VHOST0_PAUSE | ||
done | ||
|
||
exec $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.