From e21d8ec390f3e0275903c13a4c9b53c8dcc027e7 Mon Sep 17 00:00:00 2001 From: Arata Notsu Date: Thu, 18 Oct 2012 20:00:44 +0900 Subject: nova-compute sends its capabilities to schedulers ASAP Fixes Bug 1068114. When a nova-compute runs for the first time, after an entry in compute_nodes table is created, it takes some time for the capabilities to be sent to schedulers. It may make the schedulers send unacceptable requests to the nova-compute. This patch eliminates it by sending the capabilities before creating the entry in compute_node. Change-Id: Id9851d9a6f0305256dfa6dfb63ab508e6f519fa2 --- nova/compute/manager.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nova') diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 942b66563..ada4d1883 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -339,6 +339,9 @@ class ComputeManager(manager.SchedulerDependentManager): if FLAGS.defer_iptables_apply: self.driver.filter_defer_apply_off() + self._report_driver_status(context) + self._publish_service_capabilities(context) + def _get_power_state(self, context, instance): """Retrieve the power state for the given instance.""" LOG.debug(_('Checking state'), instance=instance) -- cgit