live migration fails during destination host check

Bug #1442602 reported by Timofey Durakov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Dan Smith
Kilo
Fix Released
High
Unassigned

Bug Description

steps to reproduce:
1.boot instance
2. call nova live-migration instance

during live-migration rpc method call check_can_live_migrate_destination() fails with:
2015-04-10 06:45:37.706 ERROR oslo_messaging.rpc.dispatcher [req-9a4b9986-2cfc-4c57-8622-ef6f84e3dfd2 admin admin] Exception during message handling: check_can_live_migrate_destination() takes exactly 6 arguments (5 given)
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher TypeError: check_can_live_migrate_destination() takes exactly 6 arguments (5 given)
2015-04-10 06:45:37.706 TRACE oslo_messaging.rpc.dispatcher
2015-04-10 06:45:37.708 ERROR oslo_messaging._drivers.common [req-9a4b9986-2cfc-4c57-8622-ef6f84e3dfd2 admin admin] Returning exception check_can_live_migrate_destination() takes exactly 6 arguments (5 given) to caller
2015-04-10 06:45:37.708 ERROR oslo_messaging._drivers.common [req-9a4b9986-2cfc-4c57-8622-ef6f84e3dfd2 admin admin] ['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply\n executor_callback))\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch\n executor_callback)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch\n result = func(ctxt, **new_args)\n', 'TypeError: check_can_live_migrate_destination() takes exactly 6 arguments (5 given)\n']

in nova/compute/manager.py class _ComputeV4Proxy has method:
def check_can_live_migrate_destination(self, ctxt, instance, destination,
                                           block_migration, disk_over_commit):
        return self.manager.check_can_live_migrate_destination(
            ctxt, instance, destination, block_migration, disk_over_commit)

here is signature of ComputeManager's class method:
 def check_can_live_migrate_destination(self, ctxt, instance,
                                           block_migration, disk_over_commit):

There is no 'destination' param in it. It should be removed from rpcapi, or added to implementation. _ComputeV4Proxy was added by patch ebfa09fa197a1d88d1b3ab1f308232c3df7dc009

Changed in nova:
status: New → Confirmed
Revision history for this message
Matthew Gilliard (matthew-gilliard-u) wrote :
tags: added: kilo-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/172429

Changed in nova:
assignee: nobody → Dan Smith (danms)
status: Confirmed → In Progress
Dan Smith (danms)
Changed in nova:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (proposed/kilo)

Fix proposed to branch: proposed/kilo
Review: https://review.openstack.org/172434

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/172429
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0c08f7f2ef070f7c6172d7742f9789e0a8bda91a
Submitter: Jenkins
Branch: master

commit 0c08f7f2ef070f7c6172d7742f9789e0a8bda91a
Author: Dan Smith <email address hidden>
Date: Fri Apr 10 07:10:52 2015 -0700

    Fix check_can_live_migrate_destination() in ComputeV4Proxy

    There was a mismatch in the V4 proxy in the call signatures of this
    function. This was missed because the "destination" parameter is passed
    in the rpcapi as the host to contact, which is consumed by the rpc
    layer and not passed. Since it was not called one of the standard
    names (either host if to be not passed, or host_param if to be passed),
    this was missed.

    Change-Id: Idf2160934dade650ed02b672f3b64cb26247f8e6
    Closes-Bug: #1442602

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/174059

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (proposed/kilo)

Change abandoned by Doug Hellmann (<email address hidden>) on branch: proposed/kilo
Review: https://review.openstack.org/172434
Reason: replaced by https://review.openstack.org/174059 in stable/kilo

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/kilo)

Reviewed: https://review.openstack.org/174059
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=97145ba175291d6522afa079860c72220e43024a
Submitter: Jenkins
Branch: stable/kilo

