Bug 1961390
| Summary: | Encountering an unexpected "HTTP error (403 - Forbidden)" when attempting to attach non-multi-entitlement pools with a quantity | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | candlepin-bugs |
| Status: | CLOSED NOTABUG | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.0 | CC: | redakkan |
| Target Milestone: | beta | Keywords: | Regression, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-06-25 15:29:38 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
John Sefler
2021-05-17 19:33:06 UTC
Here is another repeatable case showing an error handling difference between subscription-manager-1.29.9-1.el9 and subscription-manager-1.28.16-1.el8
ON RHEL9...
[root@kvm-05-guest14 ~]# echo '{"system.certificate_version":"1.0"}' > /etc/rhsm/facts/override.facts
[root@kvm-05-guest14 ~]# subscription-manager facts --update
[root@kvm-05-guest14 ~]# subscription-manager list --available --matches=RH00003 --pool-only
8a99f9af75743153017575f6af7f00cf
[root@kvm-05-guest14 ~]# subscription-manager attach --pool=8a99f9af75743153017575f6af7f00cf
HTTP error (500 - Internal Server Error): Too many content sets for certificate Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes). A newer client may be available to address this problem. See knowledge database https://access.redhat.com/knowledge/node/129003 for more information.
ON RHEL8...
[root@kvm-05-guest13 ~]# echo '{"system.certificate_version":"1.0"}' > /etc/rhsm/facts/override.facts
[root@kvm-05-guest13 ~]# subscription-manager facts --update
Successfully updated the system facts.
[root@kvm-05-guest13 ~]# subscription-manager list --available --matches=RH00003 --pool-only
8a99f9af75743153017575f6af7f00cf
[root@kvm-05-guest13 ~]# subscription-manager attach --pool=8a99f9af75743153017575f6af7f00cf
Too many content sets for certificate Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes). A newer client may be available to address this problem. See knowledge database https://access.redhat.com/knowledge/node/129003 for more information.
Again, notice the error handling difference "HTTP error (500 - Internal Server Error): "
Here is another repeatable case showing an error handling difference between subscription-manager-1.29.9-1.el9 and subscription-manager-1.28.16-1.el8 This is after a negative attempt to attach this pool a second time... ON RHEL9... [root@kvm-02-guest16 ~]# subscription-manager attach --pool=8a99f9ae75743158017575f844e800a0 HTTP error (403 - Forbidden): This unit has already had the subscription matching pool ID "8a99f9ae75743158017575f844e800a0" attached. ON RHEL8... [root@kvm-03-guest17 ~]# subscription-manager attach --pool=8a99f9ae75743158017575f844e800a0 This unit has already had the subscription matching pool ID "8a99f9ae75743158017575f844e800a0" attached. Again, notice the error handling difference "HTTP error (403 - Forbidden): " This issue might be closed as notabug since one could argue that the former error handling on RHEL8 was actually flawed and masked the developer's original intention to report server-side error codes (as introduced by the solution for bug 1507030) which is now more obvious after the "Refactor managercli (#2453)" commit for RHEL9. (In reply to John Sefler from comment #6) > This issue might be closed as notabug since one could argue that the former > error handling on RHEL8 was actually flawed and masked the developer's > original intention to report server-side error codes (as introduced by the > solution for bug 1507030) which is now more obvious after the "Refactor > managercli (#2453)" commit for RHEL9. This is what we agreed on; I filed bug 1976240 as RFE for improving the error string. Hence, closing this as NOTABUG, since the current behaviour is what was expected. |