← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1589812] [NEW] Live migration fails using "openstack server migrate"

 

Public bug reported:

Description
===========

Attempting to migrate a server using the "openstack server migrate"
command fails if the server lives on shared storage (like Ceph).

The problem is that nova/compute/api.py:live_migrate() expects a
"block_migration" boolean whereas
openstackclient/compute/v2/server.py:take_action() passes a
"shared_migration" boolean.

Steps to reproduce
==================

Ensure instance in on shared storage and attempt to migrate it:

[root@phsospc2n2 ~]# openstack server migrate --live phsospc2n5
--shared-migration --wait testlm

Expected result
===============

[root@phsospc2n2 ~]# openstack server migrate --live phsospc2n5 --shared-migration --wait testlm
Complete

Actual result
=============

[root@phsospc2n2 ~]# openstack server migrate --live phsospc2n5 --shared-migration --wait testlm
phsospc2n4 is not on local storage: Block migration can not be used with shared storage. (HTTP 400) (Request-ID: req-7d535333-4220-457b-af81-0b90290bf84d)


Environment
===========

python-openstackclient-2.2.0-1.el7.noarch

** Affects: nova
     Importance: Undecided
         Status: New

** Patch added: "One possible solution"
   https://bugs.launchpad.net/bugs/1589812/+attachment/4678657/+files/livemigration.diff

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

Title:
  Live migration fails using "openstack server migrate"

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========

  Attempting to migrate a server using the "openstack server migrate"
  command fails if the server lives on shared storage (like Ceph).

  The problem is that nova/compute/api.py:live_migrate() expects a
  "block_migration" boolean whereas
  openstackclient/compute/v2/server.py:take_action() passes a
  "shared_migration" boolean.

  Steps to reproduce
  ==================

  Ensure instance in on shared storage and attempt to migrate it:

  [root@phsospc2n2 ~]# openstack server migrate --live phsospc2n5
  --shared-migration --wait testlm

  Expected result
  ===============

  [root@phsospc2n2 ~]# openstack server migrate --live phsospc2n5 --shared-migration --wait testlm
  Complete

  Actual result
  =============

  [root@phsospc2n2 ~]# openstack server migrate --live phsospc2n5 --shared-migration --wait testlm
  phsospc2n4 is not on local storage: Block migration can not be used with shared storage. (HTTP 400) (Request-ID: req-7d535333-4220-457b-af81-0b90290bf84d)

  
  Environment
  ===========

  python-openstackclient-2.2.0-1.el7.noarch

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


Follow ups