Restarting nova compute has an exception

Bug #1243291 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Chris Behrens
Havana
Fix Released
Low
Chuck Short

Bug Description

(latest havana code - libvirt driver)

1. launch a nova vm
2. see that the instance is deployed on the compute node
3. restart the compute node

get the following exception:

2013-10-22 05:46:53.711 30742 INFO nova.openstack.common.rpc.common [req-57056535-4ecd-488a-a75e-ff83341afb98 None None] Connected to AMQP server on 192.168.10.111:5672
2013-10-22 05:46:53.737 30742 AUDIT nova.service [-] Starting compute node (version 2013.2)
2013-10-22 05:46:53.814 30742 ERROR nova.openstack.common.threadgroup [-] 'NoneType' object has no attribute 'network_info'
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 117, in wait
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup x.wait()
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py", line 49, in wait
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup return self.thread.wait()
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py", line 65, in run_service
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup service.start()
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/service.py", line 154, in start
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup self.manager.init_host()
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 786, in init_host
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup self._init_instance(context, instance)
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 664, in _init_instance
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup net_info = compute_utils.get_nw_info_for_instance(instance)
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup File "/usr/lib/python2.7/dist-packages/nova/compute/utils.py", line 349, in get_nw_info_for_instance
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup return instance.info_cache.network_info
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup AttributeError: 'NoneType' object has no attribute 'network_info'
2013-10-22 05:46:53.814 30742 TRACE nova.openstack.common.threadgroup

Chris Behrens (cbehrens)
Changed in nova:
assignee: nobody → Chris Behrens (cbehrens)
status: New → In Progress
Chris Behrens (cbehrens)
tags: added: havana-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/53174
Committed: http://github.com/openstack/nova/commit/a907c2f06b65dca7c2c0ea6119fe649864c6de11
Submitter: Jenkins
Branch: master

commit a907c2f06b65dca7c2c0ea6119fe649864c6de11
Author: Chris Behrens <email address hidden>
Date: Tue Oct 22 17:14:51 2013 +0000

    Fix getting nwinfo for Instance obj

    This fixes the get_nw_info_for_instance() method in nova/compute/utils.

    If an instance object has no 'info_cache' (means we lack an entry in the
    instance_info_caches table for the instance), don't try to access the
    'network_info' attribute. Just return a network model with empty
    networking information like the dict version of an instance would do.

    Change-Id: Ib1f49f10cefeefc55a87fea69b6fbc772c978dca
    Closes-bug: 1243291

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/54556

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

Reviewed: https://review.openstack.org/54556
Committed: http://github.com/openstack/nova/commit/847c564c34282b77990fc612dccd84283d0aa274
Submitter: Jenkins
Branch: stable/havana

commit 847c564c34282b77990fc612dccd84283d0aa274
Author: Chris Behrens <email address hidden>
Date: Tue Oct 22 17:14:51 2013 +0000

    Fix getting nwinfo for Instance obj

    This fixes the get_nw_info_for_instance() method in nova/compute/utils.

    If an instance object has no 'info_cache' (means we lack an entry in the
    instance_info_caches table for the instance), don't try to access the
    'network_info' attribute. Just return a network model with empty
    networking information like the dict version of an instance would do.

    Change-Id: Ib1f49f10cefeefc55a87fea69b6fbc772c978dca
    Closes-bug: 1243291
    (cherry picked from commit a907c2f06b65dca7c2c0ea6119fe649864c6de11)

tags: added: in-stable-havana
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Alan Pevec (apevec)
tags: removed: havana-backport-potential in-stable-havana
Changed in nova:
importance: Undecided → Low
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.1
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.