terraform-provider-vsphere icon indicating copy to clipboard operation
terraform-provider-vsphere copied to clipboard

Add support for all services in vsphere_vnic

Open xabileiro opened this issue 1 year ago • 3 comments

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.

Description

I am configuring the vmk of a host with "vsphere_vnic" and when I want to configure the services it tells me that it only accepts ["vsan" "vmotion" "management"].

│ Error: expected services.1 to be one of ["vsan" "vmotion" "management"], got vSphereBackupNFC
│
│   with vsphere_vnic.vmk_mgmt,
│   on networks.tf line 176, in resource "vsphere_vnic" "vmk_mgmt":
│  176:   services                = [
│  177:     "management",
│  178:     "vSphereBackupNFC",
│  179:     "vSphereReplication",
│  180:     "vSphereReplicationNFC"
│  181:   ]

Use Case(s)

Create a cluster

Potential Terraform Provider Configuration

resource "vsphere_vnic" "vmk_mgmt" {
  host                    = data.vsphere_host.h1.id
  distributed_switch_port = vsphere_distributed_virtual_switch.dvs.id
  distributed_port_group  = vsphere_distributed_port_group.pg.id
  ipv4 {
    dhcp   = true
  }
  netstack = "defaultTcpipStack"
  mtu      = 9000
  services = [
    "management",
    "vSphereBackupNFC",
    "vSphereReplication",
    "vSphereReplicationNFC"
  ]
}

References

#1594

xabileiro avatar Oct 02 '23 15:10 xabileiro

Hello, xabileiro! 🖐

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.

github-actions[bot] avatar Oct 02 '23 15:10 github-actions[bot]

side mention - https://github.com/hashicorp/terraform-provider-vsphere/pull/2017#issuecomment-1753832562

rismoney avatar Oct 11 '23 14:10 rismoney

Marking this issue as stale due to inactivity in the past 180 days. This helps us focus on the active issues. If this issue is reproducible with the latest version of the provider, please comment. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] avatar Apr 09 '24 00:04 github-actions[bot]