Restore by glance fail to remove temporary image
When restoring cinder by glance temporary image is created but failed to be cleaned up because of wrong parameters used for it's deletion. Change-Id: Id4b37eee6c4b7b4f3c76bf43cdca5092c70493b4 Closes-Bug: #1648150
This commit is contained in:
parent
9efe7e4922
commit
35adab80fd
|
@ -130,7 +130,7 @@ class RestoreOs(object):
|
|||
self.client_manager.get_cinder().volumes.create(size,
|
||||
imageRef=image.id)
|
||||
LOG.info("Deleting temporary image")
|
||||
self.client_manager.get_glance().images.delete(image)
|
||||
self.client_manager.get_glance().images.delete(image.id)
|
||||
|
||||
def restore_nova(self, instance_id, restore_from_timestamp,
|
||||
nova_network=None):
|
||||
|
|
Loading…
Reference in New Issue