Public bug reported:

env:openstack master branch

step:
1.admin user create flavor 
Flavor Name:test1  VCPUs:1  RAM:256MB  Root Disk:5G     Ephemeral Disk:5G Swap 
Disk:5MB

2.admin user create instance use flavor test1.

3.admin user create a new flavor
Flavor Name:test2  VCPUs:1  RAM:256MB  Root Disk:5G     Ephemeral Disk:4G Swap 
Disk:5MB
(turn down  Ephemeral Disk)

4.resize the instance choose flavor test2

problem:
1.resize the instance if ephemeral_gb turn down the nova-compute raise exception
2.flavor no chnage but horizon no warning

 
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server [None req-2b01ccc1-f5b1-4a7e-8c07-6cf1f06a56e5 admin 
admin] Exception during message handling: ResizeError: Resize error: Unable to 
resize disk down.
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server Traceback (most recent call last):
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 163, in 
_process_incoming
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 220, 
in dispatch
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, 
args)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 190, 
in _do_dispatch
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     result = func(ctxt, **new_args)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", 
line 76, in wrapped
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     function_name, call_dict, binary)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     self.force_reraise()
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", 
line 67, in wrapped
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return f(self, context, *args, **kw)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 186, in decorated_function
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     "Error: %s", e, instance=instance)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     self.force_reraise()
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 156, in decorated_function
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/utils.py", line 
970, in decorated_function
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 214, in decorated_function
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     kwargs['instance'], e, sys.exc_info())
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     self.force_reraise()
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 202, in decorated_function
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 4288, in resize_instance
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     migration, image, disk_info, 
migration.dest_compute)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/usr/lib64/python2.7/contextlib.py", line 35, 
in __exit__
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     self.gen.throw(type, value, traceback)
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 7429, in _error_out_instance_on_exception
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     raise error.inner_exception
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server ResizeError: Resize error: Unable to resize disk down.
Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server 

Analysis
1.nova-compute no judge ephemeral_gb turn down
2.in nova-api judge if ephemeral_gb turn down raise exception

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  resize the instance is  fail

Status in OpenStack Compute (nova):
  New

Bug description:
  env:openstack master branch

  step:
  1.admin user create flavor 
  Flavor Name:test1  VCPUs:1  RAM:256MB  Root Disk:5G   Ephemeral Disk:5G Swap 
Disk:5MB

  2.admin user create instance use flavor test1.

  3.admin user create a new flavor
  Flavor Name:test2  VCPUs:1  RAM:256MB  Root Disk:5G   Ephemeral Disk:4G Swap 
Disk:5MB
  (turn down  Ephemeral Disk)

  4.resize the instance choose flavor test2

  problem:
  1.resize the instance if ephemeral_gb turn down the nova-compute raise 
exception
  2.flavor no chnage but horizon no warning

   
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server [None req-2b01ccc1-f5b1-4a7e-8c07-6cf1f06a56e5 admin 
admin] Exception during message handling: ResizeError: Resize error: Unable to 
resize disk down.
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server Traceback (most recent call last):
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 163, in 
_process_incoming
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 220, 
in dispatch
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, 
args)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 190, 
in _do_dispatch
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     result = func(ctxt, **new_args)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", 
line 76, in wrapped
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     function_name, call_dict, binary)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     self.force_reraise()
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/exception_wrapper.py", 
line 67, in wrapped
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return f(self, context, *args, **kw)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 186, in decorated_function
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     "Error: %s", e, instance=instance)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     self.force_reraise()
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 156, in decorated_function
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/utils.py", line 
970, in decorated_function
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 214, in decorated_function
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     kwargs['instance'], e, sys.exc_info())
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     self.force_reraise()
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 202, in decorated_function
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     return function(self, context, *args, **kwargs)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 4288, in resize_instance
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     migration, image, disk_info, 
migration.dest_compute)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/usr/lib64/python2.7/contextlib.py", line 35, 
in __exit__
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     self.gen.throw(type, value, traceback)
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server   File "/opt/stack/nova/nova/compute/manager.py", 
line 7429, in _error_out_instance_on_exception
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server     raise error.inner_exception
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server ResizeError: Resize error: Unable to resize disk down.
  Mar 13 02:11:21 localhost.localdomain nova-compute[7792]: ERROR 
oslo_messaging.rpc.server 

  Analysis
  1.nova-compute no judge ephemeral_gb turn down
  2.in nova-api judge if ephemeral_gb turn down raise exception

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to