Bug 1949353
Summary: | Registering new host or refreshing existing host using subscription manager failed with "400 - Bad Request" | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Hao Chang Yu <hyu> | |
Component: | Candlepin | Assignee: | Chris "Ceiu" Rog <crog> | |
Status: | CLOSED ERRATA | QA Contact: | Danny Synk <dsynk> | |
Severity: | high | Docs Contact: | ||
Priority: | urgent | |||
Version: | 6.8.0 | CC: | ableisch, ahumbe, ajambhul, aperotti, dgupte, dhjoshi, elavarde, emeroglu, jjeffers, jkrajice, jpasqual, jsenkyri, ktordeur, mmccune, nmoumoul, pcfe, pdwyer, pmendezh, pmoravec, robin.jonsson7, saydas, smeyer, vcojot, vijsingh, wpinheir | |
Target Milestone: | 6.8.6 | Keywords: | PrioBumpGSS, Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | candlepin-3.1.28-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1949698 1951629 (view as bug list) | Environment: | ||
Last Closed: | 2021-04-19 21:41:07 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: | ||||
Bug Depends On: | 1949698, 1949976, 1949980 | |||
Bug Blocks: |
Description
Hao Chang Yu
2021-04-14 05:17:57 UTC
Just a speculation about potential workaround: remove the _uniquity_ of the index? (i.e. have that index but not with unique constraint)? Just as a temporary workaround, to let registrations to pass and create duplicate entries in the postgres table. Once we have a permanent fix, remove duplicate entries from the table and make the index unique again..? This hotfix is applicable to both Satellite 6.8.5 and 6.8.6. Engineering is working on an official errata update to this BZ and we expect this early next week. *** Satellite 6.8.5 and 6.8.6 Hotfix Available *** 1) Download https://people.redhat.com/~mmccune/hotfix/candlepin-3.1.28-1.tar.gz to your Satellite 2) verify sha256 sum: # sha256sum candlepin-3.1.28-1.tar.gz 19d76bbe69b80d792214688b8595d8aa57ad273ef074af8b8552f91d3a2e1035 candlepin-3.1.28-1.tar.gz 3) stop services: satellite-maintain service stop 4) Install: tar xvf candlepin-3.1.28-1.tar.gz rpm -Uvh candlepin*.rpm 4) restart: satellite-maintain service start 5) resume operations Steps to test: - Deploy a Satellite 6.8.6 from the latest snap. - Upload a manifest with Simple Content Access enabled. - Synchronize two repositories. - Create a content view containing one repository and publish the first version. - Create an activation key associated with the content view. - Register a content host using the activation key. - Unregister the content host. - Add the second repository to the content view and publish a new version. - Re-register the content host using the activation key. Expected Results: The content host is successfully re-registered with no errors. `subscription-manager refresh` also runs without error. Actual Results: The content host is successfully re-registered with no errors. `subscription-manager refresh` also runs without error: ~~~ [root@dhcp-2-49 ~]# subscription-manager register --org="Default_Organization" --activationkey="rhel8" The system has been registered with ID: ff35d8d6-d50e-4258-9fcc-43d2bccd27de The registered system name is: dhcp-2-49.vms.sat.rdu2.redhat.com [root@dhcp-2-49 ~]# subscription-manager refresh All local data refreshed ~~~ Verified on Satellite 6.8.6 (candlepin-3.1.28-1.el7sat.noarch). 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 (Satellite 6.8 Async Bug Fix Update), 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/RHBA-2021:1261 |