Evacuation fails due to ImageNotFound error even though instances boot from persistent volumes

Solution Verified - Updated -

Issue

  • An instance boots from an attached persistent volume.

    (overcloud) [stack@undercloud-0 ~]$ openstack server show aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
    +-------------------------------------+-------------------------------------------+
    | Field                               | Value                                     |
    +-------------------------------------+-------------------------------------------+
      :
    | id                                  | aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa      |
    | image                               | bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb      |
      :
    | status                              | ACTIVE                                    |
      :
    | volumes_attached                    | id='cccccccc-cccc-cccc-cccc-cccccccccccc' | <===(*)boot from a volume
    +-------------------------------------+-------------------------------------------+
    
  • Evacuation was executed.

    (overcloud) [stack@undercloud-0 ~]$ nova evacuate aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
    
  • However it failed

    (overcloud) [stack@undercloud-0 ~]$ nova migration-list
    +----+--------------------------------------+------------------------+------------------------+------------------------+------------------------+--------------+-----------+--------------------------------------+------------+------------+----------------------------+----------------------------+------------+
    | Id | UUID                                 | Source Node            | Dest Node              | Source Compute         | Dest Compute           | Dest Host    | Status    | Instance UUID                        | Old Flavor | New Flavor | Created At                 | Updated At                 | Type       |
    +----+--------------------------------------+------------------------+------------------------+------------------------+------------------------+--------------+-----------+--------------------------------------+------------+------------+----------------------------+----------------------------+------------+
    | 13 | cccccccc-cccc-cccc-cccc-cccccccccccc | compute-1.example.com  | compute-0.example.com  | compute-1.example.com  | compute-0.example.com  | 10.0.0.1     | failed    | aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa | None       | None       | 2022-04-19T07:14:25.000000 | 2022-04-19T07:14:28.000000 | evacuation |
    
  • The status of the instance became ERROR.
    fault shows Image XXXXX could not be found.

    (overcloud) [stack@undercloud-0 ~]$ openstack server show aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
    +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
    | Field                               | Value                                                                                                                              |
    +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
      :
    | fault                               | {u'message': u'Image bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb could not be found.', u'code': 404, u'created': u'2022-04-19T07:14:28Z'} |
      :
    | id                                  | aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa                                                                                               |
    | image                               | bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb                                                                                               |
      :
    | status                              | ERROR                                                                                                                              |
      :
    | volumes_attached                    | id='cccccccc-cccc-cccc-cccc-cccccccccccc'                                                                                          |
    +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
    
  • Evacuation should work even if the image has been deleted because it boots from a persistent volume.

Environment

  • Red Hat OpenStack Platform 13

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content