From: mat Date: Tue, 15 May 2012 15:35:12 +0000 (+0200) Subject: Calling Super method from QuantumPortAwareScheduler.__init__ X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ae73d027140f87a881f4b324e6c243afc81cfbb0;p=openstack-build%2Fneutron-build.git 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 --- 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"