]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Calling Super method from QuantumPortAwareScheduler.__init__
authormat <mathieu.rohon@gmail.com>
Tue, 15 May 2012 15:35:12 +0000 (17:35 +0200)
committermat <mathieu.rohon@gmail.com>
Wed, 16 May 2012 07:44:05 +0000 (09:44 +0200)
the quantum.plugins.cisco.nova.quantum_port_aware_scheduler.QuantumPortAwareScheduler class wasn't calling its superclass __init__.
the host_manager attribute of driver.Scheduler class wasn't initialized, and the scheduler was crashing when it was receiving a host message via amqp.

Fixes bug 994652

Change-Id: I733d80df8f87ff314f4233b10fa8afaf454eedf0

quantum/plugins/cisco/nova/quantum_port_aware_scheduler.py

index 3cb4440ed87e961ddf6603b90eab53b0aa1c3f4b..7362ef38dcc5335dae10e3fc8d80a0c4a9cc89f7 100644 (file)
@@ -70,6 +70,7 @@ class QuantumPortAwareScheduler(chance.ChanceScheduler):
         # needs some tenant name, but the tenant name will not be used
         # since the extensions URL does not require it
         LOG.debug("Initializing Cisco Quantum Port-aware Scheduler...")
+        super(QuantumPortAwareScheduler, self).__init__()
         client = Client(HOST, PORT, USE_SSL, format='json', version=VERSION,
                         uri_prefix="", tenant="dummy", logger=LOG)
         request_url = "/extensions"