AWX on Kubernetes migration from 6.0.0 to 6.1.0

Hi All,
i’m currently running awx 6.0.0 on kubernetes,
wondering if i can upgrade to 6.1.0 by simply changing the awx manifest in kubernetes to point to 6.1.0 version of the containers.
Obviously this won’t work if a DB migration is involved.

Any idea?

Thanks

Hy,

Normaly I think that your idea works simply changing the awx manifest in kubernetes to point to 6.1.0 version of the containers.

I don’t know if this possilitity works or not but you must search in the web how do it…

I hope that you understand,

Thanks community ansible !! :slight_smile:

Regards,

Hi Thanks for getting back,
well i’ve already changed the awx manifest in kube, containers start fine but the login page displays a massage saying that the system is upgrading and sits there forever - as it happens during the first installation and you try to login while the data migration tasks are still running .

regards

The upgrade from 6.0.0 to 6.1.0 should work fine because the team recently committed to more closely following semantic versioning. A configuration option might’ve slipped through the cracks, try pulling the logs from the awx containers and the database to see what exactly is preventing the upgrade from happening.

Hi Uriel,
thanks for your reply.
I can’t see any obvious blocking error from the logs unfortunately. (i’ve attached them)
The main page keeps me getting redirected to migrations_notran/#/login

Cheers

(attachments)

awx-web.log (103 KB)
postgres.log (2.94 KB)
awx-celery.log (21.9 KB)

From the logs in awx-web:

“msg”: “Database query failed: must be owner of database awx\n”

From the logs in postgres:


2019-09-04 10:26:04.188 GMT [3575] ERROR: must be owner of database awx

2019-09-04 10:26:11.174 GMT [3585] STATEMENT: ALTER DATABASE “awx” OWNER TO “awx”

I think your postgres database is misconfigured. When you are using an external postgres server, you need to pre-create the awx-postgres user, awx-postgres database and set the awx-postgres user as the owner of the awx-postgres database. It looks like awx-postgres user is not the owner of the database. Log into the postgres server, launch a psql interactive prompt, and execute the alter statement above. If AWX isn’t working then, you might have to redeploy it.

Hi Uriel,
i tried that but didn’t work so i will redeploy

thanks for your time