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 #34992 - Use content ID to verify if a redhat_repo already exists #10161

Closed
wants to merge 1 commit into from
Closed

Fixes #34992 - Use content ID to verify if a redhat_repo already exists #10161

wants to merge 1 commit into from

Conversation

jpasqualetto
Copy link
Member

Using labels to verify if a repository already exists create issues when labels differ between exporting and importing servers.

What are the changes introduced in this pull request?
Instead of using repository labels to verify if a repository being import already exists, this PR uses content ID.

What are the testing steps for this pull request?
Simulate a label mismatch between exporting and importing servers
Export content once and import it (this works fine)
Export content again (incremental export or a simple new complete export) and try importing again. Without this PR, the second import fails. With this patch it should work.

Opening this PR because #10139 was closed by mistake.

  Using labels to verify if a red hat repository already exists create issues when
  labels differ between exporting and importing servers. Keep the
  validation to use labels as fallback for custom products, which doesn't keep the
  same content id between importing and exporting server and for the
  case where the export didn't include content_id
@theforeman-bot
Copy link

Can one of the admins verify this patch?

@theforeman-bot
Copy link

Issues: #34992

@chris1984
Copy link
Member

ok to test

@chris1984 chris1984 self-assigned this Jun 13, 2022
@chris1984
Copy link
Member

[test katello]

@parthaa
Copy link
Contributor

parthaa commented Jun 14, 2022

closing in favor of #10162

@parthaa parthaa closed this Jun 14, 2022
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.

4 participants