Skip to content

Commit

Permalink
Fixed a volume creation re-schedule error
Browse files Browse the repository at this point in the history
Don't see any reason to construct a list for request_spec['volume_id'].
And it indeed causes problems when the scheduler receives a reschedule
request with such a request_spec.

Fixes bug #1164857

Change-Id: I811e957d5bf9c814165d55ea0042833ea72c8de5
(cherry picked from commit 46b2a7d)
  • Loading branch information
LiangChen77 authored and Chuck Short committed Apr 10, 2013
1 parent e592135 commit e1c153c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinder/volume/manager.py
Expand Up @@ -368,7 +368,7 @@ def _reschedule(self, context, request_spec, filter_properties,
LOG.debug(_("No request spec, will not reschedule"))
return

request_spec['volume_id'] = [volume_id]
request_spec['volume_id'] = volume_id

LOG.debug(_("volume %(volume_id)s: re-scheduling %(method)s "
"attempt %(num)d") %
Expand Down

0 comments on commit e1c153c

Please sign in to comment.