Step 1 create instance in cell1
+--------------------------------------+--------+-----------+------------+-------------+---------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------+-----------+------------+-------------+---------------------------------+
| 84038890-8d70-45e1-8240-2303f4227e11 | yikun1 | MIGRATING | migrating | Running | public=2001:db8::a, 172.24.4.13 |
+--------------------------------------+--------+-----------+------------+-------------+---------------------------------+
Step 2 live migrate instance
nova live-migration 84038890-8d70-45e1-8240-2303f4227e11
Step 3
The instance will stuck in "MIGRATIING" state.
+--------------------------------------+--------+-----------+------------+-------------+---------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------+-----------+------------+-------------+---------------------------------+
| 84038890-8d70-45e1-8240-2303f4227e11 | yikun1 | MIGRATING | migrating | Running | public=2001:db8::a, 172.24.4.13 |
+--------------------------------------+--------+-----------+------------+-------------+---------------------------------+
ERROR LOG:
Exception during message handling: InstanceActionNotFound: Action for request_id req-5aa03558-ae14-458e-9c35-c3d377c7ce45 on instance 84038890-8d70-45e1-8240-2303f4227e11 not found
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 160, in _process_incoming
res = self.dispatcher.dispatch(message)
File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
return self._do_dispatch(endpoint, method, ctxt, args)
File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
result = func(ctxt, **new_args)
File "/opt/stack/nova/nova/compute/utils.py", line 875, in decorated_function
with EventReporter(context, event_name, instance_uuid):
File "/opt/stack/nova/nova/compute/utils.py", line 846, in __enter__
self.context, uuid, self.event_name, want_result=False)
File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 184, in wrapper
result = fn(cls, context, *args, **kwargs)
File "/opt/stack/nova/nova/objects/instance_action.py", line 169, in event_start
db_event = db.action_event_start(context, values)
File "/opt/stack/nova/nova/db/api.py", line 1957, in action_event_start
return IMPL.action_event_start(context, values)
File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 250, in wrapped
return f(context, *args, **kwargs)
File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 6155, in action_event_start
instance_uuid=values['instance_uuid'])
InstanceActionNotFound: Action for request_id req-5aa03558-ae14-458e-9c35-c3d377c7ce45 on instance 84038890-8d70-45e1-8240-2303f4227e11 not found
Step 1 create instance in cell1 ------- ------- ------- ------- ----+-- ------+ ------- ----+-- ------- ---+--- ------- ---+--- ------- ------- ------- ------- --+ ------- ------- ------- ------- ----+-- ------+ ------- ----+-- ------- ---+--- ------- ---+--- ------- ------- ------- ------- --+ 8d70-45e1- 8240-2303f4227e 11 | yikun1 | MIGRATING | migrating | Running | public=2001:db8::a, 172.24.4.13 | ------- ------- ------- ------- ----+-- ------+ ------- ----+-- ------- ---+--- ------- ---+--- ------- ------- ------- ------- --+
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 84038890-
+------
Step 2 live migrate instance 8d70-45e1- 8240-2303f4227e 11
nova live-migration 84038890-
Step 3 ------- ------- ------- ------- ----+-- ------+ ------- ----+-- ------- ---+--- ------- ---+--- ------- ------- ------- ------- --+ ------- ------- ------- ------- ----+-- ------+ ------- ----+-- ------- ---+--- ------- ---+--- ------- ------- ------- ------- --+ 8d70-45e1- 8240-2303f4227e 11 | yikun1 | MIGRATING | migrating | Running | public=2001:db8::a, 172.24.4.13 | ------- ------- ------- ------- ----+-- ------+ ------- ----+-- ------- ---+--- ------- ---+--- ------- ------- ------- ------- --+
The instance will stuck in "MIGRATIING" state.
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 84038890-
+------
It seems we need add @targets_cell decorator for **live_ migrate_ instance* * methods in conductor: /github. com/openstack/ nova/blob/ master/ nova/conductor/ manager. py#L378
https:/
ERROR LOG: otFound: Action for request_id req-5aa03558- ae14-458e- 9c35-c3d377c7ce 45 on instance 84038890- 8d70-45e1- 8240-2303f4227e 11 not found lib/python2. 7/dist- packages/ oslo_messaging/ rpc/server. py", line 160, in _process_incoming .dispatch( message) lib/python2. 7/dist- packages/ oslo_messaging/ rpc/dispatcher. py", line 213, in dispatch dispatch( endpoint, method, ctxt, args) lib/python2. 7/dist- packages/ oslo_messaging/ rpc/dispatcher. py", line 183, in _do_dispatch nova/nova/ compute/ utils.py" , line 875, in decorated_function context, event_name, instance_uuid): nova/nova/ compute/ utils.py" , line 846, in __enter__ lib/python2. 7/dist- packages/ oslo_versionedo bjects/ base.py" , line 184, in wrapper nova/nova/ objects/ instance_ action. py", line 169, in event_start event_start( context, values) nova/nova/ db/api. py", line 1957, in action_event_start event_start( context, values) nova/nova/ db/sqlalchemy/ api.py" , line 250, in wrapped nova/nova/ db/sqlalchemy/ api.py" , line 6155, in action_event_start uuid=values[ 'instance_ uuid']) otFound: Action for request_id req-5aa03558- ae14-458e- 9c35-c3d377c7ce 45 on instance 84038890- 8d70-45e1- 8240-2303f4227e 11 not found
Exception during message handling: InstanceActionN
Traceback (most recent call last):
File "/usr/local/
res = self.dispatcher
File "/usr/local/
return self._do_
File "/usr/local/
result = func(ctxt, **new_args)
File "/opt/stack/
with EventReporter(
File "/opt/stack/
self.context, uuid, self.event_name, want_result=False)
File "/usr/local/
result = fn(cls, context, *args, **kwargs)
File "/opt/stack/
db_event = db.action_
File "/opt/stack/
return IMPL.action_
File "/opt/stack/
return f(context, *args, **kwargs)
File "/opt/stack/
instance_
InstanceActionN