-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade 1.0.5 -> 1.0.6 breaks during db upgrade steps. #1817
Comments
Hello, @greenscar Upgrades between AWX version 1.0.5 and 1.0.6 are not currently expected to work. However, we have recently added an import/export capability to tower-cli/awx-cli, which allows you to export your job templates and other objects (not including credential secrets) to a JSON file, which you can then re-import to a freshly installed 1.0.6. If you have any questions please feel free reach out to our official awx mailing list or stop by our irc channel on freenode. |
@jakemcdermott sorry to ping in closed issue, but is there any documentation on how to upgrade AWX to 1.0.6 in docker compose setup?
|
@jakemcdermott : Upgrades from 1.0.4 -> 1.0.5 were not supported either. Are we to expect this moving forward? Why would anyone use a product if they cannot upgrade? |
AWX is not a product; it's a project. The supported product is Ansible Tower. Upgrades for AWX are best effort, and that best effort at present is this process: download awx-cli, export your AWX data with awx-cli, install new version, import via awx-cli. We'll be documenting this more clearly in the near future. |
Thanks @gregdek. The fact there is a path forward speaks volumes. Looking forward to the docs. Meanwhile, I will try it out; I learned a lot about the cli when I upgraded 1.0.4 -> 1.0.5. |
@innocode-devops : From what I have gathered thus far, direct upgrades will not be supported in the near future. That said, the cli should handle most of the migration.... I am interested to see if it will migrate auth config (ex: we use LDAP) |
I have been unable to setup LDAP from scratch in 1.0.6 the config never gets saved when setting up group mappings etc and then disappears. Will try to investigate further. |
Does anyone know how the tower/awx-cli export and import procedure works? I can't find any proper information about it. I have installed tower-cli Python package to manage AWX (pip install ansible-tower-cli) but I'm unable to find the export import commands. |
On Thu, May 3, 2018 at 9:49 AM, IT Crowdsource ***@***.***> wrote:
Does anyone know how the tower/awx-cli export and import procedure works?
I can't find any proper information about it. I have installed tower-cli
Python package to manage AWX (pip install ansible-tower-cli) but I'm unable
to find the export import commands.
Am I using the wrong version?
The new version with the new send/receive commands just landed; I don't
know that the docs are updated yet. We're working on that.
In the meantime, it's basically two commands, as I understand it:
"tower-cli receive all" which will export all possible data, and then
"tower-cli send resulting-file.json" to import the data into the new AWX
instance. Someone correct me if I'm wrong. :)
…--g
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1817 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAPY3esHIgRAkcRN6VODDN0FK4yPlxvXks5tuwrjgaJpZM4TrC95>
.
|
tower-cli receive --all > assets.json |
@gregdek Thanks! |
Do not fail entire notification chain if one fails
What's strange is the export (towercli receive) script was able to retrieve the "encrypted" password for the GIT credentials. This was validated on version 1.0.1.167. During the import (tower send) , it was able to recreate the Job templates sourcing from Git. This is an indicator, the "encrypted" password was successfully exported/imported. However, the Machine credential had to be created. So going through same steps with version 1.0.4* but this time Job templates did NOT get imported successfully. So ended up re-creating password, and then re-running import (tower send) to pull the playbooks. My question is - if the job templates were already created in the database, why is there still a need to setup GIT repository (credentials) before-hand to import these templates via tower-cli send. |
I really wish this had been documented somewhere before I started the upgrade. Can't export from something that's already broken. I appreciate this isn't the supported version, and believe me I do appreciate the work that goes into this project, but this just isn't great. |
#
ISSUE TYPE
COMPONENT NAME
SUMMARY
Upgrading 1.0.5 to 1.0.6 DB upgrade locks when auth config change started but not completed.
Currently on 1.0.5. We started setting up LDAP but never finished. However, local auth has continued working. We then upgrade to 1.0.6. Now app is hung in endless loop where web ui says "AWX is upgrading"
ENVIRONMENT
AWX version: 1.0.6
AWX install method: docker on linux
Ansible version: 2.5.0
Operating System: ubuntu
Web Browser: any
STEPS TO REPRODUCE
Have local users.
Partially configure LDAP auth. (input settings but auth still failing due to grouping)
Continue using app with local auth.
Upgrade 105 -> 106
EXPECTED RESULTS
it works
ACTUAL RESULTS
ADDITIONAL INFORMATION
The text was updated successfully, but these errors were encountered: