-
Couldn't load subscription status.
- Fork 580
flattenClonedRbdImages may require namespace (backport #5392) #5396
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
Conversation
flattenClonedRbdImages() requires namespace if it not the default one. Signed-off-by: Olivier Doucet <[email protected]> (cherry picked from commit b0eb428)
|
/test ci/centos/k8s-e2e-external-storage/1.32 |
|
/test ci/centos/k8s-e2e-external-storage/1.31 |
|
/test ci/centos/k8s-e2e-external-storage/1.30 |
|
/test ci/centos/mini-e2e-helm/k8s-1.32 |
|
/test ci/centos/mini-e2e-helm/k8s-1.31 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/mini-e2e-helm/k8s-1.30 |
|
/test ci/centos/mini-e2e/k8s-1.32 |
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
/test ci/centos/upgrade-tests-rbd |
|
/test ci/centos/mini-e2e/k8s-1.30 |
Describe what this PR does
PrepareVolumeForSnapshot()orflattenParentImage()requires rbd image flattening, that is performed in functionflattenClonedRbdImages(). This function is lacking namespace support. This was undetected before because ceph local installs, used as tests, provides a default namespace and it's not common behaviour to create new ones.The underlying bug is very critical : snapshots are performed but flattening are never performed, leading to accumulation of data.
Is there anything that requires special attention
Do you have any questions? no
Is the change backward compatible? yes
Are there concerns around backward compatibility? this code was tested with non-default namespaces but should be tested proactively in all situations.
Future concerns
Checklist:
guidelines in the developer guide.
This is my first PR on this project, let me know if I missed something.
This is an automatic backport of pull request #5392 done by Mergify.