Ask Your Question

ODL-SFC Testcase

asked 2016-12-16 02:39:37 -0800

johscheuer gravatar image

updated 2016-12-16 03:32:43 -0800

Hi there,

I'm trying to run thew ODL_SFC Test Case 1 to verify my OPNFV Setup. I used fuel to install OPNFV (Colorado 3.0) and added the OVS, ODL and Tacker Plugin.

Now I wanted to start the SFC Test Case 1 with the following command ( I added the --net=host because I don't wanted to modify my iptables rules):

docker run --privileged=true --net=host -ti -e INSTALLER_TYPE=fuel -e INSTALLER_IP= -e DEPLOY_SCENARIO=os-odl_l2-sfc-noha -e CI_DEBUG=true --name sfc opnfv/functest /bin/bash

But the test setup fails at the openstack_snapshot - INFO - Generating OpenStack snapshot... step with the following command: TypeError: __init__() got an unexpected keyword argument 'endpoint_type'

I uploaded the complete output here

After Some debugging I did the following:

Printing the credentials in /usr/local/lib/python2.7/dist-packages/functest/utils/ {'username': 'admin', 'endpoint_type': 'internalURL', 'auth_url': '', 'region_name': 'RegionOne', 'tenant_name': 'admin', 'password': 'admin'}

and in there is no endpoint_type and region_name so I added the following two lines after fetching creds ( know probably not the best idea):

creds.pop("endpoint_type", None)

creds.pop("region_name", None)

Now I ran into some new errors:

2016-12-16 11:13:41,617 - openstack_snapshot - DEBUG - NOTE: These objects will NOT be deleted after running the test. 2016-12-16 11:13:41,838 - functest_utils - DEBUG - Executing command: 'cd /home/opnfv/repos/sfc/tests/functest && python ./' 2016-12-16 11:13:41,864 - functest_utils - ERROR - The command 'cd /home/opnfv/repos/sfc/tests/functest && python ./' failed. 2016-12-16 11:13:41,867 - sfc - INFO - sfc FAILED 2016-12-16 11:13:41,868 - functest_utils - ERROR - Unable to retrieve the POD name from environment. Using pod name 'unknown-pod' 2016-12-16 11:13:41,868 - functest_utils - ERROR - Impossible to retrieve the build tag 2016-12-16 11:13:41,869 - functest_utils - ERROR - Impossible to retrieve the build tag

and like the line ERROR - The command 'cd /home/opnfv/repos/sfc/tests/functest && python ./' failed. said: executing ls -lah /home/opnfv/repos/sfc/tests/functest returns ls: cannot access /home/opnfv/repos/sfc/tests/functest: No such file or directory so there are no test files...


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-16 06:27:20 -0800

johscheuer gravatar image

So in the first place I just needed to use the right docker container tag (maybe we should add this in the documentation?):

TAG=colorado.3.0; docker run --privileged=true --net=host -ti -e INSTALLER_TYPE=fuel -e INSTALLER_IP= -e DEPLOY_SCENARIO=os-odl_l2-sfc-noha -e CI_DEBUG=true --name sfc opnfv/functest:${TAG:-latest} /bin/bash

In the next step I needed to adjust two files server_presetup_CI.bash and compute_presetup_CI.bash, you can find my adjustments on github. After this I finally could run the SFC test case but some of the test cases are failing (I will have a deeper look into this, it looks like everything gets directed through the SF). Also the test case doesn't clean up after running.

edit flag offensive delete link more

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

1 follower


Asked: 2016-12-16 02:39:37 -0800

Seen: 115 times

Last updated: Dec 16 '16