AWX Operator - Unable to login post migration

I’ve made some great progress and migrated from 17.1.0 on CentOS to the AWX Operator. I first migrated my Postgres database to an external one, then used the code at the end.

The migration appears to have worked, and the login screen shows my graphic and login banner message. However, I am unable to log in using the admin password I specified in awx-admin-password.

awx-secret-key is the one taken from the old installation.

Does anyone know what I might be missing or where I should begin ti diagnose the issue?

apiVersion: v1
kind: PersistentVolume
metadata:
  name: nfs-pv-awx
spec:
  capacity:
    storage: 50Gi
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  claimRef:
    apiVersion: v1
    kind: PersistentVolumeClaim
    name: awx-data
    namespace: awx
  storageClassName: nfs
  nfs:
    path: /volume1/fs_awx
    server: nl-utc-p-nas-01.nl.mdb-lab.com
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: awx-data
  namespace: awx
spec:
  storageClassName: nfs
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 50Gi
---
apiVersion: v1
kind: Secret
metadata:
  name: awx-admin-password
  namespace: awx
stringData:
  password: "blahblahblah"
---
apiVersion: v1
kind: Secret
metadata:
  name: awx-secret-key
  namespace: awx
stringData:
  secret_key: "blahblahblah"
type: Opaque
---
apiVersion: v1
kind: Secret
metadata:
  name: awx-postgres-configuration
  namespace: awx
stringData:
  host: db.mdb-lab.com
  port: "5000"
  database: "awx"
  username: "awx"
  password: "blahblahblah"
  sslmode: disable
  type: unmanaged
type: Opaque
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: awx.nl.mdb-lab.com
  namespace: awx
spec:
  secretName: awx.nl.mdb-lab.com
  issuerRef:
    name: vault-cluster-issuer
    kind: ClusterIssuer
  commonName: awx.nl.mdb-lab.com
  dnsNames:
  - awx.nl.mdb-lab.com
  duration: 2160h
---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
  namespace: awx
spec:
  postgres_configuration_secret: awx-postgres-configuration
  admin_user: admin
  admin_password_secret: awx-admin-password
  secret_key_secret: awx-secret-key
  projects_persistence: true
  projects_existing_claim: "awx-data"
  service_type: NodePort
  replicas: 3
  hostname: awx.nl.mdb-lab.com
  ingress_type: ingress
  ingress_class_name: avi-lb
  ingress_tls_secret: awx.nl.mdb-lab.com

@virtualhobbit
Hi, Operator does not update admin password if admin user already exists in DB.
Maybe you can login as admin with old admin password which was used on the old inatance before migration.

If not (or want to reset password), consider using awx-manage update_password command in the task pod.

Hi,

I should have added that it’s the same password as the old installation.

Okay if resetting password does not help, could you please check the logs from web pod, and see response to your login request by using developer mode in your browser?

There might be CORS error or so.