Skip to content

ALB : updates NSX-T ALB Virtual Service return an empty data #729

Open
@dmicheneau

Description

@dmicheneau

Describe the bug

The endpoint Virtual Service Update or Create return an empty struct.
ref: https://developer.broadcom.com/xapis/vmware-cloud-director-openapi/latest/cloudapi/1.0.0/loadBalancer/virtualServices/post/)

Need a wait function in an async task to retrieve the task ID status

Reproduction steps

Not reproductible, depend of your architecture response. However you can do it with terraform vcd.

data "vcd_nsxt_edgegateway" "existing" {
  org = "my-org"
  vdc = "nsxt-test-vdc"

  name = "nsxt-edge-gateway"
}

data "vcd_nsxt_alb_edgegateway_service_engine_group" "assignment" {
  org = "my-org"
  vdc = "nsxt-test-vdc"

  edge_gateway_id           = data.vcd_nsxt_edgegateway.existing.id
  service_engine_group_name = "known_service_engine_group"

  # ID reference to service_engine_group_id can also be supplied by 
  # using `vcd_nsxt_alb_service_engine_group` data source
  # but it requires provider level access therefore tenant can use `service_engine_group_name` field.
  # service_engine_group_id = data.vcd_nsxt_alb_service_engine_group.existing.id
}

resource "vcd_nsxt_alb_pool" "test" {
  org = "my-org"

  name            = "test-pool"
  edge_gateway_id = data.vcd_nsxt_edgegateway.existing.id
}

resource "vcd_nsxt_alb_virtual_service" "test" {
  org = "my-org"

  name            = "new-virtual-service"
  edge_gateway_id = data.vcd_nsxt_edgegateway.existing.id

  pool_id                  = vcd_nsxt_alb_pool.test.id
  service_engine_group_id  = vcd_nsxt_alb_edgegateway_service_engine_group.assignment.service_engine_group_id
  virtual_ip_address       = tolist(data.vcd_nsxt_edgegateway.existing.subnet)[0].primary_ip
  application_profile_type = "HTTP"
  service_port {
    start_port = 80
    type       = "TCP_PROXY"
  }
}

And create some update on virtual service.

So sometimes it's not working because the update or create was too long.

Expected behavior

Need a wait function in an async task to retrieve the task ID status

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions