[Openstack] [Nova] InstanceNotFound: Instance "UUID" could not be found.

Dongwon Cho eastbest1 at gmail.com
Thu Jun 30 02:13:49 UTC 2016


Hi all,

Recently, I am getting this error message below suddenly.

=====================================================================================================
==> /var/log/nova/nova-compute.log <==
2016-06-30 09:49:04.051 23236 ERROR nova.compute.resource_tracker
[req-0094be09-63e8-4674-b7dd-f12ee9aa6e21 - - - - -] Migration for instance
1ac7a8ef-f14f-40cc-a06d-f028ce9beaef refers to another host's instance!
Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line
85, in _object_dispatch
    return getattr(target, method)(*args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py",
line 181, in wrapper
    result = fn(cls, context, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/nova/objects/instance.py", line
399, in get_by_uuid
    use_slave=use_slave)

  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
285, in wrapper
    return f(*args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/nova/objects/instance.py", line
391, in _db_instance_get_by_uuid
    columns_to_join=columns_to_join)

  File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 696, in
instance_get_by_uuid
    return IMPL.instance_get_by_uuid(context, uuid, columns_to_join)

  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
229, in wrapper
    return f(*args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
330, in wrapped
    return f(context, *args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
1964, in instance_get_by_uuid
    columns_to_join=columns_to_join)

  File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
1973, in _instance_get_by_uuid
    raise exception.InstanceNotFound(instance_id=uuid)

InstanceNotFound: Instance 1ac7a8ef-f14f-40cc-a06d-f028ce9beaef could not
be found.
 _update_usage_from_migrations
/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py:840

=====================================================================================================

It says that that instance could not be found and as it says, that instance
had been deleted when I checked it on the database as follow.

MariaDB [nova]> select deleted_at,uuid from instances where uuid =
'1ac7a8ef-f14f-40cc-a06d-f028ce9beaef';

+---------------------+--------------------------------------+
| deleted_at          | uuid                                 |
+---------------------+--------------------------------------+
| 2016-06-28 01:38:18 | 1ac7a8ef-f14f-40cc-a06d-f028ce9beaef |
+---------------------+--------------------------------------+
1 row in set (0.01 sec)

Could somebody explain me why it happens and how to fix it?

This is what I am working on.

dpkg -l | grep nova-compute
ii  nova-compute                         2:13.0.0-0ubuntu2
  all          OpenStack Compute - compute node base
ii  nova-compute-kvm                     2:13.0.0-0ubuntu2
  all          OpenStack Compute - compute node (KVM)
ii  nova-compute-libvirt                 2:13.0.0-0ubuntu2
  all          OpenStack Compute - compute node libvirt support

dpkg -l | grep nova
ii  nova-api                         2:13.0.0-0ubuntu2
all          OpenStack Compute - API frontend
ii  nova-common                      2:13.0.0-0ubuntu2
all          OpenStack Compute - common files
ii  nova-conductor                   2:13.0.0-0ubuntu2
all          OpenStack Compute - conductor service
ii  nova-consoleauth                 2:13.0.0-0ubuntu2
all          OpenStack Compute - Console Authenticator
ii  nova-novncproxy                  2:13.0.0-0ubuntu2
all          OpenStack Compute - NoVNC proxy
ii  nova-scheduler                   2:13.0.0-0ubuntu2
all          OpenStack Compute - virtual machine scheduler
ii  python-nova                      2:13.0.0-0ubuntu2
all          OpenStack Compute Python libraries


Dongwon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160630/3625c1a5/attachment.html>


More information about the Openstack mailing list