updated_volume = driver.volume_update_db(context, volume_id, host)
self.volume_rpcapi.create_volume(context, updated_volume, host,
- snapshot_id, image_id)
+ allow_reschedule=False,
+ snapshot_id=snapshot_id,
+ image_id=image_id)
def host_passes_filters(self, context, host, request_spec,
filter_properties):
if not utils.service_is_up(service):
raise exception.WillNotSchedule(host=host)
updated_volume = driver.volume_update_db(context, volume_id, host)
- self.volume_rpcapi.create_volume(context,
- updated_volume,
- host,
- snapshot_id,
- image_id)
+ self.volume_rpcapi.create_volume(context, updated_volume, host,
+ allow_reschedule=False,
+ snapshot_id=snapshot_id,
+ image_id=image_id)
return None
results = db.service_get_all_volume_sorted(elevated)
self.volume_rpcapi.create_volume(context,
updated_volume,
service['host'],
- snapshot_id,
- image_id)
+ allow_reschedule=False,
+ snapshot_id=snapshot_id,
+ image_id=image_id)
return None
msg = _("Is the appropriate service running?")
raise exception.NoValidHost(reason=msg)