Bug 2223415
| Summary: | Force registering from a Capsule to the Satellite using global registration template fails with HTTP error code 422: Unprocessable Entity error | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Manu Sunil <msunil> |
| Component: | Registration | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | NEW --- | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.14.0 | CC: | ahumbe, lstejska, nalfassi, rlavi |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| 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: | 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
Manu Sunil
2023-07-17 18:09:42 UTC
> Capsule should not be associated with any lifecycles. Why? Because of this registration is failing due to an error coming from RHEL: > Errors during downloading metadata for repository 'rhel-8-for-x86_64-baseos-rpms': > - Status code: 404 for https://capsule.example.com/pulp/content/RedHat/Library/content/dist/rhel8/8/x86_64/baseos/os/repodata/repomd.xml (IP: 10.10.125.2) > Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried This is not an issue in registration, but in not existing repository on capsule. > This behavior is not present on 6.13. Really? Do you have an environment where can I confirm it? From my understanding registering to capsule without env/cv never worked before. Hello Leos, The issue is not with the registration to the Capsule. Yes, it is expected that we get 404 error when when LCEs are not properly associated with the capsules. The issue is when I try to re-register using the Force option on GRT to the Satellite after the above process. For example, If I mistakenly choose a capsule without the correct lifecycle. The registration completes with `Validation failed` message and gives the 404 error(as expected). Now, if I try to re-register the client to Satellite by generating a global registration script with Force(after changing the capsule option), it reports the 422 error. Apologies, I don't have the setup readily available. I can reproduce the issue once again and share the setup here. Regards, Manu Sunil I see. On that second capsule, is the Library environment synced there? See the error:
> Validation failed: Host client.example.com: Cannot add content view environment to content facet. The host's content source 'capsule.example.com' does not sync the lifecycle environment 'Library'. (HTTP error code 422: Unprocessable Entity)
Looks like you selected a capsule and environment which is not synced there. Try to remove the environment from the command and run it again.
|