Can anyone tell me if this process is supposed to upgrade and retain data or just simply do an upgrade (data loss)? I’m going to assume it doesn’t consist of retaining data as when I followed the process my data was gone, but I’d like to confirm. If no data is retained is there a preferred process to retain the data using AWX?
Upgrading AWX involves rerunning the install playbook. Download a newer release from https://github.com/ansible/awx/releases and re-populate the inventory file with your customized variables.
For convenience, you can create a file called vars.yml:
I have been upgrading my production AWX from version 3.01 to 9.1.0 without any data loss. I am using an external database and I carefully update the inventory variables with each version change with my values.
The new versions simply apply the django database migrations without deleting anything. Others have reported otherwise. YMMV.
But is the process mentioned supposed to retain data when using the database provided by the Docker install process? I’m not using an external database.
I think so, but be careful because the local database configurations in the inventory change between versions (data dir and postgres admin user I think) and it tries to upgrade to postgres 10 at some point. AWX version 8? https://github.com/ansible/awx/issues/5214
Just as an FYI, unless I’m doing something wrong but the upgrade process seems to not retain data when using Docker and not outside database other then what AWX provides through the docker install process.
I’ve now upgrade from 7.0.0 to 8.0.0 and lost all data
Upgraded from 8.0.0 recreated orgs, teams etc upgrade to 9.0.0 and lost all data
Upgrade from 9.0.0 recreated orgs, teams etc to 9.0.1 and lost all data.
My guess from what I’ve read is the AWX install as is does not retain data. Is there anyone that can confirm this that isn’t using a external database?