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

volterra_origin_pool limited to one origin server #201

Open
rabru opened this issue Apr 14, 2023 · 3 comments
Open

volterra_origin_pool limited to one origin server #201

rabru opened this issue Apr 14, 2023 · 3 comments
Assignees

Comments

@rabru
Copy link

rabru commented Apr 14, 2023

If you create an origin pool with more than one origin server, only the first on in the plan will be deployed.

Here is my configuration:

resource "volterra_origin_pool" "pool" {
  name                   = "example-pool"
  namespace              = var.namespace

  origin_servers {

    public_ip {
      ip = "10.1.2.3"
    }
    public_ip {
      ip = "10.1.2.2"
    }
  }
  port = "80"
  endpoint_selection     = "LOCAL_PREFERRED"
  loadbalancer_algorithm = "LB_OVERRIDE"
}

Here is the related plan:

  # volterra_origin_pool.pool will be created
  + resource "volterra_origin_pool" "pool" {
      + endpoint_selection     = "LOCAL_PREFERRED"
      + id                     = (known after apply)
      + loadbalancer_algorithm = "LB_OVERRIDE"
      + name                   = "example-pool"
      + namespace              = "default"
      + port                   = 80

      + origin_servers {

          + public_ip {
              + ip = "10.1.2.2"
            }
          + public_ip {
              + ip = "10.1.2.3"
            }
        }
    }

After apply only origin server 10.1.2.2 will be created on F5XC. In terraform.tfstate I can see both origin server.

$ terraform version
Terraform v1.3.7
on linux_amd64
+ provider registry.terraform.io/volterraedge/volterra v0.11.21
@rabru
Copy link
Author

rabru commented Apr 14, 2023

In my last deployment 10.1.2.3 was deployed. looks like its random.

@madhukar32
Copy link
Contributor

@devopsinout: Can you pls take a look at this issue?

@rabru
Copy link
Author

rabru commented Apr 17, 2023

I got it working with the following syntax:

resource "volterra_origin_pool" "pool" {
  name                   = "example-pool"
  namespace              = var.namespace

  origin_servers {
    public_ip {
      ip = "10.1.2.2"
    }
  }

  origin_servers {
    public_ip {
      ip = "10.1.2.3"
    }
  }

  port = "80"
  endpoint_selection     = "LOCAL_PREFERRED"
  loadbalancer_algorithm = "LB_OVERRIDE"
}

Still we should through an error, if the first syntax is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants