Upgrade to Foreman 3.8 / Katello 3.10:
Expected outcome:
Upgrade succeeds
Foreman and Proxy versions:
4.9
Distribution and version:
CentOS Stream 8
Other relevant data:
Error 1: Puppet Exec resource 'pulpcore-manager migrate --noinput' failed. Logs:
/Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]
Adding autorequire relationship with File[/var/lib/pulp]
Adding autorequire relationship with User[pulp]
Starting to evaluate the resource (1813 of 1970)
Failed to call refresh: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
Evaluated in 48.22 seconds
Exec[pulpcore-manager migrate --noinput](provider=posix)
Executing check 'pulpcore-manager migrate --plan | grep "No planned migration operations"'
Executing 'pulpcore-manager migrate --noinput'
Executing check 'pulpcore-manager migrate --plan | grep "No planned migration operations"'
Executing 'pulpcore-manager migrate --noinput'
/Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/returns
Operations to perform:
Apply all migrations: ansible, auth, certguard, container, contenttypes, core, deb, file, python, rpm, sessions
Running migrations:
Applying core.0099_versions_field... OK
Applying core.0100_upstreampulp... OK
Applying core.0101_add_domain... OK
Applying core.0102_add_domain_relations... OK
Applying core.0103_alter_export_task... OK
Applying core.0104_delete_label... OK
Applying core.0105_abstract_uuid_gen... OK
Applying core.0106_alter_artifactdistribution_distribution_ptr_and_more... OK
Applying ansible.0047_ansible_namespace... OK
Applying ansible.0048_collectionversionmark... OK
Applying ansible.0049_rbac_permissions... OK
Applying ansible.0050_crossrepositorycollectionversionindex... OK
Applying ansible.0051_cvindex_build... OK
Applying ansible.0052_alter_ansiblecollectiondeprecated_content_ptr_and_more... OK
Applying certguard.0002_alter_rhsmcertguard_contentguard_ptr_and_more... OK
Applying container.0034_translate_signed_schema... OK
Applying container.0035_alter_blob_content_ptr_and_more... OK
Applying container.0036_containerpushrepository_pending_blobs_manifests... OK
Applying core.0107_distribution_hidden... OK
Applying deb.0021_remove_release_from_structure_types... OK
Applying deb.0022_alter_aptdistribution_distribution_ptr_and_more... OK
Applying deb.0023_add_default_signing_services... OK
Applying deb.0024_add_release_fields... OK
Applying deb.0025_merge_colliding_structure_content...
pulp [None]: pulp_deb.app.migrations.0025_merge_colliding_structure_content:INFO: 2023-12-13 09:51:40.100101: Starting data migration!
pulp [None]: pulp_deb.app.migrations.0025_merge_colliding_structure_content:INFO: 2023-12-13 09:51:40.102199: Data migration completed!
OK
Applying deb.0026_aptrepository_publish_upstream_release_fields... OK
Applying deb.0027_alter_aptpublication_structured... OK
Applying file.0016_add_domain... OK
Applying file.0017_alter_filealternatecontentsource_alternatecontentsource_ptr_and_more... OK
Applying python.0011_alter_pythondistribution_distribution_ptr_and_more... OK
Applying rpm.0050_alter_addon_pulp_id_alter_checksum_pulp_id_and_more... OK
Applying rpm.0051_alter_distributiontree_unique_together_and_more...Traceback (most recent call last):
File "/usr/bin/pulpcore-manager", line 33, in <module>
sys.exit(load_entry_point('pulpcore==3.28.19', 'console_scripts', 'pulpcore-manager')())
File "/usr/lib/python3.9/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3.9/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3.9/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3.9/site-packages/django/core/management/base.py", line 106, in wrapper
res = handle_func(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 356, in handle
post_migrate_state = executor.migrate(
File "/usr/lib/python3.9/site-packages/django/db/migrations/executor.py", line 135, in migrate
state = self._migrate_all_forwards(
File "/usr/lib/python3.9/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards
state = self.apply_migration(
File "/usr/lib/python3.9/site-packages/django/db/migrations/executor.py", line 252, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/lib/python3.9/site-packages/django/db/migrations/migration.py", line 132, in apply
operation.database_forwards(
File "/usr/lib/python3.9/site-packages/django/db/migrations/operations/models.py", line 659, in database_forwards
alter_together(
File "/usr/lib/python3.9/site-packages/django/db/backends/base/schema.py", line 554, in alter_unique_together
self._delete_composed_index(
File "/usr/lib/python3.9/site-packages/django/db/backends/base/schema.py", line 610, in _delete_composed_index
raise ValueError(
ValueError: Found wrong number (0) of constraints for rpm_modulemd(name, stream, version, context, arch)
change from 'notrun' to ['0'] failed: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
Operations to perform:
Apply all migrations: ansible, auth, certguard, container, contenttypes, core, deb, file, python, rpm, sessions
Running migrations:
Applying rpm.0051_alter_distributiontree_unique_together_and_more...Traceback (most recent call last):
File "/usr/bin/pulpcore-manager", line 33, in <module>
sys.exit(load_entry_point('pulpcore==3.28.19', 'console_scripts', 'pulpcore-manager')())
File "/usr/lib/python3.9/site-packages/pulpcore/app/manage.py", line 11, in manage
execute_from_command_line(sys.argv)
File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3.9/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3.9/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3.9/site-packages/django/core/management/base.py", line 106, in wrapper
res = handle_func(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 356, in handle
post_migrate_state = executor.migrate(
File "/usr/lib/python3.9/site-packages/django/db/migrations/executor.py", line 135, in migrate
state = self._migrate_all_forwards(
File "/usr/lib/python3.9/site-packages/django/db/migrations/executor.py", line 167, in _migrate_all_forwards
state = self.apply_migration(
File "/usr/lib/python3.9/site-packages/django/db/migrations/executor.py", line 252, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/lib/python3.9/site-packages/django/db/migrations/migration.py", line 132, in apply
operation.database_forwards(
File "/usr/lib/python3.9/site-packages/django/db/migrations/operations/models.py", line 659, in database_forwards
alter_together(
File "/usr/lib/python3.9/site-packages/django/db/backends/base/schema.py", line 554, in alter_unique_together
self._delete_composed_index(
File "/usr/lib/python3.9/site-packages/django/db/backends/base/schema.py", line 610, in _delete_composed_index
raise ValueError(
ValueError: Found wrong number (0) of constraints for rpm_modulemd(name, stream, version, context, arch)