nova-scheduler crashes with the cisco Quantum scheduler

Bug #994652 reported by Mathieu Rohon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Mathieu Rohon
quantum (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Precise by Yolanda Robla

Bug Description

when the nova scheduler is launched with the option :

--scheduler_driver=quantum.plugins.cisco.nova.quantum_port_aware_scheduler.QuantumPortAwareScheduler

it crashes when the scheduler gets an update_capabilities message from amqp :

2012-05-04 17:23:11 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_context_request_id': u'req-e68d7aff-768b-4e41-a5aa-2329d1339938', u'_context_read_deleted': u'no', u'args': {u'service_name': u'compute', u'host': u'Openstack-4', u'capabilities': {u'disk_available': 172, u'vcpus_used': 0, u'hypervisor_type': u'QEMU', u'disk_total': 179, u'host_memory_free': 95492, u'vcpus': 24, u'disk_used': 7, u'host_memory_total': 96816, u'hypervisor_version': 14001, u'cpu_info': {u'arch': u'x86_64', u'model': u'Westmere', u'vendor': u'Intel', u'features': [u'rdtscp', u'pdpe1gb', u'dca', u'xtpr', u'tm2', u'est', u'vmx', u'ds_cpl', u'monitor', u'pbe', u'tm', u'ht', u'ss', u'acpi', u'ds', u'vme'], u'topology': {u'cores': u'6', u'threads': u'2', u'sockets': u'2'}}}}, u'_context_auth_token': '<SANITIZED>', u'_context_is_admin': True, u'_context_project_id': None, u'_context_timestamp': u'2012-05-04T15:23:11.714265', u'_context_user_id': None, u'method': u'update_service_capabilities', u'_context_remote_address': None} from (pid=28904) _safe_log /usr/local/src/nova/nova/rpc/common.py:160
2012-05-04 17:23:11 DEBUG nova.rpc.amqp [req-e68d7aff-768b-4e41-a5aa-2329d1339938 None None] unpacked context: {'user_id': None, 'roles': [u'admin'], 'timestamp': '2012-05-04T15:23:11.714265', 'auth_token': '<SANITIZED>', 'remote_address': None, 'is_admin': True, 'request_id': u'req-e68d7aff-768b-4e41-a5aa-2329d1339938', 'project_id': None, 'read_deleted': u'no'} from (pid=28904) _safe_log /usr/local/src/nova/nova/rpc/common.py:160
2012-05-04 17:23:11 ERROR nova.rpc.amqp [req-e68d7aff-768b-4e41-a5aa-2329d1339938 None None] Exception during message handling
2012-05-04 17:23:11 TRACE nova.rpc.amqp Traceback (most recent call last):
2012-05-04 17:23:11 TRACE nova.rpc.amqp File "/usr/local/src/nova/nova/rpc/amqp.py", line 252, in _process_data
2012-05-04 17:23:11 TRACE nova.rpc.amqp rval = node_func(context=ctxt, **node_args)
2012-05-04 17:23:11 TRACE nova.rpc.amqp File "/usr/local/src/nova/nova/scheduler/manager.py", line 74, in update_service_capabilities
2012-05-04 17:23:11 TRACE nova.rpc.amqp capabilities)
2012-05-04 17:23:11 TRACE nova.rpc.amqp File "/usr/local/src/nova/nova/scheduler/driver.py", line 148, in update_service_capabilities
2012-05-04 17:23:11 TRACE nova.rpc.amqp self.host_manager.update_service_capabilities(service_name,
2012-05-04 17:23:11 TRACE nova.rpc.amqp AttributeError: 'QuantumPortAwareScheduler' object has no attribute 'host_manager'

Changed in quantum:
assignee: nobody → Sumit Naiksatam (snaiksat)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/7434

Changed in quantum:
assignee: Sumit Naiksatam (snaiksat) → mat (mathieu-rohon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/7444

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/7447

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/7447
Committed: http://github.com/openstack/quantum/commit/ae73d027140f87a881f4b324e6c243afc81cfbb0
Submitter: Jenkins
Branch: master

commit ae73d027140f87a881f4b324e6c243afc81cfbb0
Author: mat <email address hidden>
Date: Tue May 15 17:35:12 2012 +0200

    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

Changed in quantum:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
milestone: none → folsom-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (stable/essex)

Fix proposed to branch: stable/essex
Review: https://review.openstack.org/8649

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (stable/essex)

Reviewed: https://review.openstack.org/8649
Committed: http://github.com/openstack/quantum/commit/e54bc743a8e38bf845fd8144c6ea757311cff1f2
Submitter: Jenkins
Branch: stable/essex

commit e54bc743a8e38bf845fd8144c6ea757311cff1f2
Author: mat <email address hidden>
Date: Tue May 15 17:35:12 2012 +0200

    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

tags: added: in-stable-essex
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-1 → 2012.2
Changed in quantum (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.