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 主题: 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
_______________________________________________ opnfv-tech-discuss mailing list opnfv-tech-discuss@lists.opnfv.org https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss