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

vh_matches paths ignored on create/update/import of VirtualService #525

Open
tthrone-atomic opened this issue Feb 15, 2023 · 2 comments
Open
Labels

Comments

@tthrone-atomic
Copy link

Describe the bug

When using Enhanced Virtual Service setup, we always receive the the following error
HTTP code: 400; error from Avi: map[error:{"vh_matches":"{"path":"Field check for path failed : There must be at least 1 path"}"}]

Additionally, when importing an enhanced virtual service with valid vh_matches configuration into local state, the vh_mathes field is always null.

Reproduction steps

  1. Configure valid parent VVS resource
  2. Configure valid child VVS resource
  3. Apply
  4. Receive error: HTTP code: 400; error from Avi: map[error:{"vh_matches":"{"path":"Field check for path failed : There must be at least 1 path"}"}]

Expected behavior

Virtual Service creation should succeed with the specified path configurations provided.

Additional context

`
resource "avi_virtualservice" "child" {
name = "example-child"
type = "VS_TYPE_VH_CHILD"
vh_type = "VS_TYPE_VH_ENHANCED"
vh_parent_vs_ref = avi_virtualservice.parent-vs.id

vh_matches {
  host = "test.example.com"
  rules {
    name = "test"
    matches {
      path {
        match_str = ["/test"]
        match_criteria = "BEGINS_WITH"
        match_case = "INSENSITIVE"
      }
    }
  }
}

}
`

@chandanapatnala
Copy link
Collaborator

Hi ,
Can you please mention the version of the controller too

@tthrone-atomic
Copy link
Author

Controller is 21.1.4

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

2 participants