-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 from 9.0.1 to 9.1.0 breaks the system #5530
Comments
Can you confirm that you followed the steps here: https://github.com/ansible/awx/blob/devel/INSTALL.md#upgrading-from-previous-versions I am unable to reproduce. In the installer logs, under
|
Yes I did. I found a way to fix it though. After spinning the whole cluster up. I used
After this everything was good. I don't deploy on OpenShift but use selfhosted K8S and I noticed that the database awx is not in the ownership of awx but of postgres user. All the tables are in the ownership of awx except the database itself. A new deployment failed because it's trying to call the endpoint for version on the Get Kubernetes API version with {
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "Unauthorized",
"reason": "Unauthorized",
"code": 401
} I temporary modified the playbook to the snippet bellow instead of the original
After that it just hangs on TASK [kubernetes : Migrate database], and I cannot continue I don't have this problem when running the installation for 9.0.1 |
I've the exactly same problem performing the upgrade. The just hangs on: |
Running on Openshift and I'm having the same problem too. I've tried to perform the migration manually through the management pod but it just hangs. |
Running On Openshift as well and I'm having the same problem too. Same issue as above, playbooks stops on Migration Database. |
Traceback (most recent call last): |
I ran into this problem on vanilla k8s as well, and I suspect the changes from #5239 introduced this issue.
IIUC, it's trying to send out a message to rabbitmq before the migration starts (as per here and here), but the pod is configured to try to connect to localhost, which doesn't play nice on kubernetes since the pods have separate network namespaces. There are two workarounds that I tested:
The latter method is probably the cleanest and should work long-term in most setups, if people are comfortable with it I can submit a PR. |
I was able successfully upgrade from 9.0.1 to 9.1.0. I used second method.Thank you for posting workaround. |
Testing this w/ downstream tower openshift upgrades -- will update on progress soon |
@ryanpetrello @kdelee I too just ran into this issue upgrading 9.0.1 to 9.1.0 on k8s. The fix you mention in your comment relating to #5579 will that fix be in forthcoming AWX release? Thanks! |
9.1.1 will be released sometime within the next day or so. |
awx: 13.0.0
|
ISSUE TYPE
SUMMARY
Upgrading from 9.0.1 to 9.1.0 broke the upgrade
ENVIRONMENT
STEPS TO REPRODUCE
Upgrade from 9.0.1 to 9.1.0 using the ansible-playbook installer.
EXPECTED RESULTS
Upgrade to finish successfully and without an issue.
ACTUAL RESULTS
System broke.
ADDITIONAL INFORMATION
The text was updated successfully, but these errors were encountered: