Bug 2054123
| Summary: | hammer repository create ignores --retain-package-versions-count option | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Pavel Moravec <pmoravec> |
| Component: | Repositories | Assignee: | Samir Jha <sajha> |
| Status: | CLOSED ERRATA | QA Contact: | Cole Higgins <chiggins> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.11.0 | CC: | apatel, ehelms, gsulliva, jsherril, juwatts, kgaikwad, ofedoren, rabajaj |
| Target Milestone: | 6.11.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-katello-4.3.0.15-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-07-05 14:33:17 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: | |
| Embargoed: | |||
|
Description
Pavel Moravec
2022-02-14 08:50:52 UTC
Is this a regression from Satellite 6.10? (In reply to Brad Buckingham from comment #1) > Is this a regression from Satellite 6.10? Rather incomplete implementation or bug of the "retain package versions count" new 7.0 feature. 6.10 does not have the feature / option at all. I believe all of this may have been resolved by https://bugzilla.redhat.com/show_bug.cgi?id=2054008 > WebUI to show "Retain package versions:" option for the hammer-created repo as well. There is a discrepancy currently around repos created on UI vs hammer/API. The webUI default for mirroring policy is Additive while the controller default is Content only. The retain package version count is only visible on the UI for repos with additive mirroring policy. Hence the difference in view between UI and hammer created repos. The correct mirroring policy to default to would be Content only. We'll make that change as part of the BZ. The other issues identified in the BZ should be fixed by https://bugzilla.redhat.com/show_bug.cgi?id=2054008. Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34626 has been resolved. Verified in 6.11 snap 18.5 on RHEL 7 Default mirroring policy when creating a repo in hammer is content only. Switching to additive will show retain package counts in the UI and pulp DB. Steps to Reproduce: 1. hammer product create --organization-id 1 --name test_product 2. hammer repository create --retain-package-versions-count 1 --name testrepo_1 --product test_product --organization-id 1 --content-type yum 3. Optionally check DBs (you'll see a discrepancy as mirror policy is content only) Expected Results: Repo is created with mirroring policy set to content only. Actual Results: Repo is created with mirroring policy set to content only. I can also verify when changing to additive policy you will see the retain package counts in the UI and in the pulp DB. Another note, I'm not sure if this is an issue but when you create the repo above you can see retain package count in katello db. Not sure if we want to have that reflect mirroring policy the same way pulp does. Going to verify for now as it doesn't create any errors. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5498 |