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

Expand PVC uses VolumeSize and ignored Snapshot reserve #834

Closed
tgoetheyn opened this issue Jun 26, 2023 · 3 comments
Closed

Expand PVC uses VolumeSize and ignored Snapshot reserve #834

tgoetheyn opened this issue Jun 26, 2023 · 3 comments
Labels

Comments

@tgoetheyn
Copy link

Describe the bug
Fails to expand PVC if the new requested size is smaller than the total volume size.
This should be calculated on the DataSize instead (= Volume size - SnapshotReserve)

Environment
Provide accurate information about the environment to help us reproduce the issue.

  • Trident version: 22.10
  • Trident installation flags used: Default install through Helm
  • Container runtime: [e.g. Docker 19.03.1-CE]
  • Kubernetes version: v1.25.8+37a9a08
  • Kubernetes orchestrator: Openshift 4.12.18
  • Kubernetes enabled feature gates:
  • OS: RHEL CoreOS 412.86.202305161131-0 (Ootpa)
  • NetApp backend types: ONTAP 9.12.1P2
  • Other:

To Reproduce
Steps to reproduce the behavior:

  • Create a TridentBackendConfig with the "ontap-nas" storagedriver and a default snapshotreserve of 30%
  • Create PVC of 10GB using this TridentBackendConfig
  • Expand the PVC to 11GB
  • PVC expand fails with an error because 11Gb is smaller than the current volume size which is 13Gb (10Gb data + 3G snapshotreserve)

Expected behavior
recalculate new size while take in account the snapshotreserve => set Volume size to 14,3Gb (= 11Gb data space + 30% snapshot reserve)

Additional context
Add any other context about the problem here.

@tgoetheyn tgoetheyn added the bug label Jun 26, 2023
@tgoetheyn tgoetheyn changed the title Expand PVC used VolumeSize and ignored Snapshot reserve Expand PVC uses VolumeSize and ignored Snapshot reserve Jun 26, 2023
@tgoetheyn
Copy link
Author

Problem still exists in 23.07

@sjpeeris
Copy link
Collaborator

Hi @tgoetheyn Please let us know if this issue still exists with the newer versions of Trident. If this has been resolved, please close the issue.

@sjpeeris
Copy link
Collaborator

sjpeeris commented Nov 6, 2024

Closing. Please re-open if you notice this issue with newer versions of Trident.

@sjpeeris sjpeeris closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants