kurokobo / awx-on-k3s

An example implementation of AWX on single node K3s using AWX Operator, with easy-to-use simplified configuration with ownership of data and passwords.
MIT License
572 stars 162 forks source link

AWX portal not accessible #398

Open compuserv2017 opened 4 days ago

compuserv2017 commented 4 days ago

Environment

Description

everything seems to be running fine. however, after the installation is completed, I can't seem to access the web interface (whenever i put in the IP, it just gives me: 404 page not found)

sad

all pods seem to be up and healthy.

pods

Step to Reproduce

  1. Deploy following the guide on Ubuntu 24.04.1 LTS (UFW dissabled as suggested)
  2. try to visit the web page after finishing up

Logs

there don't seem to be any unhealthy pods/logs

Files

awx.yaml:

---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
spec:
  # These parameters are designed for use with:
  # - AWX Operator: 2.19.1
  #   https://github.com/ansible/awx-operator/blob/2.19.1/README.md

  admin_user: admin
  admin_password_secret: awx-admin-password

  ingress_type: ingress
  ingress_hosts:
    - hostname: ansible.test.local
      tls_secret: awx-secret-tls

  postgres_configuration_secret: awx-postgres-configuration

  postgres_data_volume_init: true
  postgres_storage_class: awx-postgres-volume
  postgres_storage_requirements:
    requests:
      storage: 8Gi

  projects_persistence: true
  projects_existing_claim: awx-projects-claim

  web_replicas: 1
  task_replicas: 1

  web_resource_requirements: {}
  task_resource_requirements: {}
  ee_resource_requirements: {}
  init_container_resource_requirements: {}
  postgres_resource_requirements: {}
  redis_resource_requirements: {}
  rsyslog_resource_requirements: {}

  # Uncomment to reveal "censored" logs
  #no_log: false

kustomization.yaml

---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: awx

generatorOptions:
  disableNameSuffixHash: true

secretGenerator:
  - name: awx-secret-tls
    type: kubernetes.io/tls
    files:
      - tls.crt
      - tls.key

  - name: awx-postgres-configuration
    type: Opaque
    literals:
      - host=awx-postgres-15
      - port=5432
      - database=awx
      - username=awx
      - password=Ansible123!
      - type=managed

  - name: awx-admin-password
    type: Opaque
    literals:
      - password=Ansible123!

  # If you want to specify SECRET_KEY for your AWX manually, uncomment following lines and change the value.
  # Refer AAC documentation for detail about SECRET_KEY.
  # https://docs.ansible.com/automation-controller/latest/html/administration/secret_handling.html
  #- name: awx-secret-key
  #  type: Opaque
  #  literals:
  #    - secret_key=MySuperSecureSecretKey123!

resources:
  - pv.yaml
  - pvc.yaml
  - awx.yaml
kurokobo commented 4 days ago

@compuserv2017 Hi, try accessing https://ansible.test.local instead of IP address.

compuserv2017 commented 4 days ago

Unfortunatly, that is not working :(

image

It is running inside a VM with a vmware NAT adapter. I'm trying to reach it with my desktop which is running VMware

compuserv2017 commented 4 days ago

on a windows 11 test machine, i added the following to the hosts file:

192.169.83.129  https://ansible.test.local      # AWX
192.169.83.129  http://ansible.test.local       # AWX
192.169.83.129  ansible.test.local              # AWX

this only gives a connection refused when going to ansible.test.local and a connection timed out when going to either https://ansible.test.local or http://ansible.test.local

kurokobo commented 4 days ago

According to your screenshot, the IP address which should be in your hosts file is 192.168.83.129 instead of 192.169.83.129

compuserv2017 commented 3 days ago

that was indeed the issue. I'm sorry for not paying attention. I now have access to the portal and tried running the demo job template, no luck though.

got the error: "Error creating pod: pod failed to start, ErrImagePull"

and the details tab has the status: Failed to JSON parse a line from worker stream. Error: Expecting value: line 1 column 1 (char 0) Line with invalid JSON data: b''

but that's for me to figure out :) thnx a lot

kurokobo commented 2 days ago

Error creating pod: pod failed to start, ErrImagePull

Soon after you've launched new job, you can see the newly created pod by the command kubectl -n awx get pod which is named automation-job-*. You should gather Events of the pod by kubectl -n awx describe pod <pod name>.