Hosts showing up as discovered_hosts before all information is populated.

Solution In Progress - Updated -

Issue

A customer uses an automated build process with Satellite utilizing a discovery iso. Because the discovered facts aren't updated atomically, when querying the discovered hosts API, an incomplete record with null entries may be found and actioned before those null entries are updated with actual data. This causes the build to fail.

Look for a discovered host:
   https://{{ satelliteurl }}/api/v2/discovered_hosts/?search=name~{{ name }}

Several of the key facts/fields show as null

        "date": "Tue, 10 Dec 2019 18:38:10 GMT", 
        "elapsed": 0, 
        "etag": "W/\"(redacted)\"", 
        "failed": false, 
        "foreman_api_version": "2", 
        "foreman_version": "1.22.0.32", 
        "json": {
            "page": 1, 
            "per_page": 20, 
            "results": [
                {
                    "cpus": null, 
                    "disk_count": null, 
                    "disks_size": null, 
                    "hardware_model_name": null, 
                    "id": 199010, 
                    "ip": "(present, but redacted)", 
                    "last_report": "2019-12-10 18:38:09 UTC", 
                    "location_id": null, 
                    "location_name": null, 
                    "mac": "(present, but redacted)", 
                    "memory": null, 
                    "name": "(present, but redacted)", 
                    "organization_id": null, 
                    "organization_name": null, 
                    "subnet_id": null, 
                    "subnet_name": null
                }
            ], 
            "search": "(present, but redacted)",

Environment

Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content