No facts from rhsm (Subscription-manager)

Problem: After registering host in to foreman with the subscription manager there are no gathered facts for the newly registered host. In Monitor > Facts > filter for host fqdn.

Expected outcome: I’m expecting to see gathered facts. “net;system;virt;dmi;uname;etc…”

Foreman and Proxy versions: 3.13.0-1

Foreman and Proxy plugin versions: foreman-tasks 10.0.1 , foreman_remote_execution 14.0.2 , katello 4.15.0

Distribution and version:

Other relevant data: I’m expecting a network issue, I have a different host registered to the Foreman/katello which is in the same network and everything works fine. But I can’t figure out which port should be allowed for sending facts? The host from different network is working normally with subscription manager it register when I allow or disable repositories for it. I TCPDUMPT communication to Foreman/katello server during command subscription-manager facts --update command finishes with Successfully updated the system facts
And TCPDUMP is

14:37:59.413268 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [S], seq 307482908, win 64240, options [mss 1460,sackOK,TS val 789268647 ecr 0,nop,wscale 7], length 0
14:37:59.413476 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [S.], seq 3929854249, ack 307482909, win 65160, options [mss 1460,sackOK,TS val 3300971447 ecr 789268647,nop,wscale 7], length 0
14:37:59.413497 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [.], ack 1, win 502, options [nop,nop,TS val 789268648 ecr 3300971447], length 0
14:37:59.413813 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [P.], seq 1:518, ack 1, win 502, options [nop,nop,TS val 789268648 ecr 3300971447], length 517
14:37:59.413974 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [.], ack 518, win 506, options [nop,nop,TS val 3300971447 ecr 789268648], length 0
14:37:59.418530 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [.], seq 1:1449, ack 518, win 506, options [nop,nop,TS val 3300971452 ecr 789268648], length 1448
14:37:59.418536 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [.], ack 1449, win 501, options [nop,nop,TS val 789268653 ecr 3300971452], length 0
14:37:59.418545 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [.], seq 1449:2897, ack 518, win 506, options [nop,nop,TS val 3300971452 ecr 789268648], length 1448
14:37:59.418551 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [.], ack 2897, win 496, options [nop,nop,TS val 789268653 ecr 3300971452], length 0
14:37:59.418558 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [P.], seq 2897:4097, ack 518, win 506, options [nop,nop,TS val 3300971452 ecr 789268648], length 1200
14:37:59.418563 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [.], ack 4097, win 489, options [nop,nop,TS val 789268653 ecr 3300971452], length 0
14:37:59.418575 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [P.], seq 4097:4633, ack 518, win 506, options [nop,nop,TS val 3300971452 ecr 789268648], length 536
14:37:59.418576 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [.], ack 4633, win 485, options [nop,nop,TS val 789268653 ecr 3300971452], length 0
14:37:59.424528 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [P.], seq 518:3946, ack 4633, win 501, options [nop,nop,TS val 789268659 ecr 3300971452], length 3428
14:37:59.424699 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [.], ack 3946, win 501, options [nop,nop,TS val 3300971458 ecr 789268659], length 0
14:37:59.424740 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [P.], seq 3946:4383, ack 4633, win 501, options [nop,nop,TS val 789268659 ecr 3300971458], length 437
14:37:59.424765 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [P.], seq 4383:11623, ack 4633, win 501, options [nop,nop,TS val 789268659 ecr 3300971458], length 7240
14:37:59.424774 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [P.], seq 11623:13551, ack 4633, win 501, options [nop,nop,TS val 789268659 ecr 3300971458], length 1928
14:37:59.425332 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [.], seq 4633:6081, ack 13551, win 464, options [nop,nop,TS val 3300971459 ecr 789268659], length 1448
14:37:59.425351 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [P.], seq 6081:6584, ack 13551, win 464, options [nop,nop,TS val 3300971459 ecr 789268659], length 503
14:37:59.425361 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [.], ack 6584, win 496, options [nop,nop,TS val 789268659 ecr 3300971459], length 0
14:37:59.425424 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [.], seq 6584:8032, ack 13551, win 464, options [nop,nop,TS val 3300971459 ecr 789268659], length 1448
14:37:59.425449 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [P.], seq 8032:8535, ack 13551, win 464, options [nop,nop,TS val 3300971459 ecr 789268659], length 503
14:37:59.425453 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [.], ack 8535, win 501, options [nop,nop,TS val 789268660 ecr 3300971459], length 0
14:37:59.528172 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [P.], seq 8535:9621, ack 13551, win 501, options [nop,nop,TS val 3300971562 ecr 789268660], length 1086
14:37:59.562777 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [P.], seq 13551:13575, ack 9621, win 501, options [nop,nop,TS val 789268797 ecr 3300971562], length 24
14:37:59.563007 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [P.], seq 9621:9645, ack 13575, win 501, options [nop,nop,TS val 3300971596 ecr 789268797], length 24
14:37:59.563056 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [F.], seq 9645, ack 13575, win 501, options [nop,nop,TS val 3300971596 ecr 789268797], length 0
14:37:59.563080 IP os02-ab-dvolf-perf.perf.network2.43512 > repo-katello-drc.network1.https: Flags [F.], seq 13575, ack 9646, win 501, options [nop,nop,TS val 789268797 ecr 3300971596], length 0
14:37:59.563212 IP repo-katello-drc.network1.https > os02-ab-dvolf-perf.perf.network2.43512: Flags [.], ack 13576, win 501, options [nop,nop,TS val 3300971597 ecr 789268797], length 0

But sadly there are no facts at the Foreman.

I have a small update on the situation. I foreman production.log I noticed that If I manually run subscription-manager facts --update for host on the same network as a foreman server I get

2025-03-13T14:08:32 [I|app|604c616d] Started PUT "/rhsm/consumers/289dd974-1a66-4ed5-a04b-c8d0b1cd23f0" for 10.133.16.39 at 2025-03-13 14:08:32 +0100
2025-03-13T14:08:32 [I|app|604c616d] Processing by Katello::Api::Rhsm::CandlepinProxiesController#facts as JSON
2025-03-13T14:08:32 [I|app|604c616d]   Parameters: {"facts"=>"[FILTERED]", "id"=>"289dd974-1a66-4ed5-a04b-c8d0b1cd23f0"}
2025-03-13T14:08:32 [I|app|604c616d] Import facts for 'os02-dculik-ansible-np.network1' completed. Added: 0, Updated: 1, Deleted 0 facts
2025-03-13T14:08:32 [I|app|604c616d] Completed 200 OK in 143ms (Views: 0.2ms | ActiveRecord: 11.2ms | Allocations: 47509)

and from the host on different network I get

2025-03-13T14:08:48 [I|app|cba9680e] Started PUT "/rhsm/consumers/4272bf71-3ce9-49dd-8a30-8ea2eca6f94c" for 10.136.4.5 at 2025-03-13 14:08:48 +0100
2025-03-13T14:08:48 [I|app|cba9680e] Processing by Katello::Api::Rhsm::CandlepinProxiesController#facts as JSON
2025-03-13T14:08:48 [I|app|cba9680e]   Parameters: {"facts"=>"[FILTERED]", "id"=>"4272bf71-3ce9-49dd-8a30-8ea2eca6f94c"}
2025-03-13T14:08:48 [I|app|cba9680e] Completed 200 OK in 95ms (Views: 0.2ms | ActiveRecord: 4.7ms | Allocations: 26441)

It misses line Import facts for but it gets 200 code. :confused:

I’m not sure which port you might be missing off the top of my head, but does this part of the docs help at all? Installing Foreman Server with Katello nightly plugin on Enterprise Linux

We list the Firewall requirements out.