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

[Bug]: Unable to add org_network when t1 are set on vDC group with vApp #810

Closed
o-presentini opened this issue Nov 5, 2024 · 0 comments · Fixed by #811
Closed

[Bug]: Unable to add org_network when t1 are set on vDC group with vApp #810

o-presentini opened this issue Nov 5, 2024 · 0 comments · Fixed by #811
Assignees
Labels
bug Something isn't working community

Comments

@o-presentini
Copy link

o-presentini commented Nov 5, 2024

Terraform Core Version

1.5.7

Cloud Avenue Provider Version

0.20.1

Affected Resource(s)

cloudavenue_vapp_org_network

Expected Behavior

vDC routed network is adding to vApp

Actual Behavior

Terraform failed with error : not found

Relevant Error/Panic Output Snippet

╷
│ Error: Unable to find network ID or Name
│ 
│   with module.build_vapps.cloudavenue_vapp_org_network.main["opr-public-network"],
│   on ../../modules/vapps/main.tf line 42, in resource "cloudavenue_vapp_org_network" "main":
│   42: resource "cloudavenue_vapp_org_network" "main" {
│ 
│ networkConfig.NetworkName or networkConfig.NetworkID is unknow

Terraform Configuration Files

terraform {
  required_providers {
    cloudavenue = {
      source = "orange-cloudavenue/cloudavenue"
      version = "0.20.1"
    }
    vcd = {
      source = "vmware/vcd"
      version = "3.14.0"
    }
  }
  required_version = ">=1.0"
}

provider "cloudavenue" {
  alias = "main"
}

Steps to Reproduce

  1. Create edge gateway binding on vdc_group instead of vdc
  2. Create routed network on edge gateway
  3. Create vApp
  4. Try to add previously created network on vApp

Debug Output

Building .terraspace-cache/docker-swarm/staging/stacks/compute
Current directory: .terraspace-cache/docker-swarm/staging/stacks/compute
=> terraform plan -input=false -destroy
module.build_vapps.cloudavenue_vapp.main: Refreshing state... [id=urn:vcloud:vapp:5f80928c-70be-4400-8b47-9185362b3d07]
module.build_vapps.cloudavenue_vapp_isolated_network.main["opr-vapp-cluster-ceph"]: Refreshing state... [id=urn:vcloud:network:c4403726-99c7-4893-8d61-b4d144a1b81e]
module.build_vapps.cloudavenue_vapp_org_network.main["opr-public-network"]: Refreshing state... [id=urn:vcloud:network:1b7b590d-adee-4676-83c0-fe7bd1693c94]
╷
│ Error: Unable to find network ID or Name
│ 
│   with module.build_vapps.cloudavenue_vapp_org_network.main["opr-public-network"],
│   on ../../modules/vapps/main.tf line 42, in resource "cloudavenue_vapp_org_network" "main":
│   42: resource "cloudavenue_vapp_org_network" "main" {
│ 
│ networkConfig.NetworkName or networkConfig.NetworkID is unknow

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@o-presentini o-presentini added the bug Something isn't working label Nov 5, 2024
@azrod azrod added the community label Nov 5, 2024
@azrod azrod self-assigned this Nov 5, 2024
@azrod azrod linked a pull request Nov 5, 2024 that will close this issue
3 tasks
@azrod azrod closed this as completed in #811 Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants