move volume to the scheduler
This commit is contained in:
@@ -300,8 +300,10 @@ class CloudController(object):
|
|||||||
vol['attach_status'] = "detached"
|
vol['attach_status'] = "detached"
|
||||||
volume_ref = db.volume_create(context, vol)
|
volume_ref = db.volume_create(context, vol)
|
||||||
|
|
||||||
rpc.cast(FLAGS.volume_topic, {"method": "create_volume",
|
rpc.cast(FLAGS.scheduler_topic,
|
||||||
|
{"method": "create_volume",
|
||||||
"args": {"context": None,
|
"args": {"context": None,
|
||||||
|
"topic": FLAGS.volume_topic,
|
||||||
"volume_id": volume_ref['id']}})
|
"volume_id": volume_ref['id']}})
|
||||||
|
|
||||||
return {'volumeSet': [self._format_volume(context, volume_ref)]}
|
return {'volumeSet': [self._format_volume(context, volume_ref)]}
|
||||||
|
Reference in New Issue
Block a user