yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #62139
[Bug 1671385] [NEW] [live migration] The instance's task status is pending on migrating
Public bug reported:
I am trying to migrate the instance to another compute node, but enter a wrong host name accidentally, after running the below commands,
$ nova live-migration 7ff75fa0-f88d-4bfd-8ef2-632e01f04bb9 $FAKE_HOST
Now the instance is pending on migration, and even cannot migration with
the *correct* destination host anymore, this is a bug I found in the N
stable release, but I believe the bug also exist in the O or master
branch.
The logs,
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/objects/compute_node.py", line 503, in get_all_by_host
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m use_slave=use_slave)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 225, in wrapper
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return f(*args, **kwargs)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/objects/compute_node.py", line 498, in _db_compute_node_get_all_by_host
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return db.compute_node_get_all_by_host(context, host)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/db/api.py", line 278, in compute_node_get_all_by_host
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return IMPL.compute_node_get_all_by_host(context, host)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 270, in wrapped
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return f(context, *args, **kwargs)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 667, in compute_node_get_all_by_host
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m raise exception.ComputeHostNotFound(host=host)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00mComputeHostNotFound: Compute host $fake could not be found.
change back to the correct hostname, now it says,
$ nova live-migration 6714b056-4950-4e63-83d3-fc383e977a53 openstack-dev
ERROR (Conflict): Cannot 'os-migrateLive' instance 6714b056-4950-4e63-83d3-fc383e977a53 while it is in task_state migrating (HTTP 409) (Request-ID: req-ed017800-37c0-4419-b533-3b52fba6b290)
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1671385
Title:
[live migration] The instance's task status is pending on migrating
Status in OpenStack Compute (nova):
New
Bug description:
I am trying to migrate the instance to another compute node, but enter a wrong host name accidentally, after running the below commands,
$ nova live-migration 7ff75fa0-f88d-4bfd-8ef2-632e01f04bb9 $FAKE_HOST
Now the instance is pending on migration, and even cannot migration
with the *correct* destination host anymore, this is a bug I found in
the N stable release, but I believe the bug also exist in the O or
master branch.
The logs,
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/objects/compute_node.py", line 503, in get_all_by_host
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m use_slave=use_slave)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 225, in wrapper
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return f(*args, **kwargs)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/objects/compute_node.py", line 498, in _db_compute_node_get_all_by_host
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return db.compute_node_get_all_by_host(context, host)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/db/api.py", line 278, in compute_node_get_all_by_host
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return IMPL.compute_node_get_all_by_host(context, host)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 270, in wrapped
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return f(context, *args, **kwargs)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 667, in compute_node_get_all_by_host
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m raise exception.ComputeHostNotFound(host=host)
^[[01;31m2017-03-09 03:12:03.541 TRACE nova.api.openstack.extensions ^[[01;35m^[[00mComputeHostNotFound: Compute host $fake could not be found.
change back to the correct hostname, now it says,
$ nova live-migration 6714b056-4950-4e63-83d3-fc383e977a53 openstack-dev
ERROR (Conflict): Cannot 'os-migrateLive' instance 6714b056-4950-4e63-83d3-fc383e977a53 while it is in task_state migrating (HTTP 409) (Request-ID: req-ed017800-37c0-4419-b533-3b52fba6b290)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1671385/+subscriptions