Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

influx db issue

Hi All, Whenever we execute the yardstick test case via the below command, we get an error in influx DB, but the test case is executing successfully. Please let me know if this connection issue can be resolved?

Yardstick command: yardstick -d task start opnfv_yardstick_testcase01.YAML

Message: 2019-12-09 18:09:49,530 [ERROR] yardstick.dispatcher.influxdb influxdb.py:80 Failed to record result data: HTTPConnectionPool(host='127.X.X.1', port=8086): Max retries exceeded with url: /write?db=yardstick (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f1ffd2f8cd0="">: Failed to establish a new connection: [Errno 111] Connection refused',))

Traceback (most recent call last): File "/home/opnfv/repos/yardstick/yardstick/dispatcher/influxdb.py", line 78, in upload_one_record timeout=self.timeout) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 112, in post return request('post', url, data=data, json=json, *kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 58, in request return session.request(method=method, url=url, *kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 518, in request resp = self.send(prep, *send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 639, in send r = adapter.send(request, *kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 502, in send raise ConnectionError(e, request=request)

ConnectionError: HTTPConnectionPool(host='127.X.X.1', port=8086): Max retries exceeded with url: /write?db=yardstick (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f1ffd2f8cd0="">: Failed to establish a new connection: [Errno 111] Connection refused',))

2019-12-09 18:09:59,851 [DEBUG] yardstick.benchmark.runners.duration duration.py:105 runner=5947 seq=5 END 2019-12-09 18:09:59,852 [INFO] yardstick.benchmark.runners.duration duration.py:111 Worker END 2019-12-09 18:09:59,852 [DEBUG] yardstick.benchmark.runners.duration duration.py:124 queue.qsize() = 1 2019-12-09 18:09:59,853 [DEBUG] yardstick.benchmark.runners.duration duration.py:125 output_queue.qsize() = 0 2019-12-09 18:09:59,896 [DEBUG] yardstick.benchmark.runners.base base.py:282 result_queue size 1 2019-12-09 18:09:59,897 [DEBUG] yardstick.dispatcher.influxdb influxdb.py:72 Test result line format : opnfv_yardstick_tc002,deploy_scenario=unknown,installer=unknown,pod_name=unknown,task_id=74898d7e-adad-4ea5-a991-e5feba921b18,version=unknown rtt.ares=0.519 1575914999851600896 ...

2019-12-09 18:09:59,898 [ERROR] yardstick.dispatcher.influxdb influxdb.py:80 Failed to record result data: HTTPConnectionPool(host='127.X.X.1', port=8086): Max retries exceeded with url: /write?db=yardstick (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f1ffd2f8d10="">: Failed to establish a new connection: [Errno 111] Connection refused',)) ..

ConnectionError: HTTPConnectionPool(host='127.X.X.1', port=8086): Max retries exceeded with url: /write?db=yardstick (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f1ffd2f8d10="">: Failed to establish a new connection: [Errno 111] Connection refused',))

2019-12-09 18:09:59,899 [INFO] yardstick.benchmark.core.task task.py:285 Runner ended .. 2019-12-09 18:10:41,784 [INFO] yardstick.benchmark.core.task task.py:148 Task /home/opnfv/repos/yardstick/tests/opnfv/test_cases/opnfv_yardstick_tc002.yaml finished in 226 secs 2019-12-09 18:10:41,789 [INFO] yardstick.benchmark.core.task task.py:169 Report can be found in '/tmp/report.html' 2019-12-09 18:10:41,790 [INFO] yardstick.benchmark.core.task task.py:157 Total finished in 226 secs 2019-12-09 18:10:41,790 [INFO] yardstick.benchmark.core.task task.py:160 To generate report, execute command "yardstick report generate 74898d7e-adad-4ea5-a991-e5feba921b18 <yaml_name>" 2019-12-09 18:10:41,790 [INFO] yardstick.benchmark.core.task task.py:161 Task ALL DONE, exiting 2019-12-09 18:10:41,790 [INFO] yardstick.cmd.commands.task task.py:61 Task SUCCESS 2019-12-09 18:10:41,790 [DEBUG] yardstick.benchmark.runners.base base.py:147 Terminating all runners