Bug 1985712
Summary: | Migration gets stuck at pre-migrating status if source compute node is down but maintenance enabled | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Takashi Kajinami <tkajinam> |
Component: | openstack-nova | Assignee: | Lee Yarwood <lyarwood> |
Status: | CLOSED MIGRATED | QA Contact: | OSP DFG:Compute <osp-dfg-compute> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 16.1 (Train) | CC: | alifshit, dasmith, eglynn, jhakimra, kchamart, lyarwood, sbauza, sgordon, vromanso |
Target Milestone: | beta | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-nova-23.0.3-0.20210908140341.e39bbdc.el9ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-01-11 14:47:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Takashi Kajinami
2021-07-25 07:23:04 UTC
Migration becomes error status after the source compute node is started. ~~~ (overcloud) [stack@undercloud-0 ~]$ nova migration-list --instance-uuid d11a09f4-cb44-48ad-9375-8e1be7d77bb2 +----+--------------------------------------+------------------------+------------------------+------------------------+------------------------+-------------+--------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ | Id | UUID | Source Node | Dest Node | Source Compute | Dest Compute | Dest Host | Status | Instance UUID | Old Flavor | New Flavor | Created At | Updated At | Type | +----+--------------------------------------+------------------------+------------------------+------------------------+------------------------+-------------+--------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ | 15 | a7678b2e-4a4f-4fcc-a438-e057cc8796d6 | compute-0.redhat.local | compute-1.redhat.local | compute-0.redhat.local | compute-1.redhat.local | 172.17.1.45 | error | d11a09f4-cb44-48ad-9375-8e1be7d77bb2 | 5 | 5 | 2021-07-25T07:17:23.000000 | 2021-07-25T07:25:39.000000 | migration | +----+--------------------------------------+------------------------+------------------------+------------------------+------------------------+-------------+--------+--------------------------------------+------------+------------+----------------------------+----------------------------+-----------+ ~~~ ~~~ (overcloud) [stack@undercloud-0 ~]$ nova instance-action testinstance req-7b0486c6-1970-469c-b99e-f6b9c70ed1da +---------------+---------------------------------------------------------------------------------------------+ | Property | Value | +---------------+---------------------------------------------------------------------------------------------+ | action | migrate | | events | [{'event': 'compute_resize_instance', | | | 'finish_time': '2021-07-25T07:25:39.000000', | | | 'host': 'compute-0.redhat.local', | | | 'hostId': 'ede2468f5fe92029a8a42760bfe4a90f20f5c064e12ab911a8c80b22', | | | 'result': 'Error', | | | 'start_time': '2021-07-25T07:25:37.000000', | | | 'traceback': ' File ' | | | '"/usr/lib/python3.6/site-packages/nova/compute/utils.py", line ' | | | '1372, in decorated_function | | | ' | | | ' return function(self, context, *args, **kwargs) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/nova/compute/manager.py", ' | | | 'line 219, in decorated_function | | | ' | | | " kwargs['instance'], e, sys.exc_info()) | | | " | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", ' | | | 'line 220, in __exit__ | | | ' | | | ' self.force_reraise() | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", ' | | | 'line 196, in force_reraise | | | ' | | | ' six.reraise(self.type_, self.value, self.tb) | | | ' | | | ' File "/usr/lib/python3.6/site-packages/six.py", line 675, in ' | | | 'reraise | | | ' | | | ' raise value | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/nova/compute/manager.py", ' | | | 'line 207, in decorated_function | | | ' | | | ' return function(self, context, *args, **kwargs) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/nova/compute/manager.py", ' | | | 'line 4886, in resize_instance | | | ' | | | ' self._revert_allocation(context, instance, migration) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", ' | | | 'line 220, in __exit__ | | | ' | | | ' self.force_reraise() | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", ' | | | 'line 196, in force_reraise | | | ' | | | ' six.reraise(self.type_, self.value, self.tb) | | | ' | | | ' File "/usr/lib/python3.6/site-packages/six.py", line 675, in ' | | | 'reraise | | | ' | | | ' raise value | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/nova/compute/manager.py", ' | | | 'line 4883, in resize_instance | | | ' | | | ' instance_type, clean_shutdown, request_spec) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/nova/compute/manager.py", ' | | | 'line 4905, in _resize_instance | | | ' | | | ' ' | | | 'instance.save(expected_task_state=task_states.RESIZE_PREP) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_versionedobjects/base.py", ' | | | 'line 210, in wrapper | | | ' | | | ' ctxt, self, fn.__name__, args, kwargs) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/nova/conductor/rpcapi.py", ' | | | 'line 246, in object_action | | | ' | | | ' objmethod=objmethod, args=args, kwargs=kwargs) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_messaging/rpc/client.py", ' | | | 'line 181, in call | | | ' | | | ' transport_options=self.transport_options) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_messaging/transport.py", ' | | | 'line 129, in _send | | | ' | | | ' transport_options=transport_options) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_messaging/_drivers/amqpdriver.py", ' | | | 'line 674, in send | | | ' | | | ' transport_options=transport_options) | | | ' | | | ' File ' | | | '"/usr/lib/python3.6/site-packages/oslo_messaging/_drivers/amqpdriver.py", ' | | | 'line 664, in _send | | | ' | | | ' raise result | | | '}, | | | {'event': 'compute_prep_resize', | | | 'finish_time': '2021-07-25T07:17:27.000000', | | | 'host': 'compute-1.redhat.local', | | | 'hostId': '5549c43406167205ceb5ec64dcbade90d1fc7a9155c6dd0d221e4858', | | | 'result': 'Success', | | | 'start_time': '2021-07-25T07:17:27.000000', | | | 'traceback': None}, | | | {'event': 'cold_migrate', | | | 'finish_time': '2021-07-25T07:17:27.000000', | | | 'host': 'controller-0.redhat.local', | | | 'hostId': 'baad4005132a4fa159710e2fa08f75da18843630088dd053b28b292b', | | | 'result': 'Success', | | | 'start_time': '2021-07-25T07:17:22.000000', | | | 'traceback': None}, | | | {'event': 'conductor_migrate_server', | | | 'finish_time': '2021-07-25T07:17:27.000000', | | | 'host': 'controller-0.redhat.local', | | | 'hostId': 'baad4005132a4fa159710e2fa08f75da18843630088dd053b28b292b', | | | 'result': 'Success', | | | 'start_time': '2021-07-25T07:17:22.000000', | | | 'traceback': None}] | | instance_uuid | d11a09f4-cb44-48ad-9375-8e1be7d77bb2 | | message | Error | | project_id | 942783ae248c4e9eb353a6e6b327bda5 | | request_id | req-7b0486c6-1970-469c-b99e-f6b9c70ed1da | | start_time | 2021-07-25T07:17:20.000000 | | updated_at | 2021-07-25T07:25:39.000000 | | user_id | 06b547a0af8f49fd8239c85ce5d9571b | +---------------+---------------------------------------------------------------------------------------------+ ~~~ |