-
Couldn't load subscription status.
- Fork 580
flattenClonedRbdImages may require namespace #5392
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@odoucet Do you have any reproducer steps to verify the fix?
You can start following this guide to create namespace in ceph : https://access.redhat.com/solutions/4872331 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
Thanks !
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at b0eb428 |
flattenClonedRbdImages() requires namespace if it not the default one. Signed-off-by: Olivier Doucet <[email protected]>
4183efc to
c628b6d
Compare
|
/test ci/centos/k8s-e2e-external-storage/1.31 |
|
/test ci/centos/k8s-e2e-external-storage/1.33 |
|
/test ci/centos/mini-e2e-helm/k8s-1.31 |
|
/test ci/centos/k8s-e2e-external-storage/1.32 |
|
/test ci/centos/mini-e2e-helm/k8s-1.33 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
/test ci/centos/mini-e2e-helm/k8s-1.32 |
|
/test ci/centos/mini-e2e/k8s-1.33 |
|
/test ci/centos/upgrade-tests-rbd |
|
/test ci/centos/mini-e2e/k8s-1.32 |
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.