Make compute rpcapi 'live_migration' backward compatible
This commit[1] added compute rpcapi version 4.2 which introduced a new
argument 'migration' when calling 'live_migration' method, but the code
did not ensure the backward compatibility with older version compute
node.
When calling 'live_migration' method with 'migration' argument on older
version(like Kilo) of nova compute node, a "TypeError: live_migration()
got an unexpected keyword argument 'migration'" will be threw up.
Reviewed: https:/ /review. openstack. org/318556 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=168409fa931 3d3643eb7ceea6c 8b5f2bef35d86f
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 168409fa9313d36 43eb7ceea6c8b5f 2bef35d86f
Author: Wenzhi Yu <wenzhi_yu@163.com>
Date: Thu Apr 28 16:06:57 2016 +0800
Make compute rpcapi 'live_migration' backward compatible
This commit[1] added compute rpcapi version 4.2 which introduced a new
argument 'migration' when calling 'live_migration' method, but the code
did not ensure the backward compatibility with older version compute
node.
When calling 'live_migration' method with 'migration' argument on older
version(like Kilo) of nova compute node, a "TypeError: live_migration()
got an unexpected keyword argument 'migration'" will be threw up.
[1]https:/ /github. com/openstack/ nova/commit/ 2f4e64a7cf81de4 a22fe2fc4210b1f 795b1a3db4
Change-Id: Ie5c498d34e7c4c 6573d611abd592c 25f1bcb4f44 f0639c402f64a05 247f475fea)
Closes-Bug: #1576048
(cherry picked from commit 34b8336a41e2896