ImageExists error when resizing instance in OpenStack

Solution Verified - Updated -

Issue

Unable to resize image in Red Hat OpenStack Platform. nova Instance details shows error error creating snapshot nova-resize from <INSTANCE_ID>

Sample error:

[root@aa10-cont1 ~(keystone_admin)]# nova show corinthians
+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                                                                                                                                                                      |
+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                    | AUTO                                                                                                                                                                                                                                       |
| OS-EXT-AZ:availability_zone          | nova                                                                                                                                                                                                                                       |
| OS-EXT-SRV-ATTR:host                 | aa10-comp1.interna.rf01.co                                                                                                                                                                                                                 |
| OS-EXT-SRV-ATTR:hostname             | corinthians                                                                                                                                                                                                                                         |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | aa10-comp1.interna.rf01.co                                                                                                                                                                                                                 |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000036                                                                                                                                                                                                                          |
| OS-EXT-SRV-ATTR:kernel_id            |                                                                                                                                                                                                                                            |
| OS-EXT-SRV-ATTR:launch_index         | 0                                                                                                                                                                                                                                          |
| OS-EXT-SRV-ATTR:ramdisk_id           |                                                                                                                                                                                                                                            |
| OS-EXT-SRV-ATTR:reservation_id       | r-c494d3vu                                                                                                                                                                                                                                 |
| OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                                                                                                                                                                                                                                   |
| OS-EXT-SRV-ATTR:user_data            | -                                                                                                                                                                                                                                          |
| OS-EXT-STS:power_state               | 1                                                                                                                                                                                                                                          |
| OS-EXT-STS:task_state                | -                                                                                                                                                                                                                                          |
| OS-EXT-STS:vm_state                  | error                                                                                                                                                                                                                                      |
| OS-SRV-USG:launched_at               | 2018-08-31T20:10:56.000000                                                                                                                                                                                                                 |
| OS-SRV-USG:terminated_at             | -                                                                                                                                                                                                                                          |
| accessIPv4                           |                                                                                                                                                                                                                                            |
| accessIPv6                           |                                                                                                                                                                                                                                            |
| config_drive                         |                                                                                                                                                                                                                                            |
| created                              | 2018-08-31T20:10:29Z                                                                                                                                                                                                                       |
| description                          | corinthians                                                                                                                                                                                                                                         |
| fault                                | {"message": "[errno 17] error creating snapshot nova-resize from f21769e0-e4d8-4f91-b237-1cf08a357f91_disk", "code": 500, "details": "  File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 204, in decorated_function |
|                                      |     return function(self, context, *args, **kwargs)                                                                                                                                                                                        |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 3984, in finish_resize                                                                                                                                           |
|                                      |     self._set_instance_obj_error_state(context, instance)                                                                                                                                                                                  |
|                                      |   File \"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py\", line 220, in __exit__                                                                                                                                                  |
|                                      |     self.force_reraise()                                                                                                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py\", line 196, in force_reraise                                                                                                                                             |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                                                                           |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 3972, in finish_resize                                                                                                                                           |
|                                      |     disk_info, image_meta)                                                                                                                                                                                                                 |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 3937, in _finish_resize                                                                                                                                          |
|                                      |     old_instance_type)                                                                                                                                                                                                                     |
|                                      |   File \"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py\", line 220, in __exit__                                                                                                                                                  |
|                                      |     self.force_reraise()                                                                                                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py\", line 196, in force_reraise                                                                                                                                             |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                                                                           |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 3932, in _finish_resize                                                                                                                                          |
|                                      |     block_device_info, power_on)                                                                                                                                                                                                           |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py\", line 7375, in finish_migration                                                                                                                                    |
|                                      |     fallback_from_host=migration.source_compute)                                                                                                                                                                                           |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py\", line 3062, in _create_image                                                                                                                                       |
|                                      |     fallback_from_host)                                                                                                                                                                                                                    |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py\", line 3163, in _create_and_inject_local_root                                                                                                                       |
|                                      |     backend.create_snap(libvirt_utils.RESIZE_SNAPSHOT_NAME)                                                                                                                                                                                |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py\", line 932, in create_snap                                                                                                                                    |
|                                      |     return self.driver.create_snap(self.rbd_name, name)                                                                                                                                                                                    |
|                                      |   File \"/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py\", line 384, in create_snap                                                                                                                               |
|                                      |     vol.create_snap(name)                                                                                                                                                                                                                  |
|                                      |   File \"/usr/lib/python2.7/site-packages/eventlet/tpool.py\", line 186, in doit                                                                                                                                                           |
|                                      |     result = proxy_call(self._autowrap, f, *args, **kwargs)                                                                                                                                                                                |
|                                      |   File \"/usr/lib/python2.7/site-packages/eventlet/tpool.py\", line 144, in proxy_call                                                                                                                                                     |
|                                      |     rv = execute(f, *args, **kwargs)                                                                                                                                                                                                       |
|                                      |   File \"/usr/lib/python2.7/site-packages/eventlet/tpool.py\", line 125, in execute                                                                                                                                                        |
|                                      |     six.reraise(c, e, tb)                                                                                                                                                                                                                  |
|                                      |   File \"/usr/lib/python2.7/site-packages/eventlet/tpool.py\", line 83, in tworker                                                                                                                                                         |
|                                      |     rv = meth(*args, **kwargs)                                                                                                                                                                                                             |
|                                      |   File \"rbd.pyx\", line 1790, in rbd.Image.create_snap (/builddir/build/BUILD/ceph-12.2.4/build/src/pybind/rbd/pyrex/rbd.c:15682)                                                                                                         |
|                                      | ", "created": "2018-08-31T20:11:47Z"}                                                                                                                                                                                                      |
| flavor                               | belezo.small (e667bb78-f9e0-4a42-981a-ce767800cffd)                                                                                                                                                                                        |
| hostId                               | 9c16dce0469872345abeec1987bf58a534b84fbc7a7ecef388937188                                                                                                                                                                                   |
| host_status                          | UP                                                                                                                                                                                                                                         |
| id                                   | f21769e0-e4d8-4f91-b237-1cf08a357f91                                                                                                                                                                                                       |
| image                                | web (bd31dc2d-3e5b-456a-aff6-aacf30413f97)                                                                                                                                                                                                 |
| interna network                      | 192.168.10.10                                                                                                                                                                                                                              |
| key_name                             | keypair-RF                                                                                                                                                                                                                                 |
| locked                               | False                                                                                                                                                                                                                                      |
| metadata                             | {}                                                                                                                                                                                                                                         |
| name                                 | corinthians                                                                                                                                                                                                                                         |
| os-extended-volumes:volumes_attached | []                                                                                                                                                                                                                                         |
| security_groups                      | default                                                                                                                                                                                                                                    |
| status                               | ERROR                                                                                                                                                                                                                                      |
| tags                                 | []                                                                                                                                                                                                                                         |
| tenant_id                            | caf54467feba4fad84faa7f4b2b212cb                                                                                                                                                                                                           |
| updated                              | 2018-08-31T20:11:47Z                                                                                                                                                                                                                       |
| user_id                              | 53f8ed8b6aa542ddada6140f9b9d7476                                                                                                                                                                                                           |
+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

