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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk provisioning settings are not correctly applied when using a datastore cluster. #2124

Open
4 tasks done
TrevGG opened this issue Jan 29, 2024 · 1 comment
Open
4 tasks done
Labels
bug Type: Bug needs-triage Status: Issue Needs Triage

Comments

@TrevGG
Copy link

TrevGG commented Jan 29, 2024

Community Guidelines

  • I have read and agree to the HashiCorp Community Guidelines .
  • Vote on this issue by adding a 馃憤 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Terraform

1.6.6

Terraform Provider

2.6.1

VMware vSphere

7.0.3

Description

When creating a VM from template via clone in terraform and using a datastore_cluster as the destination storage the disk provisioning settings are not correctly applied.

#2028 appears to have mostly fixed the problem for datastores(see my other issue) but the problem is still present when using a datastore cluster destination.

I have tested the following:

thin-template -> Request eager zero configured VM disk -> results in thin VM disk (Fail)
thin-template -> Request lazy zero configured VM disk -> results in thin VM disk (Fail)
thin-template -> Request thin configured VM disk -> results in thin VM disk (Pass)

lazy-zero-template -> Request eager zero configured VM disk -> results in lazy-zero VM disk (Fail)
lazy-zero-template -> Request lazy zero configured VM disk -> results in lazy-zero VM disk (Pass)
lazy-zero-template -> Request thin configured VM disk -> results in lazy-zero VM disk (Fail)

The Pass in my tests are a result of the source and destination settings matching. When attempting to use different disk settings than the source template they will not apply correctly.

Affected Resources or Data Sources

'resource/vsphere_virtual_machine'

Terraform Configuration

https://gist.github.com/TrevGG/a9e1c483d886fd65fa634602b313f29f

Debug Output

N/A

Panic Output

No response

Expected Behavior

Requested disk configuration should be applied.

Actual Behavior

Disk configuration is not applied (unless the same as source).

Steps to Reproduce

Create VM from template with disk settings that differ from source template.

Environment Details

No response

Screenshots

No response

References

No response

@TrevGG TrevGG added bug Type: Bug needs-triage Status: Issue Needs Triage labels Jan 29, 2024
Copy link

Hello, TrevGG! 馃枑

Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.

If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Bug needs-triage Status: Issue Needs Triage
Projects
None yet
Development

No branches or pull requests

1 participant