Project

Profile

Help

Issue #7842

closed

'table db_info already exists' on consecutive migrations

Added by adam.winberg@smhi.se about 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

On a fresh pulp3 installation, running consecutive 2to3 migrations results in following error (first migration ran without error):

Nov 16 12:48:54 rq[657971]: Traceback (most recent call last): 
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/rq/worker.py", line 936, in perform_job
Nov 16 12:48:54 rq[657971]:     rv = job.perform() 
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/rq/job.py", line 684, in perform
Nov 16 12:48:54 rq[657971]:     self._result = self._execute()
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/rq/job.py", line 690, in _execute
Nov 16 12:48:54 rq[657971]:     return self.func(*self.args, **self.kwargs)
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/tasks/migrate.py", line 140, in migrate_from_pulp2 
Nov 16 12:48:54 rq[657971]:     create_repoversions_publications_distributions(plan)
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 293, in create_repoversions_publications_distributions
Nov 16 12:48:54 rq[657971]:     task_func(*task_args)
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 187, in simple_plugin_migration
Nov 16 12:48:54 rq[657971]:     migrate_repo_distributor(dist_migrator, progress_dist, pulp2_dist)
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py", line 391, in migrate_repo_distributor
Nov 16 12:48:54 rq[657971]:     pulp2dist, repo_version)
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/rpm/repository.py", line 74, in migrate_to_pulp3
Nov 16 12:48:54 rq[657971]:     publish(repo_version.pk, checksum_types=checksum_types)
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/publishing.py", line 290, in publish
Nov 16 12:48:54 rq[657971]:     metadata_signing_service=metadata_signing_service
Nov 16 12:48:54 rq[657971]:   File "/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/publishing.py", line 343, in create_repomd_xml
Nov 16 12:48:54 rq[657971]:     pri_db = cr.PrimarySqlite(pri_db_path)
Nov 16 12:48:54 rq[657971]:   File "/usr/lib64/python3.6/site-packages/createrepo_c/__init__.py", line 202, in __init__
Nov 16 12:48:54 rq[657971]:     Sqlite.__init__(self, path, DB_PRIMARY)
Nov 16 12:48:54 rq[657971]: createrepo_c.CreaterepoCError: Can not create db_info table: table db_info already exists

This is while publishing a 'frozen' rpm repository, i.e. a repo without a feed which we manually copy content to when needed. The content in the repo had changed (content added) between migrations but I don't see how that could be a problem. The error appears at every migration attempt now, while trying to publish the same repo.

Running in an rpm-based installation on RHEL8: python3-pulp-rpm-3.7.0-1.el8.noarch python3-pulpcore-3.7.3-1.el8.noarch python3-pulp-2to3-migration-0.5.1-1.el8.noarch


Related issues

Related to Migration Plugin - Issue #7851: don't generate sqlite db files for yum metadata if pulp2 exporter didn't use generate themCLOSED - CURRENTRELEASEdalleyActions

Also available in: Atom PDF