Awx: AWX 8.0.0 Kubernetes deployment error

Created on 22 Oct 2019  ยท  4Comments  ยท  Source: ansible/awx

ISSUE TYPE
  • Bug Report
SUMMARY

Awx deployment failing at task TASK [kubernetes : Apply Deployment]

ENVIRONMENT
  • AWX version: 8.0.0
  • AWX install method: kubernetes
  • Ansible version: 2.8.4
  • Operating System: MacOS Catalina/ Ubuntu 16.04
  • Web Browser:
STEPS TO REPRODUCE

run the isntaller with ansible-playbook -i inventory install.yml

EXPECTED RESULTS
ACTUAL RESULTS

deployment failing - full log attached to this issue.
version 6.0.0 and 7.0.0 were running fine on the same platform.

from httplib import HTTPConnectionn import sysn import osn import base64n authsecret = base64.b64encode(os.getenv('RABBITMQ_USER') + ':' + os.getenv('RABBITMQ_PASSWORD'))n conn=HTTPConnection('localhost:15672')n conn.request('GET', '/api/healthchecks/node', headers={'Authorization': 'Basic %s' % authsecret})n r1 = conn.getresponse()n if r1.status != 200:n sys.stderr.write('Received http error %i\n' % (r1.status))n sys.exit(1)n body = r1.read()n if body != '{"status":"ok"}':n sys.stderr.write('Received body: %s' % body)n sys.exit(2)n sys.exit(0)n---napiVersion: v1nkind: Servicemd5-bd5955adb83f9ae5f5df5e33b3572b1emetadata:n name: awx-web-svcn namespace: awxn labels:n name: awx-web-svcmd5-bd5955adb83f9ae5f5df5e33b3572b1espec:n type: "NodePort"n ports:n - name: httpn port: 80n targetPort: 8052n selector:n name: awx-web-deployn---napiVersion: v1nkind: Servicemd5-bd5955adb83f9ae5f5df5e33b3572b1emetadata:n name: awx-rmq-mgmtn namespace: awxn labels:n name: awx-rmq-mgmtmd5-bd5955adb83f9ae5f5df5e33b3572b1espec:n type: ClusterIPn ports:n - name: rmqmgmtn port: 15672n targetPort: 15672n selector:n name: awx-web-deployn---napiVersion: extensions/v1beta1nkind: Ingressmd5-bd5955adb83f9ae5f5df5e33b3572b1emetadata:n name: awx-web-svcn namespace: awxmd5-bd5955adb83f9ae5f5df5e33b3572b1espec:n backend:n serviceName: awx-web-svcn servicePort: 80n", "msg": "non-zero return code", "rc": 1, "start": "2019-10-22 08:36:40.042215", "stderr": "error: error parsing STDIN: error converting YAML to JSON: yaml: line 25: could not find expected ':'", "stderr_lines": ["error: error parsing STDIN: error converting YAML to JSON: yaml: line 25: could not find expected ':'"], "stdout": "serviceaccount/awx unchangednservice/rabbitmq creatednconfigmap/rabbitmq-config creatednrole.rbac.authorization.k8s.io/endpoint-reader unchangednrolebinding.rbac.authorization.k8s.io/endpoint-reader unchangednstatefulset.apps/awx created", "stdout_lines": ["serviceaccount/awx unchanged", "service/rabbitmq created", "configmap/rabbitmq-config created", "role.rbac.authorization.k8s.io/endpoint-reader unchanged", "rolebinding.rbac.authorization.k8s.io/endpoint-reader unchanged", "statefulset.apps/awx created"]}

ADDITIONAL INFORMATION


awx8_error.log

api high in_progress bug

Most helpful comment

5063 looks like fixed that issue!

All 4 comments

@wanderboessenkool this looks might it could be related to your recent PR.

Any ideas?

https://github.com/ansible/awx/pull/5009

cc @shanemcd

This looks very similar to the output I was getting in my logs as well which lead me to my pull request

5063 looks like fixed that issue!

This should only affect awx 8.0.0, so I'm going to close this once #5063 merges momentarily.

Thanks for the fix @HunterNyan!

Was this page helpful?
0 / 5 - 0 ratings