Skip to content
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

Update migrate_schema to use check_migrations #2025

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from

Conversation

aldato
Copy link

@aldato aldato commented Feb 28, 2025

SUMMARY

We've seen the following errors in the operator logs (trimmed most of the output log since it's not required):

[installer : Create kubernetes job to perform the migration] **************\r\ntask path:

---

ResourceClaims:[]core.PodResourceClaim(nil)}}: field is immutable\\\",\\\"field\\\":\\\"spec.template\\\"}]},\\\"code\\\":422}\\\\n'\", \"reason\": \"Unprocessable Entity\", \"status\": 422}\n\r\n

PLAY RECAP *********************************************************************

\r\nlocalhost                  : ok=73   changed=0    unreachable=0    failed=1    skipped=76   rescued=0    ignored=0

If we check the output of the main conditional we can see that we've two unexpected results:

$ awx-manage showmigrations | grep -v '[X]' | grep '[ ]' | wc -l
2

$ awx-manage showmigrations | grep -v '[X]' | grep '[ ]'
 (no migrations)
 (no migrations)

They belong to:

dab_jwt_consumer
 (no migrations)
dab_rest_filters
 (no migrations)

The block interprets there are pending migrations when that's not the case and tries to edit the k8s job that already ran. If there are changes in the AutomationController CR it tries to change the k8s job spec.template, which is immutable.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants