Bug 2054121
Summary: | API and WebUI must disallow repo create with negative Retain package versions count | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Pavel Moravec <pmoravec> |
Component: | Repositories | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Cole Higgins <chiggins> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.11.0 | CC: | juwatts, sajha, sbible |
Target Milestone: | 6.11.0 | 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: | 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:41:53 UTC
See also related: Bug 2054123 - hammer repository create ignores --retain-package-versions-count option This should be fixed by changes that went in as part of https://bugzilla.redhat.com/show_bug.cgi?id=2054123 and https://bugzilla.redhat.com/show_bug.cgi?id=2054008. Samir, If this is resolved by the 2 bugzillas mentioned in comment 3, this bugzilla can go to ON_DEV. This will allow the bugzilla to be 'handed off' to QE for verification with the next snap. Any concerns with that approach? Thanks! Hey Brad, That sounds good. QE should be able to test this out with the other 2 BZs. Verified on Sat 6.11 - 18 Note: Retain version count is only visible when setting mirroring policy to Additive Steps to Reproduce: 1. Create (or modify) a repo 2. Set mirroring policy to Additive, and set retain version count to a negative number 3. Save the repo. 4) Attempt to create a repo through hammer with a negative retain version count. Expected results: The UI will not allow you to save a package retain version count with a negative number Hammer command will fail Actual Results: When saving with a negative retain version count, an error card appears letting you know that negative numbers are not valid values for retain version hammer command returns an error, "Validation failed: Retain package versions count must not be a negative value." 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 |