Hi, this is Jaewook from Soongsil University in Korea. I'm now facing issue in running yardstick test case.
When I run a sample test, 'yardstick task start samples/ping.yaml', following error is occurring continuously. BadRequest: Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-33fc9ecc-def5-4dcb-aa9f-d5b2e3e6134c) I'm using Ubuntu 16.04 and used Devstack and docker. Devstack version is Queens. I cannot figure out why this error keep occurring. Is this error already known issue? I would very appreciate if somebody help me.. Best Regards, Jaewook. + P.S. The following are my openrc file and details of the error. This is my openrc file : ================================================================================================================================================================== export OS_PROJECT_DOMAIN_ID=default export OS_REGION_NAME=RegionOne export OS_USER_DOMAIN_ID=default export OS_USER_DOMAIN_NAME=default export OS_PROJECT_NAME=admin export OS_IDENTITY_API_VERSION=3 export OS_PASSWORD=XXXXX export OS_AUTH_TYPE=password export OS_AUTH_URL=http://AAA.BBB.CCC.DDD/identity <http://aaa.bbb.ccc.ddd/identity> export OS_USERNAME=admin export OS_TENANT_NAME=admin export OS_VOLUME_API_VERSION=2 export EXTERNAL_NETWORK=public ================================================================================================================================================================== Here are some of the details of the error : ================================================================================================================================================================== 2018-02-22 10:31:25,392 [INFO] yardstick.cmd.commands.task task.py:54 Task START 2018-02-22 10:31:25,393 [INFO] yardstick.benchmark.core.task task.py:483 Parsing task config: samples/ping.yaml 2018-02-22 10:31:25,657 [INFO] yardstick.benchmark.contexts.heat heat.py:303 Deploying context 'demo-5c13f9c5' START 2018-02-22 10:31:25,659 [INFO] yardstick.orchestrator.heat heat.py:616 Creating stack 'demo-5c13f9c5' START 2018-02-22 10:31:25,950 [ERROR] yardstick.benchmark.contexts.heat heat.py:317 stack failed Traceback (most recent call last): File "/home/opnfv/repos/yardstick/yardstick/benchmark/contexts/heat.py", line 313, in deploy timeout=self.heat_timeout) File "/home/opnfv/repos/yardstick/yardstick/orchestrator/heat.py", line 621, in create heat_client = self.heat_client File "/home/opnfv/repos/yardstick/yardstick/orchestrator/heat.py", line 57, in heat_client heat_endpoint = op_utils.get_endpoint(service_type='orchestration') File "/home/opnfv/repos/yardstick/yardstick/common/openstack_utils.py", line 97, in get_endpoint "OS_REGION_NAME")) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 856, in get_endpoint return auth.get_endpoint(self, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 212, in get_endpoint service_catalog = self.get_access(session).service_catalog File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 136, in get_access self.auth_ref = self.get_auth_ref(session) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 198, in get_auth_ref return self._plugin.get_auth_ref(session, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py", line 167, in get_auth_ref authenticated=False, log=False, **rkwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 766, in post return self.request(url, 'POST', **kwargs) File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner return wrapped(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 655, in request raise exceptions.from_response(resp, method, url) BadRequest: Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-33fc9ecc-def5-4dcb-aa9f-d5b2e3e6134c) 2018-02-22 10:31:25,951 [ERROR] yardstick.benchmark.core.task task.py:127 Testcase: "ping" 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 242, in _run context.deploy() File "/home/opnfv/repos/yardstick/yardstick/benchmark/contexts/heat.py", line 313, in deploy timeout=self.heat_timeout) File "/home/opnfv/repos/yardstick/yardstick/orchestrator/heat.py", line 621, in create heat_client = self.heat_client File "/home/opnfv/repos/yardstick/yardstick/orchestrator/heat.py", line 57, in heat_client heat_endpoint = op_utils.get_endpoint(service_type='orchestration') File "/home/opnfv/repos/yardstick/yardstick/common/openstack_utils.py", line 97, in get_endpoint "OS_REGION_NAME")) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 856, in get_endpoint return auth.get_endpoint(self, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 212, in get_endpoint service_catalog = self.get_access(session).service_catalog File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 136, in get_access self.auth_ref = self.get_auth_ref(session) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 198, in get_auth_ref return self._plugin.get_auth_ref(session, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py", line 167, in get_auth_ref authenticated=False, log=False, **rkwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 766, in post return self.request(url, 'POST', **kwargs) File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner return wrapped(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 655, in request raise exceptions.from_response(resp, method, url) BadRequest: Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-33fc9ecc-def5-4dcb-aa9f-d5b2e3e6134c) 2018-02-22 10:31:25,951 [INFO] yardstick.benchmark.core.task task.py:143 Task samples/ping.yaml finished in 0 secs 2018-02-22 10:31:25,955 [INFO] yardstick.benchmark.core.task task.py:165 Report can be found in '/tmp/report.html' 2018-02-22 10:31:25,955 [INFO] yardstick.benchmark.core.task task.py:152 Total finished in 0 secs 2018-02-22 10:31:25,955 [INFO] yardstick.benchmark.core.task task.py:156 To generate report, execute command 'yardstick report generate 5c13f9c5-59f1-4bca-bc2a-15a4c6abedbc ping' 2018-02-22 10:31:25,955 [INFO] yardstick.benchmark.core.task task.py:157 Task ALL DONE, exiting 2018-02-22 10:31:25,956 [INFO] yardstick.cmd.commands.task task.py:64 Task FAILED Writing /home/opnfv/repos/yardstick/yardstick/resources/files/yardstick_key-408784f6 ... <type 'exceptions.RuntimeError'> Python 2.7.6: /usr/bin/python Thu Feb 22 10:31:25 2018 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 <module>() 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 = <function 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 = <class yardstick.cmd.cli.YardstickCLI> ).main = <unbound method YardstickCLI.main> global sys = <module 'sys' (built-in)> sys.argv = ['/usr/local/bin/yardstick', 'task', 'start', 'samples/ping.yaml'] /home/opnfv/repos/yardstick/yardstick/cmd/cli.py in main(self=<yardstick.cmd.cli.YardstickCLI instance>, argv=['task', 'start', 'samples/ping.yaml']) 160 self._handle_global_opts() 161 162 self._dispatch_func_notask() 163 finally: 164 self._clear_config_opts() self = <yardstick.cmd.cli.YardstickCLI instance> self._dispatch_func_notask = <bound method YardstickCLI._dispatch_func_notask of <yardstick.cmd.cli.YardstickCLI instance>> /home/opnfv/repos/yardstick/yardstick/cmd/cli.py in _dispatch_func_notask(self=<yardstick.cmd.cli.YardstickCLI instance>) 138 # dispatch to category parser 139 func = CONF.category.func 140 func(CONF.category) 141 142 def _dispatch_func_task(self, task_id): func = <bound method TaskCommands.do_start of <yardstick.cmd.commands.task.TaskCommands object>> global CONF = <oslo_config.cfg.ConfigOpts object> CONF.category undefined /home/opnfv/repos/yardstick/yardstick/cmd/commands/task.py in do_start(self=<yardstick.cmd.commands.task.TaskCommands object>, args=<oslo_config.cfg.SubCommandAttr object>, **kwargs={}) 63 else: 64 LOG.info <http://log.info/>('Task FAILED') 65 raise RuntimeError('Task Failed') 66 67 def _write_error_data(self, error): builtinRuntimeError = <type 'exceptions.RuntimeError'> <type 'exceptions.RuntimeError'>: Task Failed __class__ = <type 'exceptions.RuntimeError'> __delattr__ = <method-wrapper '__delattr__' of exceptions.RuntimeError object> __dict__ = {} __doc__ = 'Unspecified run-time error.' __format__ = <built-in method __format__ of exceptions.RuntimeError object> __getattribute__ = <method-wrapper '__getattribute__' of exceptions.RuntimeError object> __getitem__ = <method-wrapper '__getitem__' of exceptions.RuntimeError object> __getslice__ = <method-wrapper '__getslice__' of exceptions.RuntimeError object> __hash__ = <method-wrapper '__hash__' of exceptions.RuntimeError object> __init__ = <method-wrapper '__init__' of exceptions.RuntimeError object> __new__ = <built-in method __new__ of type object> __reduce__ = <built-in method __reduce__ of exceptions.RuntimeError object> __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.RuntimeError object> __repr__ = <method-wrapper '__repr__' of exceptions.RuntimeError object> __setattr__ = <method-wrapper '__setattr__' of exceptions.RuntimeError object> __setstate__ = <built-in method __setstate__ of exceptions.RuntimeError object> __sizeof__ = <built-in method __sizeof__ of exceptions.RuntimeError object> __str__ = <method-wrapper '__str__' of exceptions.RuntimeError object> __subclasshook__ = <built-in method __subclasshook__ of type object> __unicode__ = <built-in method __unicode__ of exceptions.RuntimeError object> 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 <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 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 ================================================================================================================================================================== ================================================ Jaewook Oh (오재욱) IISTRC - Internet Infra System Technology Research Center 369 Sangdo-ro, Dongjak-gu, 06978, Seoul, Republic of Korea
_______________________________________________ opnfv-tech-discuss mailing list [email protected] https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
