Hi Nagraj, As Emma said, one thing you need to check is that you need to add EXTERNET_NETWORK variable in the openstack.creds. Also you can follow her mail to have more details with “—debug” parameter when run the test case, it’s useful sometimes.
As for the error when you run “samples/ping.yaml”, it looks like you just need to first “cd /home/opnfv/repos/yardstick” since “samples/ping.yaml” locates in “/home/opnfv/repos/yardstick”. BRs, Rex +-------------------------------------------------------------------------------------------+ [cid:[email protected]] + Mingjiang Li (Rex) Mobile: +86 13761275017 + Shanghai Institute, Huawei + No. 2222, Xinjinqiao Road, Pudong, Shanghai, 201206, P.R.China +-------------------------------------------------------------------------------------------+ From: [email protected] [mailto:[email protected]] On Behalf Of Emma Foley Sent: Tuesday, July 24, 2018 12:32 AM To: Nagraj <[email protected]>; [email protected] Subject: Re: [opnfv-tech-discuss][Yardstick] TaskReadError: Failed to read task samples/ping.yaml Hi, That output looks okay for the verification. Can you run the testcase again with the debug flag? yardstick --debug task start samples/ping.yaml This will give some additional information about the errors you are facing. You can also try running a very basic no-op scenario to make sure that yardstick is actually running. $ yardstick --debug task start samples/dummy.yaml This will run the dummy scenario and the dummy context to make sure that yardstick can interact with these objects To check whether it’s an issue with the heat context, you can run: $ yardstick --debug task start yardstick/tests/integration/dummy-scenario-heat-context.yaml This one will run the same dummy scenario, but will also set up an environment using heat, which can help you quickly verify that your credentials and resource are set up correctly. Without knowing anything about your deployment, I can suggest the following actions. - Make sure the OpenStack credentials are available in your environment $ source /etc/yardstick/openstack.creds $ env | grep OS_ - Does EXTERNAL_NET exist in OpenStack? - Does the required image exist in OpenStack $ openstack image list | grep yardstick-image - Do you have enough resources to launch your VMs? The yardstick image is pretty big, you can try a smaller image instead e.g. cirros Unfortunately, without seeing the more detailed output, I can’t say for sure what’s wrong, and whether the suggested actions will help. Let me know how you get on, and if there’s any more help you need. Best regards, Emma From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Nagraj Sent: Monday, July 23, 2018 4:03 PM To: [email protected]<mailto:[email protected]> Subject: [opnfv-tech-discuss][Yardstick] TaskReadError: Failed to read task samples/ping.yaml Hello, I am trying to run yardstick and followed the steps mentioned in section 4.3, using docker https://docs.opnfv.org/en/stable-danube/submodules/yardstick/docs/testing/user/userguide/04-installation.html#install-yardstick-using-docker-recommended My openstack is opensource so i edited /etc/yardstick/openstack.creds file with the contents on opnrc file and ran yardstick env prepare I am getting below error when i try to verify installation.. root@bbbca144e0cd:/home/opnfv/repos# yardstick -h No handlers could be found for logger "yardstick.common.utils" /usr/local/lib/python2.7/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.restful is deprecated, use flask_restful instead. .format(x=modname), ExtDeprecationWarning usage: yardstick [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--nodebug] [--version] {task,scenario,plugin,runner,testcase,env,report} ... optional arguments: -h, --help show this help message and exit --config-dir DIR Path to a config directory to pull `*.conf` files from. This file set is sorted, so as to provide a predictable parse order if individual options are over-ridden. The set is parsed after the file(s) specified via previous --config-file, arguments hence over-ridden options in the directory take precedence. --config-file PATH Path to a config file to use. Multiple config files can be specified, with values in later files taking precedence. Defaults to None. --debug, -d increase output verbosity to debug --nodebug The inverse of --debug --version show program's version number and exit Command categories: {task,scenario,plugin,runner,testcase,env,report} Available categories root@bbbca144e0cd:/home/opnfv/repos# root@bbbca144e0cd:/home/opnfv/repos# yardstick task start samples/ping.yaml No handlers could be found for logger "yardstick.common.utils" /usr/local/lib/python2.7/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.restful is deprecated, use flask_restful instead. .format(x=modname), ExtDeprecationWarning 2018-07-23 14:53:30,383 [INFO] yardstick.cmd.commands.task task.py:52 Task START 2018-07-23 14:53:30,384 [INFO] yardstick.benchmark.core.task task.py:543 Parsing task config: samples/ping.yaml 2018-07-23 14:53:30,385 [INFO] yardstick.cmd.commands.task task.py:57 Task FAILED Traceback (most recent call last): File "/usr/local/bin/yardstick", line 11, in <module> load_entry_point('yardstick', 'console_scripts', 'yardstick')() File "/home/opnfv/repos/yardstick/yardstick/main.py", line 49, in main YardstickCLI().main(sys.argv[1:]) File "/home/opnfv/repos/yardstick/yardstick/cmd/cli.py", line 165, in main self._dispatch_func_notask() File "/home/opnfv/repos/yardstick/yardstick/cmd/cli.py", line 143, in _dispatch_func_notask func(CONF.category) File "/home/opnfv/repos/yardstick/yardstick/cmd/commands/task.py", line 54, in do_start result = Task().start(param, **kwargs) File "/home/opnfv/repos/yardstick/yardstick/benchmark/core/task.py", line 103, in start task_args_fnames) File "/home/opnfv/repos/yardstick/yardstick/benchmark/core/task.py", line 328, in _parse_tasks task_args_fnames[i])) File "/home/opnfv/repos/yardstick/yardstick/benchmark/core/task.py", line 545, in parse_task cfg, rendered = self._render_task(task_args, task_args_file) File "/home/opnfv/repos/yardstick/yardstick/benchmark/core/task.py", line 535, in _render_task raise y_exc.TaskReadError(task_file=self.path) TaskReadError: Failed to read task samples/ping.yaml root@bbbca144e0cd:/home/opnfv/repos# root@bbbca144e0cd:/home/opnfv/repos# yardstick --version No handlers could be found for logger "yardstick.common.utils" /usr/local/lib/python2.7/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.restful is deprecated, use flask_restful instead. .format(x=modname), ExtDeprecationWarning yardstick version 0.1.dev0 root@bbbca144e0cd:/home/opnfv/repos# Appreciate any help.. Thanks, Nagraj -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21603): https://lists.opnfv.org/g/opnfv-tech-discuss/message/21603 Mute This Topic: https://lists.opnfv.org/mt/23793705/21656 Group Owner: [email protected] Unsubscribe: https://lists.opnfv.org/g/opnfv-tech-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
