diff options
author | Matthew Treinish <treinish@linux.vnet.ibm.com> | 2013-01-10 14:39:00 -0500 |
---|---|---|
committer | Matthew Treinish <treinish@linux.vnet.ibm.com> | 2013-01-11 13:39:39 -0500 |
commit | e710897a50f4daac6337e9db114e8a73bf025dda (patch) | |
tree | fe00ec5e3822ab74c551c58bfa3ccc988b22dc28 /nova/utils.py | |
parent | 7529e513e2f71e6e054639aa3475ff21934625d4 (diff) | |
download | nova-e710897a50f4daac6337e9db114e8a73bf025dda.tar.gz nova-e710897a50f4daac6337e9db114e8a73bf025dda.tar.xz nova-e710897a50f4daac6337e9db114e8a73bf025dda.zip |
Skip domains on libvirt errors in get_vcpu_used()
This commit is to avoid a race condition between deletes
and creates. It is possible for a delete to remove a domain
from the list returned by _conn.listDomainsID() while
get_vcpu_used() is looping over the list. If this happens
libVirt raises a LibVirtError and sets the instance to the
ERROR state. To avoid this LibVirtError is caught and the loop
continues instead of raising the exception.
Change-Id: I3206142e36726936013bb27ccd4359de4f94b3a3
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions