Skip to content

Commit

Permalink
Calling Super method from QuantumPortAwareScheduler.__init__
Browse files Browse the repository at this point in the history
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
  • Loading branch information
matrohon authored and Gary Kotton committed Jun 17, 2012
1 parent 3b52fd3 commit e54bc74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quantum/plugins/cisco/nova/quantum_port_aware_scheduler.py
Expand Up @@ -68,6 +68,7 @@ def __init__(self):
# 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"
Expand Down

0 comments on commit e54bc74

Please sign in to comment.