From ae73d027140f87a881f4b324e6c243afc81cfbb0 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 15 May 2012 17:35:12 +0200 Subject: [PATCH] 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 --- quantum/plugins/cisco/nova/quantum_port_aware_scheduler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/quantum/plugins/cisco/nova/quantum_port_aware_scheduler.py b/quantum/plugins/cisco/nova/quantum_port_aware_scheduler.py index 3cb4440ed..7362ef38d 100644 --- a/quantum/plugins/cisco/nova/quantum_port_aware_scheduler.py +++ b/quantum/plugins/cisco/nova/quantum_port_aware_scheduler.py @@ -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" -- 2.45.2