Ask Your Question
0

Cannot delete a snapshot after using it to create a volume

asked 2020-07-01 01:06:35 -0500

bathina2 gravatar image

In my use case I have a volume (volA) and I take a snapshot of it. Then I create a new volume (volB) using volA's snapshot as the source. At this point I would like to delete volA and its snapshot, however I can't seem to delete the snapshot as it's being referred to by volB. As soon as I delete volB I can clean every thing up.

How can I delete the original snapshot (and then the original volume) without deleting the clone.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-07-01 06:31:04 -0500

eblock gravatar image

In an openstack environment with ceph backend you could let cinder flatten the volume automatically during creation, that way the volume becomes independent from the snapshot which can be deleted afterwards. The cinder config is this one, and you would need to set it to true:

# Flatten volumes created from snapshots to remove dependency from volume to
# snapshot (boolean value)
#rbd_flatten_volume_from_snapshot = false

I don't know how that works with other cinder backends, though.

edit flag offensive delete link more

Comments

yes I think this is the answer. How do I configure cinder with this value if I am using magnum to deploy my cluster?

bathina2 gravatar imagebathina2 ( 2020-07-01 13:29:10 -0500 )edit

I'm not familiar with magnum, how would you change other config settings for different services?

eblock gravatar imageeblock ( 2020-07-02 02:30:06 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-07-01 01:06:35 -0500

Seen: 36 times

Last updated: Jul 01