Move vif plug forward in spawn
This change set moves the vif plugging to the start of the spawn operation. This is so that the corresponding neutron agent sees the VIF right after the LPAR create (rather than at the tail end of the deploy). This allows the neutron agent to run more efficiently. Change-Id: Ib5e5a6294131616f374778712c051da42ab2a233
This commit is contained in:
parent
300c3d3a83
commit
35d7cde1b3
|
@ -193,6 +193,11 @@ class PowerVMDriver(driver.ComputeDriver):
|
|||
flow.add(tf_vm.Create(self.adapter, self.host_wrapper, instance,
|
||||
flavor))
|
||||
|
||||
# Plug the VIFs
|
||||
vif_plug_info = {'instance': instance, 'network_info': network_info}
|
||||
flow.add(taskflow.task.FunctorTask(self._plug_vifs, name='plug_vifs',
|
||||
inject=vif_plug_info))
|
||||
|
||||
# Only add the image disk if this is from Glance.
|
||||
if not is_boot_from_volume:
|
||||
# Creates the boot image.
|
||||
|
@ -222,11 +227,6 @@ class PowerVMDriver(driver.ComputeDriver):
|
|||
network_info,
|
||||
admin_password))
|
||||
|
||||
# Plug the VIFs
|
||||
vif_plug_info = {'instance': instance, 'network_info': network_info}
|
||||
flow.add(taskflow.task.FunctorTask(self._plug_vifs, name='plug_vifs',
|
||||
inject=vif_plug_info))
|
||||
|
||||
# Last step is to power on the system.
|
||||
# Note: If moving to a Graph Flow, will need to change to depend on
|
||||
# the prior step.
|
||||
|
|
Loading…
Reference in New Issue