Comment 0 for bug 1248019

Revision history for this message
Chen Xiao (chenxiao) wrote : IOError occours when resize-confirm an instance with status 'VERIFY_RESIZE' using NFS bankend

when using at least two compute nodes, and use NFS share_storage to test resize an instance.
The configuration of NFS used the introduction about live-migration using NFS in community doc.

when executed command "nova resize ae6f9472-3080-4e86-8a52-f8e642081d15", can work well, and the instance's state will change to "VERIFY_RESIZE', Then I resize-confirm it, nova met the issue as follow:

{u'message': u"[Errno 39] Directory not empty: '/KVM/stack/data/nova/instances/ae6f9472-3080-4e86-8a52-f8e642081d15_resize'", u'code': 500, u'details': u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 263, in decorated_function |
| | return function(self, context, *args, **kwargs) |
| | File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2700, in confirm_resize |
| | do_confirm_resize(context, instance, migration_id) |
| | File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 246, in inner |
| | return f(*args, **kwargs) |
| | File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2697, in do_confirm_resize |
| | migration=migration) |
| | File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2724, in _confirm_resize |
| | network_info) |
| | File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4623, in confirm_migration |
| | self._cleanup_resize(instance, network_info) |
| | File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1018, in _cleanup_resize |
| | shutil.rmtree(target) |
| | File "/usr/lib64/python2.6/shutil.py", line 221, in rmtree |
| | onerror(os.rmdir, path, sys.exc_info()) |
| | File "/usr/lib64/python2.6/shutil.py", line 219, in rmtree |
| | os.rmdir(path) |
| | ', u'created': u'2013-10-22T15:10:50Z'}