-
Notifications
You must be signed in to change notification settings - Fork 284
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 #37407 - reindex container manifests to populate label information #10988
Conversation
I did a performance test with 120 repositories and 26295 manifests:
For reference, the Pulp command took 7 minutes. It seems going over the API is a bit of an overhead for us. Do you think there would be any benefit from only indexing manifests with media types In my environment, only 16776 of my 26295 were among the two manifest types above. Edit: the 16776 were the only ones indexed into Katello, so it seems all of those media types were fair game. |
There also might be many manifests without labels or annotations -- I wonder if we could filter those out in Pulp somehow. |
Looks like in Pulp we cannot filter by labels or annotations, so I think the only improvement we could do API-wise would be to ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good now, just one small comment
lib/katello/tasks/repository.rake
Outdated
desc "Re-import all docker manifests to populate labels and annotations." | ||
task :import_docker_manifest_labels => ["dynflow:client", "check_ping"] do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about saying container manifest
instead of docker manifest
? While our code still refers to docker, I think the public facing stuff could all say container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
What are the changes introduced in this pull request?
Considerations taken when implementing this change?
What are the testing steps for this pull request?
On a box with older pulp create a few docker repos with labels and annotations.
Upgrade your pulp.
Run the pulpcore container-handle-image-data migration
Run bundle exec rails katello:import_docker_manifest_labels and verify that katello manifests pull in all the new field info.