Fix wrong param transfer in scheduler flows
In cinder.scheduler.flows.create_volume.ExtractSchedulerSpecTask,
the execute method call _populate_request_spec func if request_spec
is None. The original code shoulud pass an Volume() instance object
instead of volume.id in _populate_request_spec.
Amend the volume.id to volume.
Closes-Bug:
@@ -65,7 +65,7 @@ class ExtractSchedulerSpecTask(flow_utils.CinderTask):
image_id):
# For RPC version < 1.2 backward compatibility
if request_spec is None:
- request_spec = self._populate_request_spec(volume.id,
+ request_spec = self._populate_request_spec(volume,
snapshot_id, image_id)
return {
'request_spec': request_spec,
