← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1248019] Re: OSError occours when try to resize-confirm an instance with status 'VERIFY_RESIZE' using NFS bankend (KVM)

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1248019

Title:
  OSError occours when try to resize-confirm an instance with status
  'VERIFY_RESIZE' using NFS bankend (KVM)

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  when using at least two compute nodes using KVM, 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'}

  cd /KVM/stack/data/nova/instances/be962096-a539-46c7-ae66-9ea383809e9b_resize
  [root@cc be962096-a539-46c7-ae66-9ea383809e9b_resize]# ls -al
  total 24340
  drwxr-xr-x  2 nobody nobody     4096 Oct 18  2013 .
  drwxrwxrwx 14 root   root       4096 Oct 18  2013 ..
  -rw-r--r--  1 nobody nobody 25034752 Oct 18  2013 .nfs000000000714002e00000001

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1248019/+subscriptions