Senlin rally job is broken

Bug #1752143 reported by Duc Truong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Confirmed
Undecided
Unassigned

Bug Description

The senlin rally task create-and-delete-profile-cluster.json is broken when running against latest senlin code:

2018-02-27 17:58:19.411 5281 ERROR rally.task.context [-] Task 6a9c4a13-a4d8-4e5f-9bb8-ce8861a29849 | Context profiles@openstack cleanup() failed after 0.34 msec: KeyError: 'profile'
2018-02-27 17:58:19.411 5281 ERROR rally.task.context Traceback (most recent call last):
2018-02-27 17:58:19.411 5281 ERROR rally.task.context File "/opt/stack/rally/rally/task/context.py", line 276, in cleanup
2018-02-27 17:58:19.411 5281 ERROR rally.task.context ctx.cleanup()
2018-02-27 17:58:19.411 5281 ERROR rally.task.context File "/opt/stack/rally/rally/plugins/openstack/context/senlin/profiles.py", line 73, in cleanup
2018-02-27 17:58:19.411 5281 ERROR rally.task.context self.context["tenants"][tenant_id]["profile"])
2018-02-27 17:58:19.411 5281 ERROR rally.task.context KeyError: 'profile'
2018-02-27 17:58:19.411 5281 ERROR rally.task.context
2018-02-27 17:58:19.412 5281 INFO rally.task.context [-] Task 6a9c4a13-a4d8-4e5f-9bb8-ce8861a29849 | Context users@openstack cleanup() started
2018-02-27 17:58:20.563 5281 INFO rally.task.context [-] Task 6a9c4a13-a4d8-4e5f-9bb8-ce8861a29849 | Context users@openstack cleanup() finished in 1.15 sec
2018-02-27 17:58:21.019 5281 INFO rally.task.engine [-] Load duration is: 0.0
2018-02-27 17:58:21.019 5281 INFO rally.task.engine [-] Full runner duration is: 0.0
2018-02-27 17:58:21.020 5281 INFO rally.task.engine [-] Full duration is: 1.555766
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine [-] Unexpected exception during the workload execution: ImportError: cannot import name client
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine Traceback (most recent call last):
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/task/engine.py", line 507, in _run_workload
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine with ctx_manager:
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/task/context.py", line 295, in __enter__
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine self.setup()
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/task/context.py", line 240, in setup
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine ctx.setup()
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/plugins/openstack/context/senlin/profiles.py", line 56, in setup
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine profile = senlin_scenario._create_profile(self.config)
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/task/atomic.py", line 91, in func_atomic_actions
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine f = func(self, *args, **kwargs)
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/plugins/openstack/scenarios/senlin/utils.py", line 135, in _create_profile
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine return self.clients("senlin").create_profile(**attrs)
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/plugins/openstack/scenario.py", line 104, in clients
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine return client(version) if version is not None else client()
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/plugins/openstack/osclients.py", line 203, in __call__
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine self.cache[key] = self.create_client(*args, **kwargs)
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine File "/opt/stack/rally/rally/plugins/openstack/osclients.py", line 737, in create_client
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine from senlinclient import client as senlin
2018-02-27 17:58:21.033 5281 ERROR rally.task.engine ImportError: cannot import name client

Steps to reproduce:
* Get latest rally code in devstack
* Get latest senlin code in devstack
* Run rally senlin task:
rally task start /opt/stack/rally/samples/tasks/scenarios/senlin/create-and-delete-profile-cluster.json

Changed in senlin:
status: New → Confirmed
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.