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'}
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-f8e642081d 15", 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-f8e642081d 15_resize' ", u'code': 500, u'details': u' File "/usr/lib/ python2. 6/site- packages/ nova/compute/ manager. py", line 263, in decorated_function | python2. 6/site- packages/ nova/compute/ manager. py", line 2700, in confirm_resize | resize( context, instance, migration_id) | python2. 6/site- packages/ nova/openstack/ common/ lockutils. py", line 246, in inner | python2. 6/site- packages/ nova/compute/ manager. py", line 2697, in do_confirm_resize | migration) | python2. 6/site- packages/ nova/compute/ manager. py", line 2724, in _confirm_resize | python2. 6/site- packages/ nova/virt/ libvirt/ driver. py", line 4623, in confirm_migration | resize( instance, network_info) | python2. 6/site- packages/ nova/virt/ libvirt/ driver. py", line 1018, in _cleanup_resize | rmtree( target) | python2. 6/shutil. py", line 221, in rmtree | python2. 6/shutil. py", line 219, in rmtree | 10-22T15: 10:50Z' }
| | return function(self, context, *args, **kwargs) |
| | File "/usr/lib/
| | do_confirm_
| | File "/usr/lib/
| | return f(*args, **kwargs) |
| | File "/usr/lib/
| | migration=
| | File "/usr/lib/
| | network_info) |
| | File "/usr/lib/
| | self._cleanup_
| | File "/usr/lib/
| | shutil.
| | File "/usr/lib64/
| | onerror(os.rmdir, path, sys.exc_info()) |
| | File "/usr/lib64/
| | os.rmdir(path) |
| | ', u'created': u'2013-