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_securemesh_site_v2 bug #278

Open
Paulio2201 opened this issue Sep 9, 2024 · 2 comments
Open

volterra_securemesh_site_v2 bug #278

Paulio2201 opened this issue Sep 9, 2024 · 2 comments

Comments

@Paulio2201
Copy link

Paulio2201 commented Sep 9, 2024

When trying to create F5 secure Mesh Sites v2 via terraform using volterra_securemesh_site_v2, we receive various errors when we attempt to deploy this via azure devops. The errors suggest that we need to specify details of the nodes even though Nodes are added via an external provider management consoles. If we were to create this manually via the F5 interface, we would be able to select the provider but would not be expected to enter details of the nodes as these are populated by a separate process.

I we do not specify any node details in the terraform, we get a different error indicating that we are passing in an invalid payload to the host. I have tried several combinations including using the entire example in the terraform documentation and nothing works so I believe that this is a bug.

With node details block-
Error: error creating SecuremeshSiteV2: Creating object: Unsuccessful POST at URL https://xxxxxx.console.ves.volterra.io/api/public/namespaces/system/securemesh_site_v2s, status code 400, body {"code":3,"details":[{"code":"UNKNOWN","details":"CreateResource: adding nodes are not allowed while creating securemesh site, they will be auto discovered","timestamp":"2024-09-05T09:38:26Z"}],"message":"adding nodes are not allowed while creating securemesh site, they will be auto discovered"}

Without node details block-
##[error]Terraform command 'apply' failed with exit code '1'.: error creating SecuremeshSiteV2: Creating object: Unsuccessful POST at URL https://xxxx.console.ves.volterra.io/api/public/namespaces/system/securemesh_site_v2s, status code 500, body {"code":13,"details":[{"code":"UNKNOWN","details":"Filling oneof default choice: oneof container field list *protoutil.NilField is not *protoutil.PtrListField","timestamp":"2024-09-04T16:42:33Z"}],"message":"There was a server error in processing request"}

@SanjeetKr7
Copy link
Collaborator

@Paulio2201 Could you please share the tf provider code with masked credential?

@Paulio2201
Copy link
Author

@SanjeetKr7

Provider set up
provider "volterra" {
url = "https://xxxxxx.console.ves.volterra.io/api"
}

required_providers {
volterra = {
source = "volterraedge/volterra"
version = "0.11.35"
}

secure mesh creation

resource "volterra_securemesh_site_v2" "f5_secure_mesh_site_v2" {
for_each = local.f5_secure_mesh_site
name = "${each.key}-sm-v2"
namespace = "default"
block_all_services = true
logs_streaming_disabled = true
}

We have been able to successfully create lots of other F5 resources using this provider. We only get the issue with secure mesh V2

thanks

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

2 participants