← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1242233] Re: nova resize revert will be failed when using lvm

 

see discussion at https://review.openstack.org/#/c/52807/

** Changed in: nova
       Status: In Progress => Opinion

-- 
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/1242233

Title:
  nova resize revert will be failed when using lvm

Status in OpenStack Compute (Nova):
  Opinion

Bug description:
  
  With following configuration:
  libvirt_images_type=lvm
  libvirt_images_volume_group=stack-volumes
  allow_resize_to_same_host = True

  liugya@liugya-ubuntu:~$ nova flavor-list
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |
  | 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
  | 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
  | 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
  | 42 | m1.nano   | 64        | 0    | 0         |      | 1     | 1.0         | True      |
  | 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
  | 6  | m1.test   | 256       | 1    | 0         |      | 2     | 1.0         | True      |
  | 84 | m1.micro  | 128       | 0    | 0         |      | 1     | 1.0         | True      |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+

  1) Create a VM based on flavor 1
  2) resize to flavor 6
  3) resize revert the VM, compute report error

  2013-10-20 10:19:15.677 DEBUG amqp [-] Channel open from (pid=21759) _open_ok /usr/local/lib/python2.7/dist-packages/amqp-1.0.12-py2.7.egg/amqp/channel.py:420
  2013-10-20 10:19:15.678 ERROR nova.openstack.common.rpc.amqp [req-2bb3187b-6555-4c6c-826d-0917c91aba97 admin admin] Exception during message handling
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 461, in _process_data
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     **args)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 354, in decorated_function
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/exception.py", line 90, in wrapped
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     payload)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/exception.py", line 73, in wrapped
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 244, in decorated_function
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     pass
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 230, in decorated_function
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 295, in decorated_function
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     function(self, context, *args, **kwargs)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 272, in decorated_function
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     e, sys.exc_info())
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 259, in decorated_function
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 2827, in finish_revert_resize
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     block_device_info, power_on)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4608, in finish_revert_migration
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     block_device_info, power_on)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3224, in _create_domain_and_network
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     domain = self._create_domain(xml, instance=instance, power_on=power_on)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3164, in _create_domain
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     domain.XMLDesc(0))
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3159, in _create_domain
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     domain.createWithFlags(launch_flags)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     result = proxy_call(self._autowrap, f, *args, **kwargs)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in proxy_call
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     rv = execute(f,*args,**kwargs)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     rv = meth(*args,**kwargs)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 581, in createWithFlags
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp libvirtError: Unable to allow access for disk path /dev/stack-volumes/instance-00000025_disk: No such file or directory
  2013-10-20 10:19:15.678 TRACE nova.openstack.common.rpc.amqp

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