| Summary: | SRPMs should not be allowed to upload in a satellite product. | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Vishwanath <vmeghana> |
| Component: | Repositories | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED WONTFIX | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2.0 | CC: | bbuckingham, jcallaha, rakumar, redhatbugs |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-09-04 18:05:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Vishwanath
2016-10-07 05:40:55 UTC
Created redmine issue http://projects.theforeman.org/issues/17746 from this bug Vishwanath submitted this on my behalf.
I was actually expecting Satellite to submit SRPMs to pulp with file type "srpm", not to render a message indicating that SRPMs cannot be uploaded.
When I build custom RPMs, I'd like to keep the SRPMs in Satellite with the custom RPMs. I currently have to keep SRPMs in a completely separate system, and I have to manually add/remove SRPMs from that other system as we add/remove RPMs in Satellite. I would much prefer to keep the SRPMs and RPMs all in the same place.
Pulp does support SRPMs, so this should be possible. The real issue here is that Satellite uploads both RPMs and SRPMs as the file type "rpm", while pulp requires SRPMs to be uploaded as file type "srpm".
From /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.73/app/models/katello/glue/pulp/repo.rb :
710 def unit_type_id
711 case content_type
712 when Repository::YUM_TYPE
713 "rpm"
714 when Repository::PUPPET_TYPE
715 "puppet_module"
716 when Repository::DOCKER_TYPE
717 "docker_manifest"
718 when Repository::OSTREE_TYPE
719 "ostree"
720 when Repository::FILE_TYPE
721 "iso"
722 end
723 end
I believe that adjusting this logic so that it checks the actual file type in addition to checking the repository type would solve this problem.
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. |