Nova fails to clean up objects in CEPH as resize operation fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
High
|
Oleksiy Molchanov |
Bug Description
Description
===========
During a nova resize operation CEPH (rbd) creates a snap object that gets moved to its destination. When nova resize fails for x reason, the rados object never gets cleaned up by nova and any attempts to resize thereafter will fail
Steps to reproduce
==================
- create an instance.
- resize the instance to a smaller image.
- this will cause a failure.
- attempt to resize the instance again.
- The resize operation fails with following error -
Error resizing server
Traceback (most recent call last):
File "/usr/lib/
disk_info, image_meta)
File "/usr/lib/
old_instance_type)
File "/usr/lib/
self.force_
File "/usr/lib/
six.reraise(
File "/usr/lib/
block_device_info, power_on)
File "/usr/lib/
fallback_
File "/usr/lib/
backend.
File "/usr/lib/
return self.driver.
File "/usr/lib/
vol.create_
File "/usr/lib/
result = proxy_call(
File "/usr/lib/
rv = execute(f, *args, **kwargs)
File "/usr/lib/
six.reraise(c, e, tb)
File "/usr/lib/
rv = meth(*args, **kwargs)
File "/usr/lib/
raise make_ex(ret, 'error creating snapshot %s from %s' % (name, self.name))
ImageExists: error creating snapshot nova-resize from 84e8d232-
Expected result
===============
Expect to successfully resize the instance.
Actual result
=============
Resize fails with above error.
Workaround
==========
Manually remove rbd object from the compute pool
1. Identify nova_resize object for pool
rbd snap ls -p compute 84e8d232-
2. Remove nova_resize snap
rbd snap rm compute/
3. Attempt to resize again.
Environment
===========
1. Openstack Mitaka
2. Which storage type did you use?
CEPH
3. Which networking type did you use?
Not relevant
Logs & Configs
==============
The above exception trace should give a good understanding of where the issue is occurring.
Changed in mos: | |
assignee: | nobody → Oleksiy Molchanov (omolchanov) |
Changed in mos: | |
importance: | Undecided → High |
status: | New → Confirmed |
Cannot reproduce.