ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.93k stars 3.41k forks source link

Upgrade from AWX GIT VERSION 12 to AWX GIT VERSION 17 Fails #9144

Open lcarangelo opened 3 years ago

lcarangelo commented 3 years ago
ISSUE TYPE
COMPONENT NAME
SUMMARY

During the installation via : ansible-playbook -i inventory install.yml , it fails during Postgres upgrade (from 10 to 12)

ENVIRONMENT
STEPS TO REPRODUCE

Standard upgrade from 12 to 17 as described in the installation guide

ACTUAL RESULTS

TASK [local_docker : Upgrade Postgres] **** fatal: [localhost]: FAILED! => {"changed": true, "cmd": "docker run --rm -v /data/postgres/data/10/data:/var/lib/postgresql/10/data -v /data/postgres/data/12/data:/var/lib/postgresql/12/data -e PGUSER=awx -e POSTGRES_INITDB_ARGS=\"-U awx\" tianon/postgres-upgrade:10-to-12 --username=awx\n", "delta": "0:00:03.540644", "end": "2021-01-22 21:01:58.824661", "msg": "non-zero return code", "rc": 1, "start": "2021-01-22 21:01:55.284017", "stderr": "", "stderr_lines": [], "stdout": "Performing Consistency Checks\n -----------------------------\n Checking cluster versions ok\n Checking database user is the install user ok\n Checking database connection settings ok\n Checking for prepared transactions ok\n Checking for reg data types in user tables ok\n Checking for contrib/isn with bigint-passing mismatch ok\n Checking for tables WITH OIDS ok\n Checking for invalid \"sql_identifier\" user columns ok\n Creating dump of global objects ok\n Creating dump of database schemas\n
awx\n
postgres\n
template1\n
ok\n\n New cluster database \"awx\" is not empty: found relation \"public.django_migrations\"\n Failure, exiting", "stdout_lines": ["Performing Consistency Checks", "-----------------------------", "Checking cluster versions ok", "Checking database user is the install user ok", "Checking database connection settings ok", "Checking for prepared transactions ok", "Checking for reg
data types in user tables ok", "Checking for contrib/isn with bigint-passing mismatch ok", "Checking for tables WITH OIDS ok", "Checking for invalid \"sql_identifier\" user columns ok", "Creating dump of global objects ok", "Creating dump of database schemas", " awx", " postgres", " template1", " ok", "", "New cluster database \"awx\" is not empty: found relation \"public.django_migrations\"", "Failure, exiting"]}


CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3faede61c2e5 awx:12.0.0 "tini -- /usr/bin/la…" 10 seconds ago Exited (143) 9 seconds ago awx_task 6e3cc6a9c0ac awx:12.0.0 "tini -- /bin/sh -c …" 10 seconds ago Exited (143) 8 seconds ago awx_web 16a2ee248664 postgres:10 "docker-entrypoint.s…" 11 seconds ago Exited (0) 8 seconds ago awx_postgres bb2c3a19f279 redis "docker-entrypoint.s…" 9 minutes ago Exited (0) 8 seconds ago awx_redis

gaia commented 3 years ago

same here while attempting an upgrade. also failed for a new install in the same way, even though I pruned all docker CTs, removed awx/, then cloned again:

image