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

The first network interface is removed instead of the second in resource opennebula_virtual_machine #495

Closed god7trong closed 8 months ago

god7trong commented 9 months ago

Description

When managing two interfaces in a virtual machine, a bug occurs.

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      = 0
    security_groups = [0]
  }
}

Expected behavior

Removing the expected interface.

Actual behavior

Is always deleted NIC_ID = "0"

Steps to Reproduce

  1. Create vm with 2 network interfaces
  2. Delete 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.