This patch adds documentation for running v1 FT locally on a multi-node system similar to Zuul. The porpose of this change is to encourage users to test Tacker v1 features on local since most of v1 features are not under active development anymore and planned to be moved to periodic jobs or dropped from zuul tests. Five test scenarios are supported in this change as a first step. * tacker-ft-legacy-vim * tacker-ft-v1-vnfpkgm * tacker-ft-v1-k8s * tacker-ft-v1-tosca-vnflcm * tacker-ft-v1-userdata-vnflcm It also provides sample DevStack configuration files, setup scripts and `local.conf.HOSTNAME`. Implements: blueprint reduce-ft-time Co-Authored-By: Ai Hamaho <ai.hamano@ntt-at.co.jp> Co-Authored-By: Yasufumi Ogawa <yasufum.o@gmail.com> Change-Id: Id0debea403ccb9490da14b1a77c89ff7b42ee178
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
#!/bin/sh
|
|
# openstack-controller-tacker.sh
|
|
|
|
CONTROLLER_IP_ADDRESS="192.168.56.11"
|
|
OS_AUTH_URL="http://${CONTROLLER_IP_ADDRESS}/identity"
|
|
|
|
### Change the IP address of the file local-vim.yaml
|
|
if [ -f "tacker/samples/tests/etc/samples/local-vim.yaml" ]
|
|
then
|
|
cp -p tacker/samples/tests/etc/samples/local-vim.yaml tacker/samples/tests/etc/samples/local-vim.yaml_bk
|
|
sed -i "s/auth_url:\ http:\/\/127.0.0.1\/identity/auth_url:\ http:\/\/${CONTROLLER_IP_ADDRESS}\/identity/" tacker/samples/tests/etc/samples/local-vim.yaml
|
|
else
|
|
echo "the file tacker/samples/tests/etc/samples/local-vim.yaml is not exist."
|
|
fi
|
|
|
|
### Register the default VIM
|
|
if [ -d "${HOME}/tacker" ]
|
|
then
|
|
cd "${HOME}/tacker" || exit
|
|
else
|
|
echo "the directory ${HOME}/tacker is not exist."
|
|
fi
|
|
openstack vim register \
|
|
--os-username nfv_user \
|
|
--os-project-name nfv \
|
|
--os-password devstack \
|
|
--os-auth-url "${OS_AUTH_URL}" \
|
|
--os-project-domain-name Default \
|
|
--os-user-domain-name Default \
|
|
--is-default \
|
|
--description "Default VIM" \
|
|
--config-file /opt/stack/tacker/samples/tests/etc/samples/local-vim.yaml \
|
|
VIM0
|
|
|
|
# echo "End shell script ${0}"
|