summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorArata Notsu <notsu@virtualtech.jp>2012-10-18 20:00:44 +0900
committerArata Notsu <notsu@virtualtech.jp>2012-10-23 10:08:12 +0900
commite21d8ec390f3e0275903c13a4c9b53c8dcc027e7 (patch)
tree7162f0016334a57db9ba366bbb297478068794a8 /nova
parent6ea4de1e27fc1fe4b980acc7cfdbcf621ed45afb (diff)
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
Diffstat (limited to 'nova')
-rw-r--r--nova/compute/manager.py3
1 files changed, 3 insertions, 0 deletions
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)