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
Content view import fails on many AlmaLinux repositories #2648
Comments
Here is a simple test case to reproduce the failure. Upstream Katello
Downstream Katello
The output of the above import command in my environment is:
The task result:
And the failed subtask result:
|
@pavelpicka, thank you for your attention. I applied your changes to my local modelresource.py, but the import still gives the same error. Restarted Foreman services after updating the file, but no help. Also restarting the whole server did not affect. Test procedure was the same as above. |
@mikko8 Unfortunately you need to re-export the repository with this change as the issue is not in import part but export. |
I did a fresh export first. Actually I did the whole test sequence by creating new organization, product and content view, just like in the example above. Yes, there is one typo in the example, a backslash is missing from the synchronization command, but otherwise the same procedure. I also tested by installing Katello server on a fresh CentOS 8 installation just to make sure that it's not AlmaLinux platform that is causing this, but same error even with this latest version of There seem to be many
What am I doing wrong? |
Nothing wrong on your side. |
Now with your latest changes, the import seems to work. I will test more, but so far looks good. Thanks a lot for your effort! |
Version Katello 4.5
Describe the bug
AlmaLinux 8 BaseOS, AppStream and PowerTools repositories fail in content view import on downstream Katello. On upstream server, sync, content view publish and content export works fine.
The import command is something like:
chown -R pulp:pulp /var/lib/pulp/imports/*
hammer content-import version --organization="My Org" --path=/var/lib/import/2022-07-08T06-41-04-03-00/
Some other repositories, like CentOS 8 BaseOS, AppStream and EPEL 8, imports fine.
/var/log/messages
Same errors here, but here it also says “get() returned more than one UpdateCollectionPackage – it returned 2!”:
Imports successfully if I create a very tight content view filter that only includes small amount of packages.
These are the failing repositories:
https://repo.almalinux.org/almalinux/8/BaseOS/x86_64/os/
https://repo.almalinux.org/almalinux/8/AppStream/x86_64/os/
https://repo.almalinux.org/almalinux/8/PowerTools/x86_64/os/
Expected behavior
Successful content view import on downstream Katello.
Additional context
https://community.theforeman.org/t/content-view-import-fails-on-many-almalinux-repositories/29319
The text was updated successfully, but these errors were encountered: