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 #29421 - add pulp3 debian support #8632
Conversation
Issues: #29421 |
804b015
to
0fd752e
Compare
0fd752e
to
9cc821a
Compare
9cc821a
to
ba210e1
Compare
@m-bucher curious how close this is for testing, a quick glace the code looks good! Do you need any help? You look like you've figured most of it out, but if you need any help i'd be happy to do a video chat to hammer out any questions. |
Currently I am looking into writing more tests, but due to my setup I am not really able to record correct VCRs for it. Having a video chat would be great, maybe @quba42 would like to join for this as he is more familiar with the pulp_deb implementation and how far we are from a release there. |
ba210e1
to
723d9ac
Compare
723d9ac
to
17257bf
Compare
17257bf
to
39113f0
Compare
app/lib/actions/katello/content_view_version/incremental_update.rb
Outdated
Show resolved
Hide resolved
@jlsherrill I finally managed to find time to get the tests to run through 😄 What I have not tested, yet was subscribing a host and checking whether it can access the repositories. I might have to add a redirect in Apache similar to that one: https://github.com/theforeman/puppet-foreman_proxy_content/blob/master/templates/pulpcore-isos-apache.conf.erb |
getting an error when trying to upload a deb to a repo:
|
everything else looks fine and works fine. I'll start building the client gem rpms |
opened theforeman/foreman-packaging#5880 to bump the version of that client |
Looks like you found another difference in the So we might have to fix this in |
@m-bucher we could also make this logic more customizable per content type, by creating a 'create' method in the content_backend_service layer (i.e. services/katello/pulp3/deb.rb/rpm.rb/etc...) that could handle the differences. We could put a generic one in pulp3/pulp_content_unit.rb |
7adf61b
to
daa5e0b
Compare
@jlsherrill see fixup-commit for implementation of a translation-method for package-upload. error:
traceback: |2
File "/usr/lib/python3.6/site-packages/rq/worker.py", line 883, in perform_job
rv = job.perform()
File "/usr/lib/python3.6/site-packages/rq/job.py", line 657, in perform
self._result = self._execute()
File "/usr/lib/python3.6/site-packages/rq/job.py", line 663, in _execute
return self.func(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/pulpcore/app/tasks/upload.py", line 28, in commit
serializer.is_valid(raise_exception=True)
File "/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 243, in is_valid
raise ValidationError(self.errors)
description: "{'non_field_errors': [ErrorDetail(string='sha512 checksum must be
unique.', code='unique')]}" |
The error seems to be that I already uploaded the file once successfully into pulpcore, but it was not added to the repository due to the previous failure in the call of the Is there a process to clean this up without having to remove stuff manually from pulpcore? Should the first upload-task be resumable, rather than ending in failed with a dangling upload in pulpcore? |
daa5e0b
to
abd8442
Compare
abd8442
to
26c287e
Compare
@m-bucher to be clear, the problem happens if something happens during the upload process and the artifact gets uploaded but not 'saved'? and then pulp doesn't allow it to be uploaded again? That does seem like a legit bug, hopefully we can look up the artifact by its href and just 'resume' the process. Would you mind filing an issue about that? I'll re-test! |
@jlsherrill thanks, created https://projects.theforeman.org/issues/31202 Any idea why the test, failed? seems like part of them was not even started 🤔 |
thanks @m-bucher ! we've been seeing this error in jenkins over the past couple days. I've still got no idea what the cause is :/ It seems like once a pr hits it, it continues to hit it. But probably not enough data to confirm that for sure, lets get some more: [test katello] |
[test katello] |
create, update, sync and delete debian repositories on pulp3 Add tests Add signing-service Add verification of deb-repos in pulp3
26c287e
to
5b9e332
Compare
So I got the test to run and fixed another issue along the way 😁 However, this one might be:
Any idea on how to fix this @jlsherrill ? |
I think that failure might be a transient one, it should go away on next test. The reimport ones are happening on other prs, so its possible something changed in foreman or tasks. We'll investigate |
[test katello] |
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.
ACK! But don't forget about incremental update still needed some work to work under deb :)
First goal is to implement
create, update, sync and delete debian repositories on pulp3
Probably not yet ready for final review, but definitely open for comments and critics 😉
TODOs
For now we will assign hardcoded SigningService with name
katello_deb_sign
, if it exists.fix still needs to be cherry-picked into pulp_deb 2.4