OpenNebula / terraform-provider-opennebula

Terraform provider for OpenNebula
https://www.terraform.io/docs/providers/opennebula/
Mozilla Public License 2.0
61 stars 54 forks source link

After removing the second network interface, it is not possible to add a new required network interface in resource opennebula_virtual_machine #496

Closed god7trong closed 8 months ago

god7trong commented 9 months ago

Description

Make it possible to normally manage network interfaces

Terraform and Provider version

1.4.6 terraform version /// 1.3.1 provider version

Affected resources and data sources

No response

Terraform configuration

resource "opennebula_virtual_machine" "example" {
  nic {
    network_id      = 0
    security_groups = [0]
  }
  nic {
    network_id      = 1
    security_groups = [0]
  }
}

Expected behavior

After removing the second interface, adding the expected network interface

Actual behavior

An IP from the first interface is attached

Steps to Reproduce

  1. Create vm with 2 network interfaces from different subnets
  2. Delete second network interfaces
  3. Add second network interfaces

Debug output

No response

Panic output

No response

Important factoids

No response

References

No response

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 30 days with no activity and it has not the 'status: confirmed' label or it is not in a milestone. Remove the 'status: stale' label or comment, or this will be closed in 5 days.