You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Failure\\\",\\\"message\\\":\\\"Ingress.extensions \\\\\\\\\\\"awx-ingress\\\\\\\\\\\" is invalid: spec.rules[0].http.paths[1].path: Invalid value: \\\\\\\\\\\"//websocket\\\\\\\\\\\": must not contain \\\\'//\\\\'\\\",\\\"reason\\\":\\\"Invalid\\\",\\\"details\\\":{\\\"name\\\":\\\"awx-ingress\\\",\\\"group\\\":\\\"extensions\\\",\\\"kind\\\":\\\"Ingress\\\",\\\"causes\\\":[{\\\"reason\\\":\\\"FieldValueInvalid\\\",\\\"message\\\":\\\"Invalid value: \\\\\\\\\\\"//websocket\\\\\\\\\\\": must not contain \\\\'//\\\\'\\\",\\\"field\\\":\\\"spec.rules[0].http.paths[1].path\\\"}]},\\\"code\\\":422}\\\\n'\", \"reason\": \"Unprocessable Entity\"}\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost : ok=60 changed=0 unreachable=0 failed=1 skipped=63 rescued=0 ignored=0 \r\n\n","job":"2393221571015465150","name":"awx","namespace":"awx","error":"exit status 2","stacktrace":"github.com/operator-framework/operator-sdk/internal/ansible/runner.(*runner).Run.func1\n\t/workspace/internal/ansible/runner/runner.go:269"}
"Invalid value: \\\\\\\\\\\"//websocket\\\\\\\\\\\": must not contain \\\\'//\\\\'\\\"
Additional information
No response
Operator Logs
"Failure\\\",\\\"message\\\":\\\"Ingress.extensions \\\\\\\\\\\"awx-ingress\\\\\\\\\\\" is invalid: spec.rules[0].http.paths[1].path: Invalid value: \\\\\\\\\\\"//websocket\\\\\\\\\\\": must not contain \\\\'//\\\\'\\\",\\\"reason\\\":\\\"Invalid\\\",\\\"details\\\":{\\\"name\\\":\\\"awx-ingress\\\",\\\"group\\\":\\\"extensions\\\",\\\"kind\\\":\\\"Ingress\\\",\\\"causes\\\":[{\\\"reason\\\":\\\"FieldValueInvalid\\\",\\\"message\\\":\\\"Invalid value: \\\\\\\\\\\"//websocket\\\\\\\\\\\": must not contain \\\\'//\\\\'\\\",\\\"field\\\":\\\"spec.rules[0].http.paths[1].path\\\"}]},\\\"code\\\":422}\\\\n'\", \"reason\": \"Unprocessable Entity\"}\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost : ok=60 changed=0 unreachable=0 failed=1 skipped=63 rescued=0 ignored=0 \r\n\n","job":"2393221571015465150","name":"awx","namespace":"awx","error":"exit status 2","stacktrace":"github.com/operator-framework/operator-sdk/internal/ansible/runner.(*runner).Run.func1\n\t/workspace/internal/ansible/runner/runner.go:269"}
"Invalid value: \\\\\\\\\\\"//websocket\\\\\\\\\\\": must not contain \\\\'//\\\\'\\\"
The text was updated successfully, but these errors were encountered:
guillaumelfv
changed the title
The new ingress_controller spec break the deployment while using the ingress_path "/"
The new ingress_controller spec break the deployment while using the default ingress_path "/"
Apr 19, 2023
@lumarel fyi in case its of interest. I am curious to know if its linked to something specific on my cluster or if on your side you do not use default ingress_path / ?
guillaumelfv
changed the title
The new ingress_controller spec break the deployment while using the default ingress_path "/"
The ingress_controller spec make the ingress invalid if using the default ingress_path "/"
Apr 19, 2023
@guillaumelfv Tbh, I really just messed up the PR... (as mentioned in the PR I was not able to spin up the tests as described in the docs)
I'm using the ingress_path in it's default configuration in my environments.
The resulting ingress should look like in this comment tbh, and this is also how it works: ansible/awx#9747 (comment)
But looks like I was not accounting for the single / in the default configuration.
Which means there is either an extra step needed, to make sure there is only one, or just the / has to be removed.
Please confirm the following
Bug Summary
The new ingress_controller spec break the deployment while using the ingress_path "/". It fail the deployment as https://github.com/ansible/awx-operator/blob/2.0.1/roles/installer/templates/networking/ingress.yaml.j2#L37 is becoming
//websocket
and it does not seems valid for an ingress.AWX Operator version
2.0.1
AWX version
22.1.0
Kubernetes platform
kubernetes
Kubernetes/Platform version
v1.21.6
Modifications
no
Steps to reproduce
Use the following ingress specs:
Expected results
Using the default ingress_path
/
should not failed the deploymentActual results
Trying to upgrade from
2.0.0
to2.0.1
and using the newly introduced spec:the full ingress spec is as follow:
It fail the deployment as https://github.com/ansible/awx-operator/blob/2.0.1/roles/installer/templates/networking/ingress.yaml.j2#L37 is becoming
//websocket
and the deployment fail with:"Invalid value: \\\\\\\\\\\"//websocket\\\\\\\\\\\": must not contain \\\\'//\\\\'\\\"
Additional information
No response
Operator Logs
"Invalid value: \\\\\\\\\\\"//websocket\\\\\\\\\\\": must not contain \\\\'//\\\\'\\\"
The text was updated successfully, but these errors were encountered: