terraform-provider-vsphere
terraform-provider-vsphere copied to clipboard
VMFS datastore not mounting on all cluster hosts
Community Guidelines
- [X] I have read and agree to the HashiCorp Community Guidelines .
- [X] Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
- [X] Do not leave "+1" or other comments that do not add relevant information or questions.
- [X] If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
v1.6.2
Terraform Provider
v2.6.1
VMware vSphere
v7.0.3
Description
Datastore only mounted to host that was specified and not the other hosts in the cluster.
Affected Resources or Data Sources
vsphere_vmfs_datastore
Terraform Configuration
resource "vsphere_vmfs_datastore" "datastore" {
for_each = var.datastores
name = each.key
host_system_id = module.vsphere_host[var.ds_mount_host].vmw_host_id
datastore_cluster_id = try(vsphere_datastore_cluster.dsc[each.value.dsc_name].id, null)
disks = [each.value.naa]
}
Debug Output
no output
Panic Output
No response
Expected Behavior
All hosts in cluster get datastore.
Actual Behavior
Only host specified in host_system_id
has the datastore mounted.
Steps to Reproduce
Add datastore.
Environment Details
Using FC for the storage.
Screenshots
Mounted Host
Non-mounted Host
References
No response
Hello, rmtilson! 🖐
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.