Thanks Dan Xu. I pulled cvp.0.2.0 version of dovetail and was able to verify the bgpvpn tests with this version.
Thanks Srikanth From: xudan (N) [mailto:xuda...@huawei.com] Sent: Wednesday, July 05, 2017 12:51 AM To: Srikanth Vavilapalli <srikanth.vavilapa...@ericsson.com>; opnfv-tech-discuss@lists.opnfv.org Cc: Jose Lausuch <jose.laus...@ericsson.com> Subject: Re: [opnfv-tech-discuss] [Dovetail] sdnvpn test cases with dovetail.cvp.0.1.0 throw an error Hi Srikanth, The Functest WARNING logs you have mentioned can all be ignored, because they don’t have any matter with the test case itself. Dovetail passes “INSTALLER_TYPE=netvirt” and “DEPLOY_SCENARIO=bgpvpn” to Functest Container to ensure test case bgpvpn can be triggered. However, “INSTALLER_IP” has nothing to do with the Functest test cases themselves. So Dovetail doesn’t pass it to Functest. About the ERROR log “Unknown test case or tier 'bgpvpn', or not supported by the given scenario 'bgpvpn'”, we also met this problem during the test and that’s because opnfv/functest:danube.2.0 used by dovetail:cvp.0.1.0 disables bgpvpn with the config file testcases.yaml. Functest has tagged opnfv/functest:cvp.0.2.0 which has enabled bgpvpn and fixed some bugs about it. Following are related patches: https://gerrit.opnfv.org/gerrit/#/c/35051/2 https://gerrit.opnfv.org/gerrit/#/c/36777/3 https://gerrit.opnfv.org/gerrit/#/c/36785/ Dovetail cvp.0.2.0 will be available soon which will use opnfv/functest:cvp.0.2.0 instead of opnfv/functest:danube.2.0. Then you can have a try with this new version. You can go to the wiki page for the details about the version change logs: https://wiki.opnfv.org/display/dovetail/Running+history+for+the+dovetail+tool#Runninghistoryforthedovetailtool-5.Versionchangelogs Please feel free to contact me if you have any questions. Thanks, Dan Xu 发件人: Srikanth Vavilapalli [mailto:srikanth.vavilapa...@ericsson.com] 发送时间: 2017年7月5日 11:31 收件人: Jose Lausuch 抄送: xudan (N); opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org> 主题: RE: [opnfv-tech-discuss] [Dovetail] sdnvpn test cases with dovetail.cvp.0.1.0 throw an error Hi Jose I have already tried setting these environment variables while launching dovetail docker container (as shown below), even then I have noticed these warning messages from functest. So looks like these env variables are not passed on to functest container. docker run --privileged=true -it -e DOVETAIL_HOME=$DOVETAIL_HOME -e INSTALLER_TYPE=apex -e INSTALLER_IP=192.168.37.11 -v $DOVETAIL_HOME:$DOVETAIL_HOME -v /var/run/docker.sock:/var/run/docker.sock opnfv/dovetail:cvp.0.1.0 /bin/bash Thanks Srikanth From: Jose Lausuch Sent: Monday, July 03, 2017 2:14 PM To: Srikanth Vavilapalli <srikanth.vavilapa...@ericsson.com<mailto:srikanth.vavilapa...@ericsson.com>> Cc: xudan (N) <xuda...@huawei.com<mailto:xuda...@huawei.com>>; opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org> Subject: Re: [opnfv-tech-discuss] [Dovetail] sdnvpn test cases with dovetail.cvp.0.1.0 throw an error Srikanth, You should set INSTALLER_TYPE=apex and also set INSTALLER_IP to the undercloud VM. You also need to set the DEPLOY_SCENARIO to the corresponding scenario you are deploying. If it’s a bgpvpn deployment, you can set it to os-odl_l2-bgpvpn-ha. That is at least from Functest side, not sure how Dovetail passes those env variables to Functest. Let me know if that fixes your problem. Regards, Jose On 3 Jul 2017, at 20:45, Srikanth Vavilapalli <srikanth.vavilapa...@ericsson.com<mailto:srikanth.vavilapa...@ericsson.com>> wrote: Thanks Dan Xu After fixing the DOVETAIL_HOME issue, I see the below WARNING logs in functest log, when I ran `dovetail run --testsuite proposed_tests --testarea sdnvpn`. Can I ignore these warning messages? I tried to set these environment variables while launching the dovetail container and also in env_config.sh file, but still I see those errors. 2017-07-03 18:49:09,172 - functest.utils.functest_utils - DEBUG - Executing command: 'python /home/opnfv/repos/functest/functest/ci/prepare_env.py start' 2017-07-03 18:49:10,232 - functest.ci.prepare_env - INFO - ######### Preparing Functest environment ######### 2017-07-03 18:49:10,232 - functest.ci.prepare_env - INFO - ============================================== 2017-07-03 18:49:10,232 - functest.ci.prepare_env - INFO - Checking environment variables... 2017-07-03 18:49:10,232 - functest.ci.prepare_env - WARNING - INSTALLER_TYPE=netvirt is not a valid OPNFV installer. Available OPNFV Installers are : ['apex', 'fuel', 'compass', 'joid', 'daisy']. Setting INSTALLER_TYPE=undefined. 2017-07-03 18:49:10,233 - functest.ci.prepare_env - WARNING - The env variable 'INSTALLER_IP' is not defined. It is needed to fetch the OpenStack credentials. If the credentials are not provided to the container as a volume, please add this env variable to the 'docker run' command. 2017-07-03 18:49:10,233 - functest.ci.prepare_env - INFO - DEPLOY_SCENARIO=bgpvpn 2017-07-03 18:49:10,233 - functest.ci.prepare_env - INFO - CI_DEBUG=true 2017-07-03 18:49:10,233 - functest.ci.prepare_env - INFO - NODE_NAME=master 2017-07-03 18:49:10,233 - functest.ci.prepare_env - INFO - BUILD_TAG=daily-master-a279734f-3d6f-4e7b-96f7-7e8e192471aa-dovetail.sdnvpn.tc001 2017-07-03 18:49:10,233 - functest.ci.prepare_env - INFO - IS_CI_RUN=True Also I see that the tests are ending with a failure log saying “Unknown test case or tier 'bgpvpn', or not supported by the given scenario 'bgpvpn'”. Attached the logs. Do I need to enable any specific config in my deployment for the sdnvpn testcases to pass? 2017-07-03 19:03:53,274 - functest.ci.run_tests - DEBUG - Sourcing the OpenStack RC file... 2017-07-03 19:03:53,275 - functest.ci.run_tests - ERROR - Unknown test case or tier 'bgpvpn', or not supported by the given scenario 'bgpvpn'. 2017-07-03 19:03:53,275 - functest.ci.run_tests - DEBUG - Available tiers are: Thanks for your help… Thanks Srikanth From: xudan (N) [mailto:xuda...@huawei.com] Sent: Friday, June 30, 2017 9:17 PM To: Srikanth Vavilapalli <srikanth.vavilapa...@ericsson.com<mailto:srikanth.vavilapa...@ericsson.com>>; opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org> Subject: Re: [opnfv-tech-discuss] [Dovetail] sdnvpn test cases with dovetail.cvp.0.1.0 throw an error Hi Srikanth, The first step: Added ‘export DOVETAIL_HOME=$HOME/dovetail’ in ~/dovetail/pre_config/env_config.sh You need to replace $HOME with /root. Because in your host, $HOME is /root. But in Dovetail container $HOME is /home/opnfv. Dovetail tool will source this env_config.sh at the running time in the container and then it will reset the DOVETAIL_HOME to be /home/opnfv/dovetail. So then Dovetail tool will go to /home/opnfv/dovetail to look for all the files rather than /root/dovetail. Sorry for the mistake in Dovetail testing user guide and we will amend it soon. Thank you for your feedback. Thanks Dan Xu 发件人: Srikanth Vavilapalli [mailto:srikanth.vavilapa...@ericsson.com] 发送时间: 2017年7月1日 1:58 收件人: xudan (N); opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org> 主题: RE: [opnfv-tech-discuss] [Dovetail] sdnvpn test cases with dovetail.cvp.0.1.0 throw an error Hi Dan Xu Here is the command I have used to launch the dovetail container * root@r720-003 ~ $ Added ‘export DOVETAIL_HOME=$HOME/dovetail’ in ~/dovetail/pre_config/env_config.sh * root@r720-003 ~ $ source $HOME/dovetail/pre_config/env_config.sh * root@r720-003 ~ $ sudo docker run --privileged=true -it -e DOVETAIL_HOME=$DOVETAIL_HOME -v $DOVETAIL_HOME:$DOVETAIL_HOME -v /var/run/docker.sock:/var/run/docker.sock opnfv/dovetail:cvp.0.1.0 /bin/bash I followed the instructions at http://artifacts.opnfv.org/dovetail/review/34285/testing_user_userguide/index.html to bringup the dovetail container. Thanks Srikanth From: xudan (N) [mailto:xuda...@huawei.com] Sent: Thursday, June 29, 2017 6:29 PM To: Srikanth Vavilapalli <srikanth.vavilapa...@ericsson.com<mailto:srikanth.vavilapa...@ericsson.com>>; opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org> Subject: Re: [opnfv-tech-discuss] [Dovetail] sdnvpn test cases with dovetail.cvp.0.1.0 throw an error Hi Srikanth, We have tested dovetail:cvp.0.1.0 locally and have not found this ERROR. Maybe there are something wrong when you create the Dovetail container. Can you show us the command. According to the log, the right command for you is: sudo docker run -it --privileged=true -e DOVETAIL_HOME=/root/dovetail -v /root/dovetail: /root/dovetail -v /var/run/docker.sock:/var/run/docker.sock opnfv/dovetail:cvp.0.1.0 /bin/bash Thanks Dan Xu 发件人: opnfv-tech-discuss-boun...@lists.opnfv.org<mailto:opnfv-tech-discuss-boun...@lists.opnfv.org> [mailto:opnfv-tech-discuss-boun...@lists.opnfv.org] 代表 Srikanth Vavilapalli 发送时间: 2017年6月30日 7:03 收件人: opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org> 主题: [opnfv-tech-discuss] [Dovetail] sdnvpn test cases with dovetail.cvp.0.1.0 throw an error Hi When I run the `sdnvpn’ dovetail test cases, I see the below error for each run. I have ensured that the ubuntu cloudimg is present under $(DOVETAIL_HOME)/pre_config folder on the host before executing these tests. The failure is happening when the dovetail container is trying to copy the file from one location to other location in the functest container & this folder /home/opnfv/userconfig/pre_config/ does not exist in the functest container. Can any one plz help me with this error? root@98da04f3fb76:/usr/local/lib/python2.7/dist-packages/dovetail#<mailto:root@98da04f3fb76:/usr/local/lib/python2.7/dist-packages/dovetail> dovetail run --testsuite proposed_tests --testarea sdnvpn 2017-06-29 23:38:07,875 - run - INFO - ================================================ 2017-06-29 23:38:07,875 - run - INFO - Dovetail compliance: proposed_tests! 2017-06-29 23:38:07,875 - run - INFO - ================================================ 2017-06-29 23:38:07,875 - run - INFO - Build tag: daily-master-350ba85a-b2bf-4693-a107-ca25af60b925 2017-06-29 23:38:08,109 - run - INFO - >>[testcase]: dovetail.sdnvpn.tc001 2017-06-29 23:38:09,428 - container.Container - INFO - get hosts info 2017-06-29 23:38:09,947 - container.Container - ERROR - The command 'sudo docker exec 4e7f920152d3 /bin/bash -c "cp /home/opnfv/userconfig/pre_config/ubuntu-16.04-server-cloudimg-amd64-disk1.img /home/opnfv/functest/images"' failed. 2017-06-29 23:38:10,010 - container.Container - ERROR - The command 'sudo docker exec 4e7f920152d3 /bin/bash -c "cp /home/opnfv/userconfig/pre_config/sdnvpn_config_testcase1.yaml /home/opnfv/repos/sdnvpn/sdnvpn/test/functest/config.yaml"' failed. 2017-06-29 23:39:19,314 - run - ERROR - Fail to store results with file /root/dovetail/results/functest_results.txt. 2017-06-29 23:39:19,315 - report.FunctestCrawler - INFO - result file not found: /root/dovetail/results/functest_results.txt 2017-06-29 23:39:19,315 - run - INFO - >>[testcase]: dovetail.sdnvpn.tc002 2017-06-29 23:39:19,317 - container.Container - INFO - get hosts info 2017-06-29 23:39:19,788 - container.Container - ERROR - The command 'sudo docker exec 25805da3d12b /bin/bash -c "cp /home/opnfv/userconfig/pre_config/ubuntu-16.04-server-cloudimg-amd64-disk1.img /home/opnfv/functest/images"' failed. …. root@98da04f3fb76:/usr/local/lib/python2.7/dist-packages/dovetail#<mailto:root@98da04f3fb76:/usr/local/lib/python2.7/dist-packages/dovetail> ls /root/dovetail/pre_config/ env_config.sh sdnvpn_config_testcase3.yaml hosts.yaml sdnvpn_config_testcase4.yaml pod.yaml.sample sdnvpn_config_testcase8.yaml sdnvpn_config_testcase1.yaml ubuntu-16.04-server-cloudimg-amd64-disk1.img sdnvpn_config_testcase2.yaml Thanks Srikanth <dovetail.log><functest.log>_______________________________________________ opnfv-tech-discuss mailing list opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org> https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
_______________________________________________ opnfv-tech-discuss mailing list opnfv-tech-discuss@lists.opnfv.org https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss