Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

unable to create mulitple snapshots from the same node #177

Open
naved001 opened this issue Aug 13, 2018 · 1 comment
Open

unable to create mulitple snapshots from the same node #177

naved001 opened this issue Aug 13, 2018 · 1 comment

Comments

@naved001
Copy link
Contributor

naved001 commented Aug 13, 2018

https://github.com/CCI-MOC/ims/blob/119e9ceaf62859b9c7e64f96fb33ab45b58af938/ims/einstein/operations.py#L325

this line always tries to create a snap, which prevents any subsequent calls to create snapshot. We should check if the snapshot exists, and create it only if it doesn't exist. We should always create a new rbd snapshot to get the latest changes.

@naved001
Copy link
Contributor Author

All we have to do is delete the rbd snapshot when we are done creating the bmi snapshot. So just 2 more lines (rbd unprotect, rbd rm) at the end of this function should do the trick.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant