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

Inconsistent TF state when adding an unsupported number of Google Persistent Disks to an existing aggregate #208

Open
pablogarciaarevalo opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Jira Has an Internal Jira Story

Comments

@pablogarciaarevalo
Copy link

Cloud Volumes ONTAP supports up to 6 disks (persistent disks) per aggregate on Google Cloud
https://docs.netapp.com/us-en/cloud-volumes-ontap-relnotes/reference-limits-gcp.html#aggregate-limits

Creating a new aggregate with an unsupported number of disks, for example 'number_of_disks = 7', fails as expected with the below error:
code: 400, message: {"message":"Allowed number of disks is 1 to 6","causeMessage":"BadRequestException: Allowed number of disks is 1 to 6"

Trying to increase the number disks of an existent aggregate using an unsupported number of disks, it fails with the below error:
Error: code: 400, message: {"message":"Aggregate disks limit of 6 will be exceeded","causeMessage":"BadRequestException: Aggregate disks limit of 6 will be exceeded"

So far so good, but the issue is that the Terraform state keeps the number_of_disks to the new unsupported value instead of the origin value. After that, trying to modify the number of disks with a supported number of disks , for example 'number_of_disks = 5', it fails with the below error:
'Aggregate: number_of_disks cannot be reduced'

Attached the terraform output enabling the debug mode.
terraform_debug.txt

@chuyich chuyich added the Jira Has an Internal Jira Story label Dec 19, 2024
@chuyich
Copy link
Collaborator

chuyich commented Dec 19, 2024

DEVOPS-7286 raise to track it.

@chuyich chuyich added the bug Something isn't working label Dec 19, 2024
@chuyich chuyich self-assigned this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Jira Has an Internal Jira Story
Projects
None yet
Development

No branches or pull requests

2 participants