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

Error: Cycle: oci_core_route_table.this, oci_core_vlan.this #2243

Open
olkoko opened this issue Nov 14, 2024 · 0 comments
Open

Error: Cycle: oci_core_route_table.this, oci_core_vlan.this #2243

olkoko opened this issue Nov 14, 2024 · 0 comments
Labels

Comments

@olkoko
Copy link

olkoko commented Nov 14, 2024

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 "me too" comments, 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

Terraform Version and Provider Version

Terraform v1.5.7
on darwin_arm64
+ provider registry.terraform.io/oracle/oci v6.18.0

Affected Resource(s)

oci_core_vlan
oci_core_route_table
oci_core_private_ip

Terraform Configuration Files

resource "oci_core_vcn" "this" {
  compartment_id = var.network_compartment_id
  display_name   = "test vcn"
  cidr_blocks    = "10.0.0.0/16"
}

resource "oci_core_vlan" "this" {
  compartment_id = var.network_compartment_id
  vcn_id         = oci_core_vcn.this.id
  display_name   = "test vlan"
  cidr_block     = "10.0.100.0/24"
  vlan_tag       = "100"
  route_table_id = oci_core_route_table.this.id
}

resource "oci_core_route_table" "this" {
  compartment_id = var.network_compartment_id
  vcn_id         = oci_core_vcn.this.id
  display_name   = "test route table"
  route_rules {
    cidr_block        = "0.0.0.0/0"
    network_entity_id = oci_core_vlan.this.id
  }
}

resource "oci_core_private_ip" "this" {
  display_name  = "test iprivate ip"
  ip_address    = "10.0.100.5"
  vlan_id       = oci_core_vlan.this.id
}

Debug Output

Expected Behavior

This should create a route table for VLAN with entry referencing Private IP in this VLAN.

Actual Behavior

Error: Cycle: oci_core_route_table.this, oci_core_vlan.this

Steps to Reproduce

See teraform configuration above.

References

This has been fixed for OCI Subnets back in 2018 by introducing oci_core_route_table_attachment.

Proposed fix is to enhance oci_core_route_table_attachment to support VLANs.

@olkoko olkoko added the bug label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant