example openstack_metric task.yaml fails

Bug #1903088 reported by Walt Boring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Triaged
Undecided
Unassigned

Bug Description

Running the documented example task fails.

The readme.rst here:
https://github.com/openstack/rally-openstack

Says to run

rally task start ./tasks/openstack_metrics/task.yaml --task-args {"image_name": "image_to_use", "flavor_name": "flavor_to_use"}

but it fails due to validation error.

rally task start ./tasks/openstack_metrics/task.yaml --task-args '{"image_name": "ubuntu-20.04-amd64-vmware", "flavor_name": "m1.medium", "floating_network": "my-floating"}'

RESULTS:

2020-11-05 12:12:05.371 9172 INFO rally.task.engine [-] Task e983a6a1-a944-4141-bc6b-034d6e24c13d | Starting: Task validation.
2020-11-05 12:12:05.376 9172 INFO rally.task.engine [-] Task e983a6a1-a944-4141-bc6b-034d6e24c13d | Starting: Task validation of syntax.
Input task is invalid!

Subtask GlanceImages.list_images[0] has wrong configuration
Subtask configuration:
{"version": 2, "title": "A cropped version of a bigger task.", "description": "Auto-generated task from a single workload", "subtasks": [{"title": "GlanceImages.list_images", "description": "List all images.", "scenario": {"GlanceImages.list_images": {"detailed": true}}, "contexts": {}, "runner": {"constant": {"times": 1, "concurrency": 1}}, "hooks": [], "sla": {"failure_rate": {"max": 0}}}]}

Reason(s):
 Scenario plugin 'GlanceImages.list_images' doesn't pass args-spec@default validation. Details: Unexpected argument(s) found ['detailed']. Use `rally plugin show --name GlanceImages.list_images --platform openstack` to display scenario description

Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

Can you submit a change to remove this wrong argument?

Changed in rally:
status: New → Triaged
Revision history for this message
Walt Boring (walter-boring) wrote :
Download full text (3.8 KiB)

I was able to fix it by replacing

      title: "Glance Image List"
      scenario:
        GlanceImages.list_images:
          detailed: True

with

      title: "Glance Image List"
      scenario:
        GlanceImages.list_images: {}

But now I am getting tons of multiprocessing errors:

2020-11-06 11:52:48.828 35147 ERROR rally.task.engine [-] Unexpected exception during the workload execution: TypeError: 'NoneType' object is not callable
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine Traceback (most recent call last):
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/devel/SAP/rally/.venv/lib/python3.8/site-packages/rally/task/engine.py", line 533, in _run_workload
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine runner_obj.run(workload["name"], context_obj,
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/devel/SAP/rally/.venv/lib/python3.8/site-packages/rally/task/runner.py", line 166, in run
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine self._run_scenario(scenario_plugin, "run", context, args)
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/devel/SAP/rally/.venv/lib/python3.8/site-packages/rally/plugins/task/runners/constant.py", line 244, in _run_scenario
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine process_pool = self._create_process_pool(
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/devel/SAP/rally/.venv/lib/python3.8/site-packages/rally/task/runner.py", line 192, in _create_process_pool
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine process.start()
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/.pyenv/versions/3.8.5/lib/python3.8/multiprocessing/process.py", line 121, in start
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine self._popen = self._Popen(self)
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/.pyenv/versions/3.8.5/lib/python3.8/multiprocessing/context.py", line 224, in _Popen
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine return _default_context.get_context().Process._Popen(process_obj)
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/.pyenv/versions/3.8.5/lib/python3.8/multiprocessing/context.py", line 284, in _Popen
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine return Popen(process_obj)
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/.pyenv/versions/3.8.5/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine super().__init__(process_obj)
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/.pyenv/versions/3.8.5/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine self._launch(process_obj)
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine File "/Users/i530566/.pyenv/versions/3.8.5/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch
2020-11-06 11:52:48.828 35147 ERROR rally.task.engine reduction.dump(proce...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.