Calling Super method from QuantumPortAwareScheduler.__init__

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
This commit is contained in:
mat
2012-05-15 17:35:12 +02:00
parent 4513f5de42
commit f90dd96f77

View 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"