-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mayastor is removing volumes with set persistentVolumeReclaimPolicy Retain #1787
Comments
If you delete the Is there any reason why you'd want to keep the mayastor volume when |
Yes, i want to change node affinity on pv definition. So i'd like to remove it, then recreate it, but when is set to retain I expect the data will not be deleted from maya. And that is pretty weird that it was not removed before, and it is not on my other clusters, but now it is on one. |
Looks like it runs on a 10 minute timer by default, so it might explain why you haven't seen it before. |
I don't think that 10min timer is a case as the volume from mayastor is removed within second every time. |
is there any workaround for this ? I did a test on both clusters:
on the one where is the issue, pv is immediately removed within 1sec from mayastor. Is there any bug that I encounter on one of my cluster? |
I'm able to reproduce. The issue you're seeing here is because we're explicitly listening on change events and deleting volumes: openebs/mayastor-control-plane#283 There's no work-around for this without code changes. |
that's still weird as I'm doing exact same scenario on both. So immediate deletion is correct behavior according to current implementation for this scenario and 10mins not? |
according to k8s doc : https://kubernetes.io/docs/concepts/storage/persistent-volumes/ Retain:
|
Indeed, I've raised a PR to disable it on 2.7 |
@fara-tode , Current fix disables the garbage collection completely. We will have a helm arg in future release if you want to enable it explicitly. Also we will expose a |
any plans to release openebs chart 4.1.3 or should I just use 4.1.2 updating mayastor dependency to 2.7.3 ? |
Next week is the plan. |
Describe the bug
when setting pv with Retain and delete this pv afterwards, mayastor is removing completely this volume.
This is not happening on my other installations of mayastor, also was not occuring on this installation but one day it just started.
To Reproduce
It may be hard to reproduce, as it just started one day to occur on one of my mayastor deployment.
Expected behavior
When PV with retain is deleted, data is not be deleted from mayastor.
Screenshots
If applicable, add screenshots to help explain your problem.
** OS info (please complete the following information):**
Distro: Ubuntu 24.04.1 LTS
Kernel version: 6.8.0-47-generic
MayaStor revision or container image: openebs.io/version=2.7.0
Additional context
adding dump from working and nonworking installation.
mayastor-2024-12-18--13-39-19-UTC-notwork.tar.gz
mayastor-2024-12-18--13-42-41-UTC-work.tar.gz
The text was updated successfully, but these errors were encountered: