Upgrading from previous version as of 9.1.0

I noticed there was a section added to the install doc as of 9.1.0. Does anyone know if the upgrade process retains existing data? Is it only from 9.1.0 to the next version or can you upgrade from say 7.0.0 to 9.1.0 using the command provided?

Thank you.

Hey Damon,

Yesterday I upgraded from 6.1.0 > 7.0.0 > 8.0.0 > 9.0.0 > 9.0.1 > 9.1.0 and it retained the data throughout the process. Not sure if you can go straight to the latest release from 7.0.0 however. If it’s a VM and everything is on it, take a snapshot or backup, and see how it goes!

Thanks for the response Garrett.

When you upgrade it simply says to download the latest. I was curious if you cloned/downloaded the next release to the same directory/filesystem as the current AWX install or did you have to clone it to a new location and run the install/upgrade command from there?

Thanks

Hello,

I did 6.1.0 > 7.0.0 > 8.0.0 > 9.1.0 without problems in a docker image setup with an external database.
Git clone the repository, change to the release you want to install, update the inventory to your values (beware the changes in the inventory variables between versions) and run the installer.

Hey Garrett,

I have an issue when I’m trying to upgrade from AWX 7.0.0 to the latest version. I have open an issue here : https://github.com/ansible/awx/issues/5662

Please could you explain what is the best way to do an upgrade of AWX ? I’m using docker on CentOS 7.7

Did you have any data loss issues. I just completed the upgrade from 7.0.0 to 8.0.0 and I lost all data.

steps

  1. cd /awx (currently 7.0.0)

  2. get fetch

  3. get checkout tags/8.0.0

  4. git pull

  5. cd /awx/installer

  6. create vars.yml

  7. update inventory file for previous (docker_compose_dir, postgres_data_dir) etc

  8. run the installer

  9. When logging in, I seen the whole upgrading AWX page refreshing

  10. Log in

  11. No longer have previous data etc. All data is gone. Its like its a new install, but the passwords from the previous install still work etc.

Can you suggest what I might have missed or did wrong?

Thanks

I have migrated from 4.0.0 to 9.1.0. It works fine if we have provided the correct paths to pgdata, awxcompose, credentials and awxsecret value. The data will not be lost even if the DB is running on a container.

Do these steps match the process you are following that retains data?

  1. cd /awx (currently 7.0.0)

  2. get fetch

  3. get checkout tags/8.0.0

  4. git pull

  5. cd /awx/installer

  6. create vars.yml

  7. update inventory file for previous (docker_compose_dir, postgres_data_dir) etc

  8. run the installer

  9. When logging in, I seen the whole upgrading AWX page refreshing

  10. Log in

  11. No longer have previous data etc. All data is gone. Its like its a new install, but the passwords from the previous install still work etc.

Thanks, following the above has not worked for me.