diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-08-12 22:36:10 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-08-12 22:36:10 -0700 |
| commit | c533e6ed3d2df8725dbcb48e7e546eb853b7ad41 (patch) | |
| tree | a20a8fc34b9e2828750bfcbc8182ed56b3273050 /nova/compute | |
| parent | f7d1270c94d884e661a79d74fb2b2f88f6eb619f (diff) | |
make sure security groups come back on restart of nova-compute
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/manager.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index d38213083..5b98e9ec1 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -170,7 +170,9 @@ class ComputeManager(manager.SchedulerDependentManager): elif drv_state == power_state.RUNNING: # Hyper-V and VMWareAPI drivers will raise and exception try: - self.driver.ensure_filtering_rules_for_instance(instance) + net_info = self._get_instance_nw_info(context, instance) + self.driver.ensure_filtering_rules_for_instance(instance, + net_info) except NotImplementedError: LOG.warning(_('Hypervisor driver does not ' 'support firewall rules')) @@ -1308,7 +1310,7 @@ class ComputeManager(manager.SchedulerDependentManager): # This nwfilter is necessary on the destination host. # In addition, this method is creating filtering rule # onto destination host. - self.driver.ensure_filtering_rules_for_instance(instance_ref) + self.driver.ensure_filtering_rules_for_instance(instance_ref, network_info) def live_migration(self, context, instance_id, dest): """Executing live migration. |
