Instance stuck in resize_prep when migrating from down compute, moves to ERROR when compute returns.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Lee Yarwood |
Bug Description
Description
===========
Instance stuck in resize_prep when migrating from down compute, moves to ERROR when compute returns later.
Steps to reproduce
==================
- Launch an instance:
- Stop compute service on the host:
$ sudo systemctl stop devstack@n-cpu
$ openstack compute service list
[..]
| 3 | nova-compute | host2.example.com | nova | enabled | down | 2018-12-
[..]
- Attempt to migrate the instance to another host:
$ openstack server migrate test
- Review the task_state of the instance:
$ openstack server show test
[..]
|
| OS-EXT-
- Restart the compute service:
$ sudo systemctl start devstack@n-cpu
$ openstack compute service list
[..]
| 3 | nova-compute | host2.example.com | nova | enabled | up | 2018-12-
[..]
- - Review the task_state and status of the instance:
$ openstack server show test
[..]
| OS-EXT-
| status | ERROR [..]
Expected result
===============
No attempt to migrate an instance is made while the source compute host is marked as down.
Actual result
=============
Instance left in an ERROR state after the compute service returns.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
master
2. Which hypervisor did you use?
(For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
What's the version of that?
Libvirt + KVM
2. Which storage type did you use?
(For example: Ceph, LVM, GPFS, ...)
What's the version of that?
N/A
3. Which networking type did you use?
(For example: nova-network, Neutron with OpenVSwitch, ...)
N/A
Logs & Configs
==============
Trace when the compute service restarts after attempting the migration:
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Dec 07 13:32:15 host2.example.com nova-compute[
Changed in nova: | |
assignee: | nobody → Lee Yarwood (lyarwood) |
status: | New → In Progress |
Change abandoned by Lee Yarwood (<email address hidden>) on branch: master /review. opendev. org/623489
Review: https:/