In the compute, the following error is seen in /var/log/nova-compute.log:

[root@aa10-comp1 nova]# grep f21769e0-e4d8 nova-compute.log 
2018-08-31 20:11:41.012 1627 INFO nova.compute.claims [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Attempting claim: memory 2048 MB, disk 20 GB, vcpus 1 CPU
2018-08-31 20:11:41.013 1627 INFO nova.compute.claims [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Total memory: 6143 MB, used: 512.00 MB
2018-08-31 20:11:41.013 1627 INFO nova.compute.claims [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] memory limit: 9214.50 MB, free: 8702.50 MB
2018-08-31 20:11:41.013 1627 INFO nova.compute.claims [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Total disk: 39 GB, used: 0.00 GB
2018-08-31 20:11:41.014 1627 INFO nova.compute.claims [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] disk limit: 39.00 GB, free: 39.00 GB
2018-08-31 20:11:41.014 1627 INFO nova.compute.claims [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Total vcpu: 4 VCPU, used: 0.00 VCPU
2018-08-31 20:11:41.014 1627 INFO nova.compute.claims [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] vcpu limit: 64.00 VCPU, free: 64.00 VCPU
2018-08-31 20:11:41.015 1627 INFO nova.compute.claims [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Claim successful
2018-08-31 20:11:41.067 1627 INFO nova.compute.resource_tracker [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] Updating from migration f21769e0-e4d8-4f91-b237-1cf08a357f91
2018-08-31 20:11:41.098 1627 INFO nova.compute.manager [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Migrating
2018-08-31 20:11:46.455 1627 INFO nova.network.neutronv2.api [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Updating port 41d151d1-91d1-415c-8778-5dfd17a816d8 with attributes {'binding:host_id': u'aa10-comp1.interna.rf01.co'}
2018-08-31 20:11:47.810 1627 INFO nova.virt.libvirt.driver [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Creating image
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Setting instance vm_state to ERROR
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Traceback (most recent call last):
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3972, in finish_resize
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     disk_info, image_meta)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3937, in _finish_resize
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     old_instance_type)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     self.force_reraise()
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     six.reraise(self.type_, self.value, self.tb)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3932, in _finish_resize
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     block_device_info, power_on)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7375, in finish_migration
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     fallback_from_host=migration.source_compute)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3062, in _create_image
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     fallback_from_host)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3163, in _create_and_inject_local_root
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     backend.create_snap(libvirt_utils.RESIZE_SNAPSHOT_NAME)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 932, in create_snap
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     return self.driver.create_snap(self.rbd_name, name)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 384, in create_snap
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     vol.create_snap(name)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     rv = execute(f, *args, **kwargs)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     six.reraise(c, e, tb)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]     rv = meth(*args, **kwargs)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91]   File "rbd.pyx", line 1790, in rbd.Image.create_snap (/builddir/build/BUILD/ceph-12.2.4/build/src/pybind/rbd/pyrex/rbd.c:15682)
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] ImageExists: [errno 17] error creating snapshot nova-resize from f21769e0-e4d8-4f91-b237-1cf08a357f91_disk
2018-08-31 20:11:47.883 1627 ERROR nova.compute.manager [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] 
2018-08-31 20:11:48.215 1627 INFO nova.compute.manager [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] [instance: f21769e0-e4d8-4f91-b237-1cf08a357f91] Successfully reverted task state from resize_finish on failure for instance.
2018-08-31 20:11:48.269 1627 ERROR root [req-13c274e6-0911-4c48-b816-c6b8e279ca35 53f8ed8b6aa542ddada6140f9b9d7476 caf54467feba4fad84faa7f4b2b212cb - - -] Original exception being dropped: ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/site-packages/nova/exception_wrapper.py", line 66, in wrapped\n    return f(self, context, *args, **kw)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 188, in decorated_function\n    LOG.warning(msg, e, instance=instance)\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__\n    self.force_reraise()\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 157, in decorated_function\n    return function(self, context, *args, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/utils.py", line 613, in decorated_function\n    return function(self, context, *args, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 145, in decorated_function\n    migration.instance_uuid, exc_info=True)\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__\n    self.force_reraise()\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 122, in decorated_function\n    return function(self, context, *args, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 216, in decorated_function\n    kwargs[\'instance\'], e, sys.exc_info())\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__\n    self.force_reraise()\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 204, in decorated_function\n    return function(self, context, *args, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3984, in finish_resize\n    self._set_instance_obj_error_state(context, instance)\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__\n    self.force_reraise()\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3972, in finish_resize\n    disk_info, image_meta)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3937, in _finish_resize\n    old_instance_type)\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__\n    self.force_reraise()\n', '  File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise\n    six.reraise(self.type_, self.value, self.tb)\n', '  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3932, in _finish_resize\n    block_device_info, power_on)\n', '  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7375, in finish_migration\n    fallback_from_host=migration.source_compute)\n', '  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3062, in _create_image\n    fallback_from_host)\n', '  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3163, in _create_and_inject_local_root\n    backend.create_snap(libvirt_utils.RESIZE_SNAPSHOT_NAME)\n', '  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 932, in create_snap\n    return self.driver.create_snap(self.rbd_name, name)\n', '  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/storage/rbd_utils.py", line 384, in create_snap\n    vol.create_snap(name)\n', '  File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit\n    result = proxy_call(self._autowrap, f, *args, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call\n    rv = execute(f, *args, **kwargs)\n', '  File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute\n    six.reraise(c, e, tb)\n', '  File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker\n    rv = meth(*args, **kwargs)\n', '  File "rbd.pyx", line 1790, in rbd.Image.create_snap (/builddir/build/BUILD/ceph-12.2.4/build/src/pybind/rbd/pyrex/rbd.c:15682)\n', 'ImageExists: [errno 17] error creating snapshot nova-resize from f21769e0-e4d8-4f91-b237-1cf08a357f91_disk\n']

Attention to the snippet:

    ImageExists: [errno 17] error creating snapshot nova-resize from f21769e0-e4d8-4f91-b237-1cf08a357f91_disk

Environment

  • Red Hat OpenStack 9

  • Red Hat OpenStack 10

  • Ceph as a nova back-end

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