Ask Your Question
0

SFC Functest is not working

asked 2017-08-23 06:53:55 -0700

amernet gravatar image

Hello! I'm testing OPNFV 3.0. Danube (fuel installer) with Opendaylight, SFC and Tacker plugins (1 Controller + 1 Compute). I faced with several issues when I tried to implement SFC-ODL test from here: https://wiki.opnfv.org/display/sfc/OP...

1) I launched docker container on Controller node (it has access to fuel installer host and all openstack and opendaylight services), but after I ran "functest env prepare" I received errors:

root@node-11:~# docker run --privileged=true -id -e INSTALLERTYPE=fuel -e INSTALLERIP=10.10.70.124 -e DEPLOYSCENARIO=os-odll2-sfc-ha -e CIDEBUG=true --name sfc opnfv/functest:stable
528952df2ee3861d7f6aa6829ff82f7cec3910c7f31d0e6af2ecd89a930f7743
root@node-11:~# docker exec -ti sfc bash
root@528952df2ee3:~#
root@528952df2ee3:~#
root@528952df2ee3:~# functest env prepare
2017-08-23 13:42:40,918 - functestutils - DEBUG - Executing command: 'python /home/opnfv/repos/functest/functest/ci/prepareenv.py start'
2017-08-23 13:42:42,056 - prepareenv - INFO - ######### Preparing Functest environment #########
2017-08-23 13:42:42,056 - prepareenv - INFO - ==============================================
2017-08-23 13:42:42,056 - prepareenv - INFO - Checking environment variables...
2017-08-23 13:42:42,056 - prepareenv - INFO -     INSTALLERTYPE=fuel
2017-08-23 13:42:42,056 - prepareenv - INFO -     INSTALLERIP=10.10.70.124
2017-08-23 13:42:42,057 - prepareenv - INFO -     DEPLOYSCENARIO=os-odll2-sfc-ha
2017-08-23 13:42:42,057 - prepareenv - INFO -     CIDEBUG=true
2017-08-23 13:42:42,057 - prepareenv - INFO -     NODENAME=unknownpod
2017-08-23 13:42:45,783 - prepareenv - INFO - ==============================================
2017-08-23 13:42:45,783 - prepareenv - INFO - Creating needed directories...
2017-08-23 13:42:45,783 - prepareenv - DEBUG -    /home/opnfv/functest/conf already exists.
2017-08-23 13:42:45,783 - prepareenv - DEBUG -    /home/opnfv/functest/data already exists.
2017-08-23 13:42:45,784 - prepareenv - INFO - ==============================================
2017-08-23 13:42:45,784 - prepareenv - INFO - Fetching RC file...
2017-08-23 13:42:45,784 - prepareenv - INFO - RC file not provided. Fetching it from the installer...
2017-08-23 13:42:45,784 - prepareenv - DEBUG - Executing command: /home/opnfv/repos/releng/utils/fetchoscreds.sh -d /home/opnfv/functest/conf/openstack.creds -i fuel -a 10.10.70.124
/home/opnfv/repos/releng/utils/fetchoscreds.sh: line 77: BRANCH: unbound variable
2017-08-23 13:42:45,793 - prepare_env - DEBUG -

2017-08-23 13:42:45,794 - prepareenv - ERROR - Failed to fetch credentials from installer. 2017-08-23 13:42:46,111 - functestutils - ERROR - The command 'python /home/opnfv/repos/functest/functest/ci/prepare_env.py start' failed. root@528952df2ee3:~#

I resolved this error by creating file /home/opnfv/functest/conf/openstack.creds manually and copying contents of opnrc file to it.

2) After that "functest env prepare" ran fine, but when I tried to run "functest testcase run odl-sfc" I received this (a part of the log):

2017-08-23 13:48:27,822 - openstacksnapshot - DEBUG - NOTE: These objects will NOT be deleted after running the test.
2017-08-23 13:48:27,973 - functestutils - DEBUG - Executing command: 'cd /home/opnfv/repos/sfc/sfc/tests/functest && python ./runtests.py'
2017-08-23 13:49:29,545 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-08-25 01:32:38 -0700

mbuil gravatar image

Seems like a problem in functest. Can you ping 10.10.70.124 from the container?

edit flag offensive delete link more

Comments

Yes, I can ping it from docker container.

amernet ( 2017-08-27 23:36:23 -0700 )edit
0

answered 2017-08-25 01:58:15 -0700

I am not a sfc expert could you check that the creds are correct, as you created the file manually, they be OK for env preparation but not for SFC fuel/SFC was fully OK on Danube 3.0 CI https://build.opnfv.org/ci/view/funct...

2017-07-12 15:02:57,285 - main - INFO - OS credentials: 2017-07-12 15:02:57,285 - main - INFO - OSAUTHSTRATEGY=keystone 2017-07-12 15:02:57,285 - main - INFO - OSREGIONNAME=RegionOne 2017-07-12 15:02:57,285 - main - INFO - OSPROJECTDOMAINNAME=Default 2017-07-12 15:02:57,286 - main - INFO - OSDEFAULTDOMAIN=default 2017-07-12 15:02:57,286 - main - INFO - OSNOCACHE=true 2017-07-12 15:02:57,286 - main - INFO - OSIDENTITYAPIVERSION=3 2017-07-12 15:02:57,286 - main - INFO - OSPROJECTNAME=services 2017-07-12 15:02:57,287 - main - INFO - OSUSERNAME=tacker 2017-07-12 15:02:57,287 - main - INFO - OSUSERDOMAINNAME=Default 2017-07-12 15:02:57,287 - main - INFO - OSTENANTNAME=services 2017-07-12 15:02:57,287 - main - INFO - OSENDPOINTTYPE=internalURL 2017-07-12 15:02:57,288 - main - INFO - OSPASSWORD=XXXXXXXXXXXXXXXX 2017-07-12 15:02:57,288 - main - INFO - OSAUTH_URL=http://100.64.200.11:5000/v3/

the full logs can be found here http://artifacts.opnfv.org/logs/funct...

it seems in your case that from functest container, it is not possible to connect through ssh the controller in order to fetch the heat.conf file 2017-07-12 15:02:45,345 - main - INFO - Fetch /etc/heat/heat.conf from controller 10.20.0.12

as far as I remember for fuel in addition of the OS creds, we have got 2 env variables: 2017-07-12 13:38:36,320 - prepareenv - INFO - INSTALLERTYPE=fuel 2017-07-12 13:38:36,320 - prepareenv - INFO - INSTALLERIP=10.20.0.2

the installer IP is used for the operation could you set this env variable and retry?

edit flag offensive delete link more

Comments

I set ssh key for root inside docker container, so I can connect to installer node without any problem:

root@528952df2ee3:~# ssh 10.10.70.124
Last login: Mon Aug 28 06:35:30 2017 from 10.10.70.200
[root@localhost ~]#
But error is still the same.

amernet ( 2017-08-27 23:54:06 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

Asked: 2017-08-23 06:53:55 -0700

Seen: 313 times

Last updated: Aug 25