During OSP8 -> OSP9 upgrade process live migration fails with `Live migration API v2.25 requires all the Mitaka upgrade to be complete before it is available.`

Solution Verified - Updated -

Issue

During the upgrade process from Red Hat OpenStack Platform 8 to 9, when live migration of the instances is performed before updating the compute node on a ceph environment, live migration fails with:

# nova live-migration [instance-name] [target-hostname] 

2017-07-11 09:58:56.887 22593 WARNING nova.scheduler.utils [req-2ff97d84-084f-4478-b0bf-c19b03c68b94 b21b79c3a5af482cbb3cbc9d5b109493 eae24742f3bb4ed5b442e367a85d321c - - -] Failed to compute_task_migrate_server: overcloud-test-compute-0.localdomain is not on local storage: Block migration can not be used with shared storage.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
    executor_callback))
  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
    executor_callback)
  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
    result = func(ctxt, **new_args)
  File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
    payload)
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped
    return f(self, context, *args, **kw)
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 400, in decorated_function
    return function(self, context, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 378, in decorated_function
    kwargs['instance'], e, sys.exc_info())
  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 366, in decorated_function
    return function(self, context, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5109, in check_can_live_migrate_source
    block_device_info)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5397, in check_can_live_migrate_source
    raise exception.InvalidLocalStorage(reason=reason, path=source)


DEBUG (shell:1082) Live migration with API v2.25 requires all the Mitaka upgrade to be complete before it is available. (HTTP 400) (Request-ID: req-bea5242f-388e-4d70-8d8c-644558d9e583)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 1080, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 1007, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 3853, in do_live_migration
    args.block_migrate)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 442, in live_migrate
    block_migration)
  File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 370, in substitution
    return methods[-1].func(obj, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1530, in live_migrate
    'block_migration': block_migration})
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1682, in _action
    info=info, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1693, in _action_return_resp_and_body
    return self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 179, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 94, in request
    raise exceptions.from_response(resp, body, url, method)
BadRequest: Live migration with API v2.25 requires all the Mitaka upgrade to be complete before it is available. (HTTP 400) (Request-ID: req-bea5242f-388e-4d70-8d8c-644558d9e583)
ERROR (BadRequest): Live migration with API v2.25 requires all the Mitaka upgrade to be complete before it is available. (HTTP 400) (Request-ID: req-bea5242f-388e-4d70-8d8c-644558d9e583)

Environment

  • Red Hat OpenStack Platform 9 control plane
  • Red Hat OpenStack Platform 8 computes

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content