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

Adding a vra_network that a vra_machine is connected to does not make the physical change #525

Closed
PaulAngus opened this issue Jun 12, 2024 · 1 comment
Labels
bug Bug

Comments

@PaulAngus
Copy link

Code of Conduct

This project has a Code of Conduct that all participants are expected to understand and follow:

vRA Version

8.16.1

Terraform Version

1.7.0

vRA Terraform Provider Version

0.9.0

Affected Resource(s)

vra_machine

Terraform Configuration Files

Initial configuration

data "vra_network" "network" {
  name = var.vmnetworkname
}

resource "vra_machine" "vm" {
  name          = var.vmname
  flavor        = var.vmflavorname
  image         = var.vmimagename
  project_id    = data.vra_project.project.id

  nics {
    network_id = data.vra_network.network.id
}

Updated configuration:

data "vra_network" "net1" {
  name = var.vm1networkname
}

data "vra_network" "net2" {
  name = var.vm1network2name
}

resource "vra_machine" "vm1" {
  name        = var.vm1name
  description = var.vm1description
  project_id  = data.vra_project.project1.id
  image       = var.vm1imagename
  flavor      = var.vm1flavorname

  nics {
    network_id = data.vra_network.net1.id
  }

  nics {
    network_id = data.vra_network.net2.id
  }
}

Expected Behavior

Adding a vra_network to an existing vra_machine and re-running terraform apply should add the additional network to the machine.

Actual Behavior

Terraform immediately returns that the modifications are complete. However, no changes have been made. It does not appear that any attempt is made to make this change.

Steps to Reproduce

Create a deployment with the a vra_machine connected to a network, add an additional network to the vra_machine and re-run terraform apply.

Screenshots

Debug Output

Panic Output

Important Factoids

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@PaulAngus PaulAngus added bug Bug needs-triage Needs Triage labels Jun 12, 2024
@frodenas
Copy link
Member

@thanks for reporting the issue @PaulAngus. I'm going to close this issue and consolidate the nic update issue it at #524.

@vmware vmware locked and limited conversation to collaborators Jul 13, 2024
@tenthirtyam tenthirtyam removed the needs-triage Needs Triage label Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug
Projects
None yet
Development

No branches or pull requests

3 participants