Having some issue migrating from awx 9.3.0 to 13.0.0. Have updated/migrated from 6.0.0 to 9.0.1 and to 9.3.0 with no issues. But trying to go to a later version is erroring out.
Current awx installation:
9.3.0 on openshift
external postgresql 10 database
database user: awx
trying to update to 10.0 or 13.0 gives me the same error. Any help would greatly be appreciated.
“stderr_lines”: [
“2020-08-10 19:27:09,621 DEBUG rbac_migrations Migrating systemjobtemplate to new organization field”,
“2020-08-10 19:27:09,621 DEBUG rbac_migrations Class systemjobtemplate has no organization migration”,
“2020-08-10 19:27:09,621 DEBUG rbac_migrations Migrating inventorysource to new organization field”,
“2020-08-10 19:27:09,631 INFO rbac_migrations Organization migration on inventorysource affected 10 rows.”,
“2020-08-10 19:27:09,631 DEBUG rbac_migrations Migrating jobtemplate to new organization field”,
“2020-08-10 19:27:09,637 INFO rbac_migrations Organization migration on jobtemplate affected 59 rows.”,
“2020-08-10 19:27:09,637 DEBUG rbac_migrations Migrating workflowjobtemplate to new organization field”,
“2020-08-10 19:27:09,641 DEBUG rbac_migrations Migrating workflowapprovaltemplate to new organization field”,
“2020-08-10 19:27:09,641 DEBUG rbac_migrations Class workflowapprovaltemplate has no organization migration”,
“2020-08-10 19:27:09,641 DEBUG rbac_migrations Migrating project to new organization field”,
“2020-08-10 19:27:09,698 INFO rbac_migrations Organization migration on project affected 13 rows.”,
“2020-08-10 19:27:09,698 INFO rbac_migrations Unified organization migration completed in 0.0775 seconds”,
“2020-08-10 19:27:09,698 DEBUG rbac_migrations Migrating projectupdate to new organization field”,
“2020-08-10 19:27:09,729 INFO rbac_migrations Organization migration on projectupdate affected 626 rows.”,
“2020-08-10 19:27:09,730 DEBUG rbac_migrations Migrating workflowapproval to new organization field”,
“2020-08-10 19:27:09,730 DEBUG rbac_migrations Class workflowapproval has no organization migration”,
“2020-08-10 19:27:09,730 DEBUG rbac_migrations Migrating inventoryupdate to new organization field”,
“2020-08-10 19:27:09,754 INFO rbac_migrations Organization migration on inventoryupdate affected 508 rows.”,
“2020-08-10 19:27:09,754 DEBUG rbac_migrations Migrating job to new organization field”,
“2020-08-10 19:27:09,766 INFO rbac_migrations Organization migration on job affected 197 rows.”,
“2020-08-10 19:27:09,766 DEBUG rbac_migrations Migrating systemjob to new organization field”,
“2020-08-10 19:27:09,767 DEBUG rbac_migrations Class systemjob has no organization migration”,
“2020-08-10 19:27:09,767 DEBUG rbac_migrations Migrating adhoccommand to new organization field”,
“2020-08-10 19:27:09,773 INFO rbac_migrations Organization migration on adhoccommand affected 2 rows.”,
“2020-08-10 19:27:09,773 DEBUG rbac_migrations Migrating workflowjob to new organization field”,
“2020-08-10 19:27:09,778 INFO rbac_migrations Unified organization migration completed in 0.0791 seconds”,
“Traceback (most recent call last):”,
" File "/usr/bin/awx-manage", line 8, in ",
" sys.exit(manage())",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/init.py", line 152, in manage",
" execute_from_command_line(sys.argv)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/init.py", line 381, in execute_from_command_line",
" utility.execute()",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/init.py", line 375, in execute",
" self.fetch_command(subcommand).run_from_argv(self.argv)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv",
" self.execute(*args, **cmd_options)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute",
" output = self.handle(*args, **options)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped",
" res = handle_func(*args, **kwargs)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 234, in handle",
" fake_initial=fake_initial,",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/migrations/executor.py", line 117, in migrate",
" state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards",
" state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/migrations/executor.py", line 245, in apply_migration",
" state = migration.apply(state, schema_editor)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/migrations/migration.py", line 124, in apply",
" operation.database_forwards(self.app_label, schema_editor, old_state, project_state)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/migrations/operations/special.py", line 190, in database_forwards",
" self.code(from_state.apps, schema_editor)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/migrations/0109_v370_job_template_organization_field.py", line 16, in rebuild_jt_parents",
" rebuild_role_parentage(apps, schema_editor, models=(‘jobtemplate’,))",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/migrations/_rbac.py", line 280, in rebuild_role_parentage",
" content_object = ct_model.objects.get(pk=role.object_id)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method",
" return getattr(self.get_queryset(), name)(*args, **kwargs)",
" File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/models/query.py", line 408, in get",
" self.model._meta.object_name",
“fake.DoesNotExist: JobTemplate matching query does not exist.”,
“command terminated with exit code 1”
Michael