-
Notifications
You must be signed in to change notification settings - Fork 643
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
Unable to complete deployment with awx-operator #275
Comments
The same issue for me. |
I too am unable to deploy with the awx-operator. AWX Operator version: 0.9.0 This is the formatted error that I am getting: The error was: 'tower_loadbalancer_annotations' is undefined
The error appears to be in '/opt/ansible/roles/installer/tasks/resources_configuration.yml': line 20, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Apply Resources
^ here
\"}
PLAY RECAP *********************************************************************
localhost : ok=27 changed=0 unreachable=0 failed=1 skipped=25 rescued=0 ignored=0
","job":"2015796113853353331","name":"awx-tower","namespace":"awx","error":"exit status 2","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error
pkg/mod/github.com/go-logr/[email protected]/zapr.go:128
github.com/operator-framework/operator-sdk/pkg/ansible/runner.(*runner).Run.func1
src/github.com/operator-framework/operator-sdk/pkg/ansible/runner/runner.go:239"}
{"level":"error","ts":1620152374.7633853,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"awx-controller","request":"awx/awx-tower","error":"event runner on failed","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error
pkg/mod/github.com/go-logr/[email protected]/zapr.go:128
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:258
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:232
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:211
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1
pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155
k8s.io/apimachinery/pkg/util/wait.BackoffUntil
pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156
k8s.io/apimachinery/pkg/util/wait.JitterUntil
pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133
k8s.io/apimachinery/pkg/util/wait.Until
pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:90" |
I'll install a minikube tonight and investigate this issue. I cannot reproduce it on a vanilla k8s 1.20.6 |
I was able to deploy successfully now using default configuration (not using LoadBalancer). I was able to sync the Demo Project but Demo job is not working. It is lunching but it is stuck in Running state. In awx-ee there are those errors:
EDIT: OK so in my case the issue is that awx-job pod is created on wrong node. Is there a way to select on which node to create job pods? EDIT2: If you want to use LoadBalancer you need to add empty annotations line: EDIT3: OK found it in Instance groups and Customize pod specification. |
@emdzej1987 is correct. In order to use the LoadBalancer ingress type, you have to have some annotations set, even if it's an empty line. While this allows the deployment to work, I'm unsure if it's useful if I have no annotations to add (and the documentation does not state that it is required) |
Yes, that is a bug. Added a PR to address this. In the meantime, you can add this on your spec: spec:
tower_ingress_type: LoadBalancer
tower_loadbalancer_annotations: '' |
AWX 21.9.0 Operator 1.1.0 {"level":"error","ts":1669130659.0954497,"msg":"Reconciler error","controller":"awx-controller","object":{"name":"awx","namespace":"awx-test-01-app"},"namespace":"awx-test-01-app","name":"awx","reconcileID":"918b81de-22fe-40d7-92c3-2a72b176f0d0","error":"event runner on failed","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:234"} |
ISSUE TYPE
SUMMARY
The awx-operator builds the postgres container, but the awx containers never get past 'Pending'. The awx-operator logs loop through steps and a "Reconciler error" repeats through the process.
ENVIRONMENT
STEPS TO REPRODUCE
Following commands are run as root
lab_awx.yml file contents:
EXPECTED RESULTS
Expecting the kubectl apply command to complete and awx pods to be in 'Running' state
ACTUAL RESULTS
The logs loop through the deployment steps indefinitely and the awx pods never proceed passed 'Pending'
ADDITIONAL INFORMATION
The error I find in the logs seems to point to a "Reconciler error". I've attempted the fix offered in issue issue #205 where I perform a delete of "ingress-nginx-admission", however the issue remains.
AWX-OPERATOR LOGS
The following error keeps repeating:
The text was updated successfully, but these errors were encountered: