← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1864624] Re: The instance is volume backed and power state is PAUSED,shelve the instance failed

 

I'll close this bug for keeping our bug tracking correct. Feel free to
mark this bug as duplicate if you created another bug.

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

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

Title:
  The instance is volume backed and power state is PAUSED,shelve the
  instance failed

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  The instance is volume backed and power state is PAUSED,shelve the
  instance failed. The reason is that can not attempt a clean shutdown
  of a paused guest instance some hypervisors will fail the clean
  shutdown if the guest is not running.

  Description
  ===========
  The instance is booted from volume, and pause the instance in paused status, and
  shelve this instance. But this instance's status is only paused not shelved.

  Steps to reproduce
  ==================
  1.Boot an instance from volume.
  2.Pause the instance.
  3.shelve the instance.

  Expected result
  ===============
  This instance's status is shelved.

  Actual result
  =============
  This instance's status is paused.

  Environment
  ===========
  1. OpenStack Rocky version
  2.Hypervisor is kvm
  3.The storage is Ceph
  4.Networking is Neutron with OpenVSwitch

  Logs&Configs
  ============
  The logs as following:
  ERROR oslo_messaging.rpc.server [req-2b83d684-eb08-4337-bcd8-39315db5bd4f ada583e8d8b24df695ecc6bcad83e0d8 749b546d5bcd4425ae53cbe1ba419f01 - - -] Exception during message handling: libvirtError: Requested operation is not valid: domain is not running
  ERROR oslo_messaging.rpc.server Traceback (most recent call last):
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 163, in _process_incoming
  ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 265, in dispatch
  ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 194, in _do_dispatch
  ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/exception_wrapper.py", line 79, in wrapped
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  ERROR oslo_messaging.rpc.server     self.force_reraise()
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/exception_wrapper.py", line 69, in wrapped
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/manager.py", line 188, in decorated_function
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  ERROR oslo_messaging.rpc.server     self.force_reraise()
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/manager.py", line 158, in decorated_function
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/utils.py", line 1141, in decorated_function
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/manager.py", line 216, in decorated_function
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  ERROR oslo_messaging.rpc.server     self.force_reraise()
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  ERROR oslo_messaging.rpc.server     six.reraise(self.type_, self.value, self.tb)
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/manager.py", line 204, in decorated_function
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/manager.py", line 4967, in shelve_offload_instance
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 274, in inner
  ERROR oslo_messaging.rpc.server     return f(*args, **kwargs)
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/manager.py", line 4966, in do_shelve_offload_instance
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/manager.py", line 4981, in _shelve_offload_instance
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/compute/manager.py", line 2451, in _power_off_instance
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/virt/libvirt/driver.py", line 2884, in power_off
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/virt/libvirt/driver.py", line 2812, in _clean_shutdown
  ERROR oslo_messaging.rpc.server   File "build/bdist.linux-x86_64/egg/nova/virt/libvirt/guest.py", line 610, in shutdown
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit
  ERROR oslo_messaging.rpc.server     result = proxy_call(self._autowrap, f, *args, **kwargs)
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call
  ERROR oslo_messaging.rpc.server     rv = execute(f, *args, **kwargs)
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute
  ERROR oslo_messaging.rpc.server     six.reraise(c, e, tb)
  ERROR oslo_messaging.rpc.server   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker
  ERROR oslo_messaging.rpc.server     rv = meth(*args, **kwargs)
  ERROR oslo_messaging.rpc.server   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2455, in shutdown
  ERROR oslo_messaging.rpc.server     if ret == -1: raise libvirtError ('virDomainShutdown() failed', dom=self)
  ERROR oslo_messaging.rpc.server libvirtError: Requested operation is not valid: domain is not running
  ERROR oslo_messaging.rpc.server

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