Live migration fails using "openstack server migrate"

Bug #1589812 reported by Leland Lucius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Chinmaya Bharadwaj

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

Revision history for this message
Leland Lucius (openstack-b) wrote :
Changed in nova:
assignee: nobody → Chinmaya Bharadwaj (acbharadwaj)
tags: added: live-migration
Revision history for this message
Chinmaya Bharadwaj (acbharadwaj) wrote :

The issue exists in python-openstackclient, not in nova. Moving it to openstackclient

affects: nova → python-openstackclient
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

This bug report is duplicate of the following one.

Shared-Migration and Block-Migration are reversed
https://bugs.launchpad.net/python-openstackclient/+bug/1518059

tags: removed: live-migration
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.