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

Fixes #29595 - Orphaned dangling content in katello fails migration #8715

Merged
merged 1 commit into from
May 19, 2020

Conversation

sjha4
Copy link
Member

@sjha4 sjha4 commented May 15, 2020

To reproduce:

  1. On pulp2 create and sync 2 docker repos and 2 file repos
  2. Delete 1 repo of each type.
  3. Run bundle exec rails katello:pulp3_migration
  4. Run bundle exec rails katello:delete_orphaned_content
  5. Run bundle exec rails katello:pulp3_content_switchover

You'll notice an error with Docker content type. If you delete the Katello:DockerTag records where migrated_href is nil, next you'll see issues with Manifests and so on. Once you fight through Docker content, you'll see the same issue for FileUnit.

@theforeman-bot
Copy link

Issues: #29595

Copy link
Member

@jjeffers jjeffers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated the setup and observed the dangling content which caused issues during switchover. Applying this PR resolved that problem.

@sjha4 sjha4 merged commit 590a15e into Katello:master May 19, 2020
johnpmitsch pushed a commit to johnpmitsch/katello that referenced this pull request May 20, 2020
jjeffers pushed a commit to jjeffers/katello that referenced this pull request May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants