Skip to content
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

Remove thickprovision deprecated code from devel branch #2795

Closed
Madhu-1 opened this issue Jan 19, 2022 · 6 comments · Fixed by #2817
Closed

Remove thickprovision deprecated code from devel branch #2795

Madhu-1 opened this issue Jan 19, 2022 · 6 comments · Fixed by #2817
Assignees
Labels
Milestone

Comments

@Madhu-1
Copy link
Collaborator

Madhu-1 commented Jan 19, 2022

As we have already deprecated the thick provisioning in #2589 and it's already part of 3.5.0 we can plan to remove the support in 3.6.0. This issue is to track the same.

@nixpanic couple of questions

  • Is it a good time to remove this from the devel branch or should we wait?
  • What are the operations we need to support for already created images
    Mounting/Unmount should be enough?
@nixpanic
Copy link
Member

* Is it a good time to remove this from the devel branch or should we wait?

This would surely be a good time. We do not plan to improve the feature anyway.

* What are the operations we need to support for already created images
  Mounting/Unmount should be enough?

There is some metadata attribute in the RBD-image set. This can be removed in case it exists, but it also does not hurt to keep it. I do not think we need to pass special options for mounting anymore either. The metadata attribute would just be ignored. The CSI-Addons ReclaimSpace operation ignores the attribute as well already.

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Jan 25, 2022

* Is it a good time to remove this from the devel branch or should we wait?

This would surely be a good time. We do not plan to improve the feature anyway.

* What are the operations we need to support for already created images
  Mounting/Unmount should be enough?

There is some metadata attribute in the RBD-image set. This can be removed in case it exists, but it also does not hurt to keep it. I do not think we need to pass special options for mounting anymore either. The metadata attribute would just be ignored. The CSI-Addons ReclaimSpace operation ignores the attribute as well already.

Does this mean we can remove the current code in nodeplugin to map it as a normal rbd image without notrim option?

Madhu-1 added a commit to Madhu-1/ceph-csi that referenced this issue Jan 25, 2022
This commit removes the thick provisioning
code as thick provisioning is deprecated in
cephcsi 3.5.0.

fixes: ceph#2795

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Madhu-1 added a commit to Madhu-1/ceph-csi that referenced this issue Jan 25, 2022
This commit removes the thick provisioning
code as thick provisioning is deprecated in
cephcsi 3.5.0.

fixes: ceph#2795

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@Madhu-1 Madhu-1 added this to the release-3.6 milestone Jan 25, 2022
Madhu-1 added a commit to Madhu-1/ceph-csi that referenced this issue Jan 27, 2022
This commit removes the thick provisioning
code as thick provisioning is deprecated in
cephcsi 3.5.0.

fixes: ceph#2795

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@Madhu-1 Madhu-1 self-assigned this Jan 27, 2022
Madhu-1 added a commit to Madhu-1/ceph-csi that referenced this issue Jan 27, 2022
This commit removes the thick provisioning
code as thick provisioning is deprecated in
cephcsi 3.5.0.

fixes: ceph#2795

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Madhu-1 added a commit to Madhu-1/ceph-csi that referenced this issue Jan 27, 2022
This commit removes the thick provisioning
code as thick provisioning is deprecated in
cephcsi 3.5.0.

fixes: ceph#2795

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Madhu-1 added a commit to Madhu-1/ceph-csi that referenced this issue Jan 28, 2022
This commit removes the thick provisioning
code as thick provisioning is deprecated in
cephcsi 3.5.0.

fixes: ceph#2795

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@mergify mergify bot closed this as completed in #2817 Jan 28, 2022
mergify bot pushed a commit that referenced this issue Jan 28, 2022
This commit removes the thick provisioning
code as thick provisioning is deprecated in
cephcsi 3.5.0.

fixes: #2795

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@kfox1111
Copy link
Contributor

Does this affect existing volumes or just new volumes?

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Sep 1, 2022

@kfox1111 AFAIK Existing will also not work. you can manually add the notrim map/unmap option

@kfox1111
Copy link
Contributor

kfox1111 commented Sep 1, 2022

K. was preemptively asking as I wasn't sure if I had any or not. Now the next question becomes, how do I know if I have any? :)

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Sep 2, 2022

You can check below

  • Check if any storageclass has "thickProvision": "true" parameter set
  • check if any rbd image contains rbd.csi.ceph.com/thick-provisioned metadata set

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

Successfully merging a pull request may close this issue.

3 participants