Ansible facts are not updated on Satellite

Solution Verified - Updated -

Environment

Red Hat Satellite 6.9 and upper

Issue

When executing subscription-manager to update facts on Satellite those Content Host Ansible facts are not being updated on Satellite although subscription-manger finish successfully as they were updated.

Resolution

  • Check if there is a PTR record on the DNS server that points to a different hostname than DNS A record.
[root@satellite ~]# host client.example.com
client.example.com has address 192.168.1.10
[root@satellite ~]# host 192.168.1.10
10.1.168.192.in-addr.arpa domain name pointer anotherclient.example.com.
  • Fix PTR record on the DNS server or remove it.
  • Update facts on the Content Host.
[root@client.example.com ~]# subscription-manager facts --update
  • Confirm updated Host facts are shown on Satellite.
[root@satellite ~]# hammer host facts --name client.example.com

Root Cause

If a PTR record for the Content Hosts exists on the DNS server Satellite will store the facts using the returned hostname. Facts update command finish fine on the Host and on Satellite, but facts are stored under a "wrong" hostname. Hence when facts are listed on Satellite for that Host, they seems outdated.

Note A Content Host PTR record is not required for Satellite work properly. But if it exists, it is used.

Diagnostic Steps

  • Update facts on the Content Host.
[root@client.example.com ~]# subscription-manager facts --update
Successfully updated the system facts.
  • On Satellite this Content Hosts facts on Satellite shows outdated facts.
[root@satellite ~]# hammer host facts --name client.example.com
----------------------------------------------|---------------------------------------------------------------------------------
FACT                                          | VALUE                                                                           
----------------------------------------------|---------------------------------------------------------------------------------
network::ipv4_address                         | 192.168.1.10                                                                   

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments