diff options
| author | Daniel P. Berrange <berrange@redhat.com> | 2012-07-05 13:18:05 +0100 |
|---|---|---|
| committer | Daniel P. Berrange <berrange@redhat.com> | 2012-07-19 12:20:23 +0100 |
| commit | 9c16f2a05245bc0a6ae0af5f8edbde65ba812837 (patch) | |
| tree | b9df79873b3f392cc122a5081ac54af2772d0713 /nova/api | |
| parent | 5f45eadbf2c1ea4a4cf6c9358aac269ca3f2cff6 (diff) | |
Don't let failure to delete filesystem block deletion of instances in libvirt
During cleanup of instances, the libvirt driver tries to delete all
files under the /var/lib/nova/instances/$INSTANCENAME directory. If
Nova is running non-root, it is entirely possible for this to fail.
If this happens an OSError is raised and the result is an unkillable
instance. By catching and logging any OSError raised, we can ensure
that the instances are cleaned up as much as possible and not left
with unkillable instances.
Change-Id: I204b087c610396d917e94a6e35dd2f5e1c26704e
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'nova/api')
0 files changed, 0 insertions, 0 deletions
