-
Notifications
You must be signed in to change notification settings - Fork 455
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
Storage Policy ID / Datastore is not applied to VM #991
Comments
This is pending support for content libraries which probably solves this issue: |
@bill-rich Now the vSphere supports storage policies and content library items. Problem is that one must provide
We provisioning VM from the content library item with |
Error when not setting any
|
@bill-rich just noticed that if you use content library item based VM provisioning (template uuid) your datastore_id that you provide to the resource is overwritten by the datastore that the template has. Is this intentional? Other bug is that with the version 1.17.1 Bottom line is that currently provisioning with content library item with datastore and guest_id is broken. |
This should be fixed in #1183. Please try again after the next provider release and let me know if you're still experiencing this issue. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Terraform Version
0.12.23
vSphere Provider Version
1.17.0
Affected Resource(s)
vsphere_virtual_machine
Terraform Configuration Files
Error
Expected Behavior
Terraform should create VM with disk in a datastore attached to the storage policy
Actual Behavior
Terraform creates VM with disk that is in a datastore where the template is.
storage_policy_id
doesn't affect at all to what datastore the disk is put. Even when I hardcode the storage policy id to the module levelstorage_policy_id
parameter it is not working.Noticed that the policy is set to VM and it's just the datastore that is not picked correctly from the policy.
We are using templates from the vCenter folder and not content library templates.
Steps to Reproduce
main.tf
file where you clone a VM template withstorage_policy_id
The text was updated successfully, but these errors were encountered: