Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2174022

Summary: Failure during registration appears as successful
Product: Red Hat Satellite Reporter: Pablo Mendez Hernandez <pmendezh>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Sam Bible <sbible>
Severity: medium Docs Contact:
Priority: high    
Version: 6.13.0CC: ahumbe, jhutar, lstejska
Target Milestone: 6.15.0Keywords: Performance, Regression
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-05 14:40:49 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 Pablo Mendez Hernandez 2023-02-28 17:02:04 UTC
Description of problem:

While trying to register a bunch of systems using Ansible, I've found several systems that appear to register successfully (return code 0) but that don't succeed.

The Ansible script pushes a .sh file like this:

~~~
# cat clients_host-registration.sh
curl -sS --insecure 'https://$SAT_URL/register?activation_keys=AK_RHEL8&force=true&organization_id=1&setup_remote_execution_pull=true' -H 'Authorization: Bearer $AUTH_KEY' | bash
~~~

And executes it and fails if its return code is different than 0.

In this case, the output was:

~~~
# cat registration.log
#
# Running registration
#
This system is currently not registered.
All local data removed
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

No match for argument: katello-ca-consumer*
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".
The system has been registered with ID: aea643af-0aa5-48a9-9267-424ed15b08ad
The registered system name is: containerhost-1-container56.red.ddns.perf.redhat.com
# Running [containerhost-1-container56.red.ddns.perf.redhat.com] host initial configuration
/usr/sbin/restorecon
Starting deployment of REX pull provider
could not obtain a connection from the pool within 5.000 seconds (waited 5.005 seconds); all pooled connections were in use (HTTP error code 500: Internal Server Error)
Host [containerhost-1-container56.red.ddns.perf.redhat.com] initial configuration failed
(23) Failed writing body
~~~

Version-Release number of selected component (if applicable):

Satellite 6.13.0 snap 12.0


How reproducible:

It's happened in several systems while stressing concurrent registrations.


Steps to Reproduce:
1. Try to register lots of systems.
2. Look for failures.
3.

Actual results:

Some of the hosts fail to register but succeed from the Ansible point of view (the bash script returns 0).


Expected results:

A fail registration shouldn't return 0.


Additional info:

Comment 1 Brad Buckingham 2023-03-02 15:13:00 UTC
Is this a regression from 6.12 ? Thanks!

Comment 2 Pablo Mendez Hernandez 2023-03-02 16:58:09 UTC
Hi Brad,

We didn't see it during our 6.12 test campaig, so I'd consider it a new issue.


Best regards.

Comment 4 Marek Hulan 2023-06-05 14:40:49 UTC
I believe this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2155444, closing as such, please reopen if I misunderstood.

*** This bug has been marked as a duplicate of bug 2155444 ***