Failed to create stack

asked 2019-12-10 10:39:09 -0500

Karz gravatar image

updated 2019-12-15 05:57:15 -0500

Mohit gravatar image

I Installed openstack in ubutu and created a VM and installed storperf. After the configuration, when we try to execute the opnfv_yardstick_tc074, we get the below error message. I searched in google but not getting the exact reason to solve the issue.

Yardstick command : yardstick -d task start opnfv_yardstick_tc074.yaml

[ERROR] yardstick.benchmark.scenarios.storage.storperf storperf.py:108 Failed to create stack. 400: { "message": "Auth plugin requires parameters which were not given: auth_url"

Detailed log info:

root@180179bdd061:/home/opnfv/repos/yardstick/tests/opnfv/test_cases# yardstick -d task start opnfv_yardstick_tc074.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-12-10 17:38:17,827 [INFO] yardstick.cmd.commands.task task.py:52 Task START
2019-12-10 17:38:17,827 [DEBUG] yardstick.benchmark.core.task task.py:77 Output configuration is: {'DEFAULT': {'debug': '..
..
2019-12-10 17:38:17,828 [INFO] yardstick.benchmark.core.task task.py:547 Parsing task config: opnfv_yardstick_tc074.yaml
2019-12-10 17:38:17,846 [DEBUG] yardstick.benchmark.core.task task.py:536 Input task is:

---
schema: "yardstick:task:0.1"
description: >
    Test case for TC074 StorPerf benchmark task config file;
    StorPerf is a tool to measure block and object storage performance in an NFVI.
scenarios:

  type: StorPerf
  options:
    auth_url: http://10.106.XX.XX:5000/v3
    agent_count: 1
    agent_image: "Ubuntu-16.04"
    agent_flavor: "storperf"
    public_network: provider
    volume_size: 4
    block_sizes: 4096
    queue_depths: 4
    StorPerf_ip: 192.XXX.XX.XX
    query_interval: 10
    timeout: 300
    workload:
    workloads:
    steady_state_samples: 10
    volume_count: 1
    volume_type:
    availability_zone: nova
    subnet_CIDR: 172.XX.X.X/XX
    stack_name: StorperfAgentGroup
  runner:
    type: Iteration
    iterations: 1
context:
  type: Dummy
  name: Dummy
2019-12-10 17:38:17,851 [DEBUG] yardstick.benchmark.core.task task.py:378 Got a KeyError in config_context_target({})
2019-12-10 17:38:17,851 [DEBUG] yardstick.benchmark.core.task task.py:378 Got a KeyError in 
config_context_target({'task_id': '0fe9c2a3-7722-4701-bef6-613f275c3c33', u'runner': {u'type': u'Iteration', 'output_config': {'DEFAULT': {'debug': 'False', 'dispatcher': ['influxdb']}, 'nsb': {'trex_client_lib': '/opt/nsb_bin/trex_client/stl', 'bin_path': '/opt/nsb_bin', 'trex_path': '/opt/nsb_bin/trex/scripts', 'jre_path_i386': '/usr/lib/jvm/java-8-openjdk-i386/jre', 'debug': 'False', 'dispatcher': 'influxdb'}, 'dispatcher_influxdb': {}, 'dispatcher_http': {'debug': 'False', 'dispatcher': 'influxdb', 'timeout': '5', 'target': 'http://127.0.0.1:8000/results'}, 'dispatcher_file': {'debug': 'False', 'backup_count': '0', 'max_bytes': '0', 'dispatcher': 'influxdb', 'file_path': '/tmp/yardstick.out'}}, u'iterations': 1}, 'tc': 'opnfv_yardstick_tc074', u'type': u'StorPerf', u'options': {u'subnet_CIDR': u'172.16 XX.XX /16', u'volume_count': 1, u'agent_flavor': u'storperf', u'availability_zone': u'nova', u'stack_name': u'StorperfAgentGroup', u'block_sizes': 4096, u'steady_state_samples': 10, u'timeout': 300, u'volume_type': None, u'agent_count': 1, u'volume_size': 4, u'StorPerf_ip': u'192.168.0.57', u'workload': None, u'auth_url': u'http://10.106.XX.XX:5000/v3', u'public_network': u'provider', u'queue_depths': 4, u'workloads': None, u'query_interval': 10, u'agent_image': u'Ubuntu-16.04'}, 'task_path': ''})
2019-12-10 17:38:17,853 [INFO] yardstick.benchmark.core.task task.py:405 Starting runner of type 'Iteration'
2019-12-10 17:38 ...
(more)
edit retag flag offensive close merge delete

Comments

You probably have to set an environment variable such as OS_AUTH_URL, which contains the URL for the authentication API http://10.106.x.x:5000/v3.

Bernd Bausch gravatar imageBernd Bausch ( 2019-12-10 17:20:02 -0500 )edit