commit 97145ba175291d6522afa079860c72220e43024a
Author: Dan Smith <email address hidden>
Date: Fri Apr 10 07:10:52 2015 -0700

    Fix check_can_live_migrate_destination() in ComputeV4Proxy

    There was a mismatch in the V4 proxy in the call signatures of this
    function. This was missed because the "destination" parameter is passed
    in the rpcapi as the host to contact, which is consumed by the rpc
    layer and not passed. Since it was not called one of the standard
    names (either host if to be not passed, or host_param if to be passed),
    this was missed.

    Change-Id: Idf2160934dade650ed02b672f3b64cb26247f8e6
    Closes-Bug: #1442602
    (cherry picked from commit 0c08f7f2ef070f7c6172d7742f9789e0a8bda91a)

Thierry Carrez (ttx)
tags: removed: kilo-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/179284

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)
Download full text (18.1 KiB)

Reviewed: https://review.openstack.org/179284
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=5228d4e418734164ffa5ccd91d2865d9cc659c00
Submitter: Jenkins
Branch: master

commit 906ab9d6522b3559b4ad36d40dec3af20397f223
Author: He Jie Xu <email address hidden>
Date: Thu Apr 16 07:09:34 2015 +0800

    Update rpc version aliases for kilo

    Update all of the rpc client API classes to include a version alias
    for the latest version implemented in Kilo. This alias is needed when
    doing rolling upgrades from Kilo to Liberty. With this in place, you can
    ensure all services only send messages that both Kilo and Liberty will
    understand.

    Closes-Bug: #1444745

    Conflicts:
     nova/conductor/rpcapi.py

    NOTE(alex_xu): The conflict is due to there are some logs already added
    into the master.

    Change-Id: I2952aec9aae747639aa519af55fb5fa25b8f3ab4
    (cherry picked from commit 78a8b5802ca148dcf37c5651f75f2126d261266e)

commit f191a2147a21c7e50926b288768a96900cf4c629
Author: Hans Lindgren <email address hidden>
Date: Fri Apr 24 13:10:39 2015 +0200

    Add security group calls missing from latest compute rpc api version bump

    The recent compute rpc api version bump missed out on the security group
    related calls that are part of the api.

    One possible reason is that both compute and security group client side
    rpc api:s share a single target, which is of little value and only cause
    mistakes like this.

    This change eliminates future problems like this by combining them into
    one to get a 1:1 relationship between client and server api:s.

    Change-Id: I9207592a87fab862c04d210450cbac47af6a3fd7
    Closes-Bug: #1448075
    (cherry picked from commit bebd00b117c68097203adc2e56e972d74254fc59)

commit a2872a9262985bd0ee2c6df4f7593947e0516406
Author: Dan Smith <email address hidden>
Date: Wed Apr 22 09:02:03 2015 -0700

    Fix migrate_flavor_data() to catch instances with no instance_extra rows

    The way the query was being performed previously, we would not see any
    instances that didn't have a row in instance_extra. This could happen if
    an instance hasn't been touched for several releases, or if the data
    set is old.

    The fix is a simple change to use outerjoin instead of join. This patch
    includes a test that ensures that instances with no instance_extra rows
    are included in the migration. If we query an instance without such a
    row, we create it before doing a save on the instance.

    Closes-Bug: #1447132
    Change-Id: I2620a8a4338f5c493350f26cdba3e41f3cb28de7
    (cherry picked from commit 92714accc49e85579f406de10ef8b3b510277037)

commit e3a7b83834d1ae2064094e9613df75e3b07d77cd
Author: OpenStack Proposal Bot <email address hidden>
Date: Thu Apr 23 02:18:41 2015 +0000

    Updated from global requirements

    Change-Id: I5d4acd36329fe2dccb5772fed3ec55b442597150

commit 8c9b5e620eef3233677b64cd234ed2551e6aa182
Author: Divya <email address hidden>
Date: Tue Apr 21 08:26:29 2015 +0200

    Control create/delete flavor api permissions using policy.json

    The permissions of ...

Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-1 → 12.0.0
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.