nova-compute got exception cause of residual instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
李廷 |
Bug Description
Description
===========
Nova-compute got 'KeyError' exception when there is residual instance on the compute node.
Steps to reproduce
==================
* Stop nova-compute service on the compute node
* Then nova reset-state instance on the controller node
* Then nova delete instance on the controller node
* Finally start nova-compute service on the compute node
Expected result
===============
nova-compute service can update its info to DB.
Actual result
=============
nova-compute service got the 'KeyError' exception.
Environment
===========
1. nova version used: stable/mitaka
openstack-
openstack-
openstack-
openstack-
python-
openstack-
python-
openstack-
openstack-
2.Libvirt + KVM
libvirt-
qemu-kvm-
Logs & Configs
==============
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
2016-10-27 16:40:20.936 25310 ERROR nova.compute.
Changed in nova: | |
assignee: | nobody → 李廷 (liting19840711) |
description: | updated |
I checked the source code and found that: libvirt/ driver. py line 7070
block_ device_ info = driver. get_block_ device_ info(
local_ instances[ guest.uuid] , bdms[guest.uuid])
nova/virt/
Should it use local_instances .get(guest. uuid)?