← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1159755] Re: live-migration to an invalid host should exist gracefully. Currently, it throws a stack trace

 

** Changed in: nova/folsom
       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/1159755

Title:
  live-migration to an invalid host should exist gracefully. Currently,
  it throws a stack trace

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) folsom series:
  Fix Released

Bug description:
  Description
  -----------
  Configure nova, boot a couple of instances, & migrate any instance to a destination (which is invalid -- no compute service on it)

     $ nova live-migration 6fdcafa3-b86b-479e-b1cf-5e6859912e65
  test1.foo.bar.com

    
  Actual results:
  --------------
  An ungraceful stack trace:
  #============================#
  $ nova live-migration 6fdcafa3-b86b-479e-b1cf-5e6859912e65 test1.foo.bar.com
  ERROR: Compute service of maelstrom.lab.eng.pnq.redhat.com is unavailable at this time.
  Traceback (most recent call last):

    File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 276, in _process_data
      rval = self.proxy.dispatch(ctxt, version, method, **args)

    File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 145, in dispatch
      return getattr(proxyobj, method)(ctxt, **kwargs)

    File "/usr/lib/python2.6/site-packages/nova/scheduler/manager.py", line 101, in live_migration
      context, ex, request_spec)

    File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
      self.gen.next()

    File "/usr/lib/python2.6/site-packages/nova/scheduler/manager.py", line 91, in live_migration
      block_migration, disk_over_commit)

    File "/usr/lib/python2.6/site-packages/nova/scheduler/driver.py", line 232, in schedule_live_migration
      self._live_migration_dest_check(context, instance, dest)

    File "/usr/lib/python2.6/site-packages/nova/scheduler/driver.py", line 281, in _live_migration_dest_check
      raise exception.ComputeServiceUnavailable(host=dest)

  ComputeServiceUnavailable: Compute service of maelstrom.lab.eng.pnq.redhat.com is unavailable at this time.
   (HTTP 400) (Request-ID: req-248afb33-a9ed-4c68-822a-7dac6bc76cb3)
  #============================#

  Expected results:
  --------------
  If the destination host is invalid, live-migration should exist gracefully

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