Using username "pcristob". Authenticating with public key "PCRISTOB-ES\pcristob@PCRISTOB-ES" Last login: Sun Feb 17 09:55:30 2019 from 8.red-83-34-49.dynamicip.rima-tde.net [pcristob@opnfv-instance-01 ~]$ sudo -i [root@opnfv-instance-01 ~]# mkdir /opnfv-yardstick [root@opnfv-instance-01 ~]# cd /opnfv-yardstick [root@opnfv-instance-01 opnfv-yardstick]# cp ../opnfv-functest/openstack.creds . [root@opnfv-instance-01 opnfv-yardstick]# cp ../opnfv-functest/env . [root@opnfv-instance-01 opnfv-yardstick]# source /opnfv-yardstick/env [root@opnfv-instance-01 opnfv-yardstick]# ping -c 2 $INSTALLER_IP PING 192.168.122.121 (192.168.122.121) 56(84) bytes of data. 64 bytes from 192.168.122.121: icmp_seq=1 ttl=64 time=0.388 ms 64 bytes from 192.168.122.121: icmp_seq=2 ttl=64 time=0.269 ms --- 192.168.122.121 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.269/0.328/0.388/0.062 ms [root@opnfv-instance-01 opnfv-yardstick]# docker run -itd --privileged -v /var/run/docker.sock:/var/run/docker.sock -v \ > /opnfv-yardstick/openstack.creds:/etc/yardstick/openstack.creds -p 8888:5000 \ > --name yardstick opnfv/yardstick:opnfv-5.1.0 3043715dedccaeb30817b9ea4bd80f49de9102025d5050345ad84c04e09c06e1 [root@opnfv-instance-01 opnfv-yardstick]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3043715dedcc opnfv/yardstick:opnfv-5.1.0 "/usr/bin/supervisord" 39 seconds ago Up 37 seconds 0.0.0.0:8888->5000/tcp yardstick [root@opnfv-instance-01 opnfv-yardstick]# docker exec -it yardstick /bin/bash root@3043715dedcc:/home/opnfv/repos# yardstick env prepare 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 * preparing yardstick environment[Finished] root@3043715dedcc:/home/opnfv/repos# cd yardstick root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# 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@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# more samples/ping.yaml ############################################################################## # Copyright (c) 2017 Ericsson AB and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## --- # Sample benchmark task config file # measure network latency using ping schema: "yardstick:task:0.1" {% set provider = provider or none %} {% set physical_network = physical_network or 'physnet1' %} {% set segmentation_id = segmentation_id or none %} scenarios: - type: Ping options: packetsize: 200 host: athena.demo target: ares.demo runner: type: Duration duration: 60 interval: 1 sla: max_rtt: 10 action: monitor context: name: demo image: cirros-0.3.5 flavor: yardstick-flavor user: cirros placement_groups: pgrp1: policy: "availability" servers: athena: floating_ip: true placement: "pgrp1" ares: placement: "pgrp1" networks: test: cidr: '10.0.1.0/24' {% if provider == "vlan" %} provider: {{provider}} physical_network: {{physical_network}} {% if segmentation_id %} segmentation_id: {{segmentation_id}} {% endif %} {% endif %} root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# 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 2019-02-17 11:36:06,309 [INFO] yardstick.cmd.commands.task task.py:54 Task START 2019-02-17 11:36:06,310 [INFO] yardstick.benchmark.core.task task.py:483 Parsing task config: samples/ping.yaml Writing /home/opnfv/repos/yardstick/yardstick/resources/files/yardstick_key-b6dbea7b ... 2019-02-17 11:36:06,467 [INFO] yardstick.benchmark.contexts.heat heat.py:303 Deploying context 'demo-adac3eb2' START 2019-02-17 11:36:06,470 [INFO] yardstick.orchestrator.heat heat.py:616 Creating stack 'demo-adac3eb2' START 2019-02-17 11:37:42,296 [INFO] yardstick.orchestrator.heat heat.py:649 Creating stack 'demo-adac3eb2' DONE in 91 secs 2019-02-17 11:37:43,383 [INFO] yardstick.benchmark.contexts.heat heat.py:333 Deploying context 'demo-adac3eb2' DONE 2019-02-17 11:37:43,390 [INFO] yardstick.benchmark.core.task task.py:373 Starting runner of type 'Duration' 2019-02-17 11:37:43,399 [INFO] yardstick.benchmark.runners.duration duration.py:46 Worker START, duration is 60s 2019-02-17 11:41:13,415 [WARNING] yardstick.benchmark.runners.duration duration.py:76 SLA validation failed: ('rtt 19.608000 > sla: max_rtt(10.000000); ',) 2019-02-17 11:41:37,895 [WARNING] yardstick.benchmark.runners.duration duration.py:76 SLA validation failed: ('rtt 13.344000 > sla: max_rtt(10.000000); ',) 2019-02-17 11:41:41,979 [WARNING] yardstick.benchmark.runners.duration duration.py:76 SLA validation failed: ('rtt 15.734000 > sla: max_rtt(10.000000); ',) 2019-02-17 11:42:11,623 [INFO] yardstick.benchmark.runners.duration duration.py:106 Worker END 2019-02-17 11:42:11,651 [INFO] yardstick.benchmark.core.task task.py:279 Runner ended, output in /tmp/yardstick.out 2019-02-17 11:42:11,651 [INFO] yardstick.benchmark.core.task task.py:130 Testcase: "ping" SUCCESS!!! 2019-02-17 11:42:11,652 [INFO] yardstick.benchmark.contexts.heat heat.py:386 Undeploying context 'demo-adac3eb2' START 2019-02-17 11:42:11,652 [INFO] yardstick.orchestrator.heat heat.py:92 Deleting stack 'demo-adac3eb2' START, uuid:ad690e59-667b-463b-8c11-33b0774fc2f9 2019-02-17 11:42:45,953 [INFO] yardstick.orchestrator.heat heat.py:108 Deleting stack 'demo-adac3eb2' DONE in 29 secs 2019-02-17 11:42:45,954 [INFO] yardstick.benchmark.contexts.heat heat.py:389 Undeploying context 'demo-adac3eb2' DONE 2019-02-17 11:42:45,954 [INFO] yardstick.benchmark.core.task task.py:143 Task samples/ping.yaml finished in 399 secs 2019-02-17 11:42:45,962 [INFO] yardstick.benchmark.core.task task.py:165 Report can be found in '/tmp/report.html' 2019-02-17 11:42:45,962 [INFO] yardstick.benchmark.core.task task.py:152 Total finished in 399 secs 2019-02-17 11:42:45,962 [INFO] yardstick.benchmark.core.task task.py:156 To generate report, execute command 'yardstick report generate adac3eb2-0600-4516-b04c-51ac7db4d666 ping' 2019-02-17 11:42:45,962 [INFO] yardstick.benchmark.core.task task.py:157 Task ALL DONE, exiting 2019-02-17 11:42:45,963 [INFO] yardstick.cmd.commands.task task.py:62 Task SUCCESS root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# cat /tmp/yardstick.out {"status": 1, "result": {"info": {"installer": "unknown", "version": "unknown", "deploy_scenario": "unknown", "pod_name": "unknown"}, "testcases": {"ping": {"tc_data": [{"timestamp": 1550403674.417217, "errors": ["rtt 19.608000 > sla: max_rtt(10.000000); "], "data": {"rtt.ares": 19.608}, "sequence": 1}, {"timestamp": 1550403678.510685, "errors": "", "data": {"rtt.ares": 6.991}, "sequence": 2}, {"timestamp": 1550403682.573711, "errors": "", "data": {"rtt.ares": 6.932}, "sequence": 3}, {"timestamp": 1550403686.642861, "errors": "", "data": {"rtt.ares": 7.959}, "sequence": 4}, {"timestamp": 1550403690.704786, "errors": "", "data": {"rtt.ares": 7.979}, "sequence": 5}, {"timestamp": 1550403694.785699, "errors": "", "data": {"rtt.ares": 6.881}, "sequence": 6}, {"timestamp": 1550403698.896986, "errors": ["rtt 13.344000 > sla: max_rtt(10.000000); "], "data": {"rtt.ares": 13.344}, "sequence": 7}, {"timestamp": 1550403702.980715, "errors": ["rtt 15.734000 > sla: max_rtt(10.000000); "], "data": {"rtt.ares": 15.734}, "sequence": 8}, {"timestamp": 1550403707.03808, "errors": "", "data": {"rtt.ares": 6.839}, "sequence": 9}, {"timestamp": 1550403711.102284, "errors": "", "data": {"rtt.ares": 8.866}, "sequence": 10}, {"timestamp": 1550403715.175866, "errors": "", "data": {"rtt.ares": 8.592}, "sequence": 11}, {"timestamp": 1550403719.350922, "errors": "", "data": {"rtt.ares": 9.181}, "sequence": 12}, {"timestamp": 1550403723.485739, "errors": "", "data": {"rtt.ares": 9.948}, "sequence": 13}, {"timestamp": 1550403727.563919, "errors": "", "data": {"rtt.ares": 8.852}, "sequence": 14}, {"timestamp": 1550403731.622787, "errors": "", "data": {"rtt.ares": 6.849}, "sequence": 15}], "criteria": "PASS"}}, "task_id": "adac3eb2-0600-4516-b04c-51ac7db4d666", "criteria": "PASS"}} root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# yardstick task start samples/fio.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 2019-02-17 11:43:41,789 [INFO] yardstick.cmd.commands.task task.py:54 Task START 2019-02-17 11:43:41,790 [INFO] yardstick.benchmark.core.task task.py:483 Parsing task config: samples/fio.yaml Writing /home/opnfv/repos/yardstick/yardstick/resources/files/yardstick_key-ae348123 ... 2019-02-17 11:43:42,037 [INFO] yardstick.benchmark.contexts.heat heat.py:303 Deploying context 'demo-31332086' START 2019-02-17 11:43:42,040 [INFO] yardstick.orchestrator.heat heat.py:616 Creating stack 'demo-31332086' START 2019-02-17 11:45:32,586 [INFO] yardstick.orchestrator.heat heat.py:649 Creating stack 'demo-31332086' DONE in 106 secs 2019-02-17 11:45:33,612 [INFO] yardstick.benchmark.contexts.heat heat.py:333 Deploying context 'demo-31332086' DONE 2019-02-17 11:45:33,617 [INFO] yardstick.benchmark.core.task task.py:373 Starting runner of type 'Duration' 2019-02-17 11:45:33,627 [INFO] yardstick.benchmark.runners.duration duration.py:46 Worker START, duration is 60s Process Duration-Fio-8453: Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, **self._kwargs) File "/home/opnfv/repos/yardstick/yardstick/benchmark/runners/duration.py", line 52, in _worker_process benchmark.setup() File "/home/opnfv/repos/yardstick/yardstick/benchmark/scenarios/storage/fio.py", line 94, in setup self.client.wait(timeout=600) File "/home/opnfv/repos/yardstick/yardstick/ssh.py", line 374, in wait raise SSHTimeout("Timeout waiting for '%s'", self.host) SSHTimeout: ("Timeout waiting for '%s'", u'192.168.37.205') 2019-02-17 11:55:34,534 [ERROR] yardstick.benchmark.core.task task.py:276 Scenario NO.1: "Fio" ERROR! 2019-02-17 11:55:34,535 [ERROR] yardstick.benchmark.core.task task.py:127 Testcase: "fio" FAILED!!! Traceback (most recent call last): File "/home/opnfv/repos/yardstick/yardstick/benchmark/core/task.py", line 123, in start data = self._run(scenarios, run_in_parallel, args.output_file) File "/home/opnfv/repos/yardstick/yardstick/benchmark/core/task.py", line 278, in _run "{0} runner status {1}".format(runner.__execution_type__, status)) RuntimeError: Duration runner status 1 2019-02-17 11:55:34,536 [INFO] yardstick.benchmark.contexts.heat heat.py:386 Undeploying context 'demo-31332086' START 2019-02-17 11:55:34,536 [INFO] yardstick.orchestrator.heat heat.py:92 Deleting stack 'demo-31332086' START, uuid:03e503de-03d4-4601-a0c4-c45f275bd375 2019-02-17 11:56:07,079 [INFO] yardstick.orchestrator.heat heat.py:108 Deleting stack 'demo-31332086' DONE in 27 secs 2019-02-17 11:56:07,079 [INFO] yardstick.benchmark.contexts.heat heat.py:389 Undeploying context 'demo-31332086' DONE 2019-02-17 11:56:07,080 [INFO] yardstick.benchmark.core.task task.py:143 Task samples/fio.yaml finished in 745 secs 2019-02-17 11:56:07,091 [INFO] yardstick.benchmark.core.task task.py:165 Report can be found in '/tmp/report.html' 2019-02-17 11:56:07,092 [INFO] yardstick.benchmark.core.task task.py:152 Total finished in 745 secs 2019-02-17 11:56:07,092 [INFO] yardstick.benchmark.core.task task.py:156 To generate report, execute command 'yardstick report generate 31332086-2da7-4c80-996c-d571326fdbe4 fio' 2019-02-17 11:56:07,092 [INFO] yardstick.benchmark.core.task task.py:157 Task ALL DONE, exiting 2019-02-17 11:56:07,093 [INFO] yardstick.cmd.commands.task task.py:64 Task FAILED Python 2.7.6: /usr/bin/python Sun Feb 17 11:56:07 2019 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /usr/local/bin/yardstick in () 8 if __name__ == '__main__': 9 sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) 10 sys.exit( 11 load_entry_point('yardstick', 'console_scripts', 'yardstick')() 12 ) load_entry_point = /home/opnfv/repos/yardstick/yardstick/main.py in main() 47 def main(): 48 """yardstick main""" 49 YardstickCLI().main(sys.argv[1:]) 50 51 if __name__ == '__main__': global YardstickCLI = ).main = global sys = sys.argv = ['/usr/local/bin/yardstick', 'task', 'start', 'samples/fio.yaml'] /home/opnfv/repos/yardstick/yardstick/cmd/cli.py in main(self=, argv=['task', 'start', 'samples/fio.yaml']) 160 self._handle_global_opts() 161 162 self._dispatch_func_notask() 163 finally: 164 self._clear_config_opts() self = self._dispatch_func_notask = > /home/opnfv/repos/yardstick/yardstick/cmd/cli.py in _dispatch_func_notask(self=) 138 # dispatch to category parser 139 func = CONF.category.func 140 func(CONF.category) 141 142 def _dispatch_func_task(self, task_id): func = > global CONF = CONF.category undefined /home/opnfv/repos/yardstick/yardstick/cmd/commands/task.py in do_start(self=, args=, **kwargs={}) 63 else: 64 LOG.info('Task FAILED') 65 raise RuntimeError('Task Failed') 66 67 def _write_error_data(self, error): builtinRuntimeError = : Task Failed __class__ = __delattr__ = __dict__ = {} __doc__ = 'Unspecified run-time error.' __format__ = __getattribute__ = __getitem__ = __getslice__ = __hash__ = __init__ = __new__ = __reduce__ = __reduce_ex__ = __repr__ = __setattr__ = __setstate__ = __sizeof__ = __str__ = __subclasshook__ = __unicode__ = args = ('Task Failed',) message = 'Task Failed' The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "/usr/local/bin/yardstick", line 11, in 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 162, in main self._dispatch_func_notask() File "/home/opnfv/repos/yardstick/yardstick/cmd/cli.py", line 140, in _dispatch_func_notask func(CONF.category) File "/home/opnfv/repos/yardstick/yardstick/cmd/commands/task.py", line 65, in do_start raise RuntimeError('Task Failed') RuntimeError: Task Failed root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick# cat /tmp/yardstick.out {"status": 1, "result": {"info": {"installer": "unknown", "version": "unknown", "deploy_scenario": "unknown", "pod_name": "unknown"}, "testcases": {"fio": {"tc_data": [], "criteria": "FAIL"}}, "task_id": "31332086-2da7-4c80-996c-d571326fdbe4", "criteria": "FAIL"}} root@3043715dedcc:/home/opnfv/repos/yardstick# root@3043715dedcc:/home/opnfv/repos/yardstick#