Bug 2222700 - [Bug] : Host Registration hangs for 5 minutes then fails
Summary: [Bug] : Host Registration hangs for 5 minutes then fails
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.13.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-13 13:58 UTC by Daniel Leroux
Modified: 2023-08-10 14:35 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-19023 0 None None None 2023-07-18 13:37:01 UTC

Description Daniel Leroux 2023-07-13 13:58:07 UTC
Description of problem:

Host provisioned in Azure through Satellite, then registration fails after hanging for 5 minutes

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

Satellite 6.13.1 but it's possible previous versions of Satellite are also affected


How reproducible:

Customer can reproduce the issue on demand

Steps to Reproduce:
1. Provision from Satellite  
2. Registration Fails  
3. Delete the host from Satellite  
4. Re-register > Successful.

1. Provision from Azure Portal > Register via workflow > Host is not present initially in Satellite > Successful

Actual results:

See above

Expected results:

See above

Additional info:


For some reason, the registration request got hang for 5 minutes many times, for example:

6256:2023-07-13T09:12:13 [D|tax|c773fda3] Current organization set to RIO TINTO
6413:2023-07-13T09:17:53 [I|app|c773fda3] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received

6434:2023-07-13T09:17:53 [I|app|c773fda3] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received
8214:2023-07-13T09:23:12 [I|app|c773fda3] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received

8222:2023-07-13T09:23:12 [I|aud|c773fda3] Katello::Host::SubscriptionFacet (126) update event on uuid 788a15ea-14c3-4729-85b7-962cc4c8eea4, c30ae099-0e89-493d-9aa2-281d0a3b6d51
8372:2023-07-13T09:29:16 [I|app|c773fda3] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received

we need help to understand what could cause this. Further more, this only happens on the hosts built in Satellite. 


Please refer to case 03521529 for more details

Comment 1 Brad Buckingham 2023-07-13 14:04:31 UTC
Can you provide reproducer steps and results?  Thanks!

Comment 7 Leos Stejskal 2023-07-17 06:14:12 UTC
Hi,
I believe the problem is the rebuilding host while registering it,
there is an upstream PR to fix this issue [0], could you verify that it solves your case?

[0] https://github.com/theforeman/foreman/pull/9746

Comment 8 Brad Buckingham 2023-07-17 12:30:26 UTC
Adding needinfo based upon comment 7.

Comment 9 matt jia 2023-07-18 02:17:49 UTC
Hi Leos Stejskal,

(In reply to Leos Stejskal from comment #7)
> Hi,
> I believe the problem is the rebuilding host while registering it,
> there is an upstream PR to fix this issue [0], could you verify that it
> solves your case?
> 
> [0] https://github.com/theforeman/foreman/pull/9746

Thanks for the update. However, it doesn't seem the same problem to me. As I understand, the patch fixes the /register endpoint but in my case the issue resides in the /rhsm/consumers endpoint.
This is because the post-install calls subscription-manager to register. Do you think it's still worth to apply the patch and register the host with the curl command?

Thanks,
Matt

Comment 10 Leos Stejskal 2023-07-18 12:09:47 UTC
> Do you think it's still worth to apply the patch and register the host with the curl command?

Well, it's in the plan to use global registration also in kickstart templates, won't hurt to try it and see what are the improvements or yet unknown issues.

> As I understand, the patch fixes the /register endpoint but in my case the issue resides in the /rhsm/consumers endpoint.

Hmm, in that case it looks like a Katello issue. @Ian can your team take a look?

Comment 11 Ian Ballou 2023-07-18 13:31:46 UTC
Moving the component to Content - Hosts since the issue appears to be in the /rhsm/consumers endpoint.


Note You need to log in before you can comment on or make changes to this bug.