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 (#21600): 
https://lists.opnfv.org/g/opnfv-tech-discuss/message/21600
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to