Counting vcpus can fail when domains are not complete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Stanislaw Pitucha |
Bug Description
Libvirt allows the virDomainGetVcpus() function to fail in case the instance is not ready. This can cause random failures during instance startup or shutdown.
Traceback returned in that case is:
Traceback (most recent call last):
File "/usr/lib/
requested_
File "/usr/lib/
expected_
File "/usr/lib/
instance_
File "/usr/lib/
stats = self.get_
File "/usr/lib/
return self.host_
File "/usr/lib/
self.
File "/usr/lib/
data[
File "/usr/lib/
total += len(vcpus[1])
TypeError: 'NoneType' object has no attribute '__getitem__'
Changed in nova: | |
milestone: | none → grizzly-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/24094
Review: https:/