Ни один объект JSON не может быть декодирован для jsonutils.py (для OPNFV Yardstick) - PullRequest
1 голос
/ 20 апреля 2020

Я выполняю приведенную ниже команду внутри docker. Может кто-нибудь, пожалуйста, помогите мне, как решить эту проблему.

Команда: sudo yardstick -d запуск задачи /home/yardstick/tests/opnfv/test_cases/opnfv_yardstick_tc010.yaml

Проблема:

  File "/usr/local/lib/python2.7/dist-packages/oslo_serialization/jsonutils.py", line 264, in loads
    return json.loads(encodeutils.safe_decode(s, encoding), **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Полный журнал:

root@c3d32c52defc:/home/# sudo yardstick -d task start /home/opnfv/repos/yardstick/tests/opnfv/test_cases/opnfv_yardstick_tc0XX.yaml
No handlers could be found for logger "yardstick.common.utils"
/usr/local/lib/python2.7/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
...
...
020-04-17 15:25:54,786 [WARNING] py.warnings ec.py:368 /usr/local/lib/python2.7/dist-packages/paramiko/kex_ecdh_nist.py:111: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
  hm.add_string(self.Q_C.public_numbers().encode_point())

2020-04-20 15:25:55,663 [DEBUG] yardstick.ssh.demeter ssh.py:293 stdout: u'Linux\n'
2020-04-20 15:26:01,840 [DEBUG] yardstick.benchmark.runners.iteration iteration.py:68 runner=19416 seq=1 START
2020-04-20 15:26:01,840 [DEBUG] yardstick.benchmark.scenarios.compute.lmbench lmbench.py:127 Executing command: sudo bash lmbench_latency.sh 64.000000 128
2020-04-20 15:26:02,005 [DEBUG] yardstick.ssh.demeter ssh.py:301 stderr: u'sudo: unable to resolve host demeter: Connection timed out\n'
2020-04-20 15:26:02,024 [DEBUG] yardstick.ssh.demeter ssh.py:293 stdout: u'[\n'
2020-04-20 15:26:02,026 [DEBUG] yardstick.ssh.demeter ssh.py:293 stdout: u'{"size": lmbench_latency.sh:, "latency": line}]\n'
stdout.... [
{"size": lmbench_latency.sh:, "latency": line}]

stderr.... sudo: unable to resolve host demeter: Connection timed out

status.... 0
2020-04-20 15:26:02,029 [ERROR] yardstick.benchmark.runners.iteration iteration.py:95
Traceback (most recent call last):
  File "/home/opnfv/repos/yardstick/yardstick/benchmark/runners/iteration.py", line 75, in _worker_process
    result = method(scenario_output)
  File "/home/opnfv/repos/yardstick/yardstick/benchmark/scenarios/compute/lmbench.py", line 139, in run
    {"latencies": jsonutils.loads(stdout)})
  File "/usr/local/lib/python2.7/dist-packages/oslo_serialization/jsonutils.py", line 264, in loads
    return json.loads(encodeutils.safe_decode(s, encoding), **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Process Iteration-Lmbench-17905:
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/iteration.py", line 75, in _worker_process
    result = method(scenario_output)
  File "/home/opnfv/repos/yardstick/yardstick/benchmark/scenarios/compute/lmbench.py", line 139, in run
    {"latencies": jsonutils.loads(stdout)})
  File "/usr/local/lib/python2.7/dist-packages/oslo_serialization/jsonutils.py", line 264, in loads
    return json.loads(encodeutils.safe_decode(s, encoding), **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
2020-04-20 15:26:02,066 [ERROR] yardstick.benchmark.core.task task.py:282 Scenario NO.1: "Lmbench" ERROR!
2020-04-20 15:26:02,067 [ERROR] yardstick.benchmark.core.task task.py:283 Iteration runner status 1
2020-04-20 15:26:02,067 [INFO] yardstick.benchmark.core.task task.py:285 Runner ended
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 734, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 481, in format
    record.exc_text = self.formatException(record.exc_info)
  File "/usr/lib/python2.7/logging/__init__.py", line 439, in formatException
    traceback.print_exception(ei[0], ei[1], ei[2], None, sio)
  File "/opt/nsb_bin/trex/scripts/external_libs/simpy-3.0.10/simpy/_compat.py", line 30, in print_exception
    cause = cause.__dict__.get('__cause__', None)
AttributeError: 'NoneType' object has no attribute '__dict__'
Logged from file task.py, line 134
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 734, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 481, in format
    record.exc_text = self.formatException(record.exc_info)
  File "/usr/lib/python2.7/logging/__init__.py", line 439, in formatException
    traceback.print_exception(ei[0], ei[1], ei[2], None, sio)
  File "/opt/nsb_bin/trex/scripts/external_libs/simpy-3.0.10/simpy/_compat.py", line 30, in print_exception
    cause = cause.__dict__.get('__cause__', None)
AttributeError: 'NoneType' object has no attribute '__dict__'
Logged from file task.py, line 134
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 734, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 481, in format
    record.exc_text = self.formatException(record.exc_info)
  File "/usr/lib/python2.7/logging/__init__.py", line 439, in formatException
    traceback.print_exception(ei[0], ei[1], ei[2], None, sio)
  File "/opt/nsb_bin/trex/scripts/external_libs/simpy-3.0.10/simpy/_compat.py", line 30, in print_exception
    cause = cause.__dict__.get('__cause__', None)
AttributeError: 'NoneType' object has no attribute '__dict__'
Logged from file task.py, line 134
2020-04-20 15:26:02,071 [INFO] yardstick.benchmark.contexts.heat heat.py:472 Undeploying context 'yardstick-TC010-4646cc59' START
2020-04-20 15:26:44,072 [INFO] yardstick.benchmark.contexts.heat heat.py:475 Undeploying context 'yardstick-TC010-4646cc59' DONE
9482-5d41d397d077 <YAML_NAME>"
2020-04-20 15:26:44,081 [INFO] yardstick.benchmark.core.task task.py:161 Task ALL DONE, exiting
2020-04-20 15:26:44,082 [INFO] yardstick.cmd.commands.task task.py:63 Task FAILED
2020-04-20 15:26:44,082 [DEBUG] yardstick.benchmark.runners.base base.py:147 Terminating all runners
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...