Hey lzap,
Thank you for the continued assistance!
So I walked through what you advised:
- Turned off the auto-provision setting.
- Made sure the host was completely deleted from Foreman.
- Began the discovery process on the host.
- Ran the formake-rake console and executed the requested command as soon as the host was discovered. See the JSON output below:
{
"lib": "/usr/share/fdi/facts:/opt/extension/facts",
"virtual": "physical",
"is_virtual": "false",
"id": "root",
"netmask": "255.255.255.0",
"selinux": "false",
"interfaces": "enp11s0,enp6s0,lo",
"macaddress_enp11s0": "40:f2:e9:d6:50:68",
"mtu_enp11s0": "1500",
"ipaddress_enp6s0": "10.59.24.175",
"macaddress_enp6s0": "40:f2:e9:d6:50:67",
"netmask_enp6s0": "255.255.255.0",
"mtu_enp6s0": "1500",
"boardmanufacturer": "IBM",
"boardproductname": "81Y7071",
"boardserialnumber": "4B908Y",
"bios_vendor": "IBM Corp.",
"bios_version": "-[JQE168BUS-1.09]-",
"bios_release_date": "09/17/2014",
"manufacturer": "IBM",
"productname": "IBM System x3100 M4 -[2582AC1]-",
"serialnumber": "E2N7985",
"uuid": "1a0c4069-68f2-35e8-af29-b5a8e33f746a",
"type": "Tower",
"physicalprocessorcount": "1",
"architecture": "x86_64",
"hardwaremodel": "x86_64",
"os::name": "CentOS",
"os::family": "RedHat",
"os::release::major": "7",
"os::release::minor": "7",
"os::release::full": "7.7.1908",
"macaddress": "40:f2:e9:d6:50:68",
"ipaddress": "10.59.24.175",
"hostname": "fdi",
"uniqueid": "3b0aaf18",
"gid": "root",
"processors::models": "[\"Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz\", \"Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz\", \"Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz\", \"Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz\"]",
"processors::count": "4",
"processors::physicalcount": "1",
"processor0": "Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz",
"processor1": "Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz",
"processor2": "Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz",
"processor3": "Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz",
"processorcount": "4",
"memorysize": "7.75 GB",
"memorysize_mb": "7938.83",
"dhcp_servers::system": "10.254.52.34",
"dhcp_servers::enp6s0": "10.254.52.34",
"fqdn": "fdi.example.com",
"hardwareisa": "x86_64",
"ps": "ps -ef",
"partitions::sda1::uuid": "daafe133-7c32-48fe-92b5-40f06bac711d",
"partitions::sda1::size": "2097152",
"partitions::sda1::filesystem": "ext4",
"partitions::sda2::size": "581883904",
"partitions::sda2::filesystem": "LVM2_member",
"blockdevice_sda_size": "298999349248",
"blockdevice_sda_vendor": "IBM",
"blockdevice_sda_model": "ServeRAID M1015",
"blockdevice_sr0_size": "1073741312",
"blockdevice_sr0_vendor": "IBM SATA",
"blockdevice_sr0_model": "DEVICE 81Y3675",
"blockdevices": "sda,sr0",
"network_enp6s0": "10.59.24.0",
"domain": "example.com",
"facterversion": "2.4.1",
"discovery_version": "3.5.7",
"discovery_release": "20191021.1",
"discovery_bootif": "40:f2:e9:d6:50:67",
"discovery_bootip": "10.59.24.175",
"duplex_enp11s0": "unknown! (255)",
"port_enp11s0": "Twisted Pair",
"auto_negotiation_enp11s0": "true",
"wol_enp11s0": "true",
"link_enp11s0": "false",
"speed_enp6s0": "1000",
"duplex_enp6s0": "full",
"port_enp6s0": "Twisted Pair",
"auto_negotiation_enp6s0": "true",
"wol_enp6s0": "true",
"link_enp6s0": "true",
"ipmi_enabled": "true",
"ipmi_ipaddress_source": "Other",
"ipmi_ipaddress": "10.59.24.215",
"ipmi_subnet_mask": "255.255.255.0",
"ipmi_macaddress": "40:f2:e9:d6:50:6b",
"ipmi_gateway": "10.59.24.1",
"ipmi_1_ipaddress_source": "Other",
"ipmi_1_ipaddress": "10.59.24.215",
"ipmi_1_subnet_mask": "255.255.255.0",
"ipmi_1_macaddress": "40:f2:e9:d6:50:6b",
"ipmi_1_gateway": "10.59.24.1",
"nmprimary_connection_id": "primary",
"nmprimary_connection_uuid": "53e71b0e-fe83-11ea-bcc8-40f2e9d65067",
"nmprimary_connection_type": "802-3-ethernet",
"nmprimary_connection_autoconnect": "yes",
"nmprimary_connection_autoconnect-priority": "1",
"nmprimary_connection_autoconnect-retries": "-1",
"nmprimary_connection_multi-connect": "0",
"nmprimary_connection_auth-retries": "-1",
"nmprimary_connection_read-only": "no",
"nmprimary_connection_autoconnect-slaves": "-1",
"nmprimary_connection_metered": "unknown",
"nmprimary_connection_lldp": "default",
"nmprimary_connection_mdns": "-1",
"nmprimary_connection_llmnr": "-1",
"nmprimary_802-3-ethernet_speed": "0",
"nmprimary_802-3-ethernet_auto-negotiate": "no",
"nmprimary_802-3-ethernet_mac-address": "40:F2:E9:D6:50:67",
"nmprimary_802-3-ethernet_mtu": "auto",
"nmprimary_802-3-ethernet_wake-on-lan": "default",
"nmprimary_ipv4_method": "auto",
"nmprimary_ipv4_dns-options": "",
"nmprimary_ipv4_dns-priority": "0",
"nmprimary_ipv4_route-metric": "-1",
"nmprimary_ipv4_route-table": "0",
"nmprimary_ipv4_ignore-auto-routes": "no",
"nmprimary_ipv4_ignore-auto-dns": "no",
"nmprimary_ipv4_dhcp-send-hostname": "no",
"nmprimary_ipv4_never-default": "no",
"nmprimary_ipv4_may-fail": "yes",
"nmprimary_ipv6_method": "ignore",
"nmprimary_ipv6_dns-options": "",
"nmprimary_ipv6_dns-priority": "0",
"nmprimary_ipv6_route-metric": "-1",
"nmprimary_ipv6_route-table": "0",
"nmprimary_ipv6_ignore-auto-routes": "no",
"nmprimary_ipv6_ignore-auto-dns": "no",
"nmprimary_ipv6_never-default": "no",
"nmprimary_ipv6_may-fail": "yes",
"nmprimary_ipv6_ip6-privacy": "-1",
"nmprimary_ipv6_addr-gen-mode": "eui64",
"nmprimary_ipv6_dhcp-send-hostname": "yes",
"nmprimary_vlan_id": "0",
"nmprimary_vlan_flags": "1",
"nmprimary_proxy_method": "none",
"nmprimary_proxy_browser-only": "no",
"nmprimary_general_name": "primary",
"nmprimary_general_uuid": "53e71b0e-fe83-11ea-bcc8-40f2e9d65067",
"nmprimary_general_devices": "enp6s0",
"nmprimary_general_state": "activated",
"nmprimary_general_default": "yes",
"nmprimary_general_default6": "no",
"nmprimary_general_vpn": "no",
"nmprimary_ip4_address": "10.59.24.175/24",
"nmprimary_ip4_gateway": "10.59.24.1",
"nmprimary_ip4_route": "dst = 0.0.0.0/0, nh = 10.59.24.1, mt = 100",
"nmprimary_ip4_dns": "10.92.128.40",
"nmprimary_ip4_domain": "example.com",
"nmprimary_dhcp4_option_broadcast_address": "10.59.24.255",
"nmprimary_dhcp4_option_dhcp_message_type": "5",
"nmprimary_dhcp4_option_dhcp_server_identifier": "10.254.52.34",
"nmprimary_dhcp4_option_domain_name": "example.com",
"nmprimary_dhcp4_option_domain_name_servers": "10.92.128.40 10.92.128.41 10.20.17.25 10.20.17.26 10.95.65.34 10.95.131.30",
"nmprimary_dhcp4_option_expiry": "1600965364",
"nmprimary_dhcp4_option_filename": "/pxelinux.0",
"nmprimary_dhcp4_option_ip_address": "10.59.24.175",
"nmprimary_dhcp4_option_network_number": "10.59.24.0",
"nmprimary_dhcp4_option_next_server": "10.11.184.93",
"nmprimary_dhcp4_option_ntp_servers": "10.92.128.40",
"nmprimary_dhcp4_option_requested_broadcast_address": "1",
"nmprimary_dhcp4_option_requested_classless_static_routes": "1",
"nmprimary_dhcp4_option_requested_domain_name": "1",
"nmprimary_dhcp4_option_requested_domain_name_servers": "1",
"nmprimary_dhcp4_option_requested_domain_search": "1",
"nmprimary_dhcp4_option_requested_host_name": "1",
"nmprimary_dhcp4_option_requested_interface_mtu": "1",
"nmprimary_dhcp4_option_requested_ms_classless_static_routes": "1",
"nmprimary_dhcp4_option_requested_nis_domain": "1",
"nmprimary_dhcp4_option_requested_nis_servers": "1",
"nmprimary_dhcp4_option_requested_ntp_servers": "1",
"nmprimary_dhcp4_option_requested_rfc3442_classless_static_routes": "1",
"nmprimary_dhcp4_option_requested_routers": "1",
"nmprimary_dhcp4_option_requested_static_routes": "1",
"nmprimary_dhcp4_option_requested_subnet_mask": "1",
"nmprimary_dhcp4_option_requested_wpad": "1",
"nmprimary_dhcp4_option_routers": "10.59.24.1",
"nmprimary_dhcp4_option_subnet_mask": "255.255.255.0",
"nmprimary_dhcp4_option_wpad": "a:0",
"nmprimary_ip6_address": "fe80::42f2:e9ff:fed6:5067/64",
"nmprimary_ip6_route": "dst = ff00::/8, nh = ::, mt = 256, table=255",
"nmprimary_ptr": "ods00712w10.example.com",
"discovery_proxy_uri": "https://hqret-foreman.example.com",
"discovery_proxy_type": "foreman",
"os": null,
"os::release": null,
"processors": null,
"dhcp_servers": null,
"partitions::sda1": null,
"partitions": null,
"partitions::sda2": null
}
- I also pulled the production log of this event, shown below:
2020-09-24T12:31:55 [I|app|6ea75b35] Started POST "/api/v2/discovered_hosts/facts" for 127.0.0.1 at 2020-09-24 12:31:55 -0400
2020-09-24T12:31:55 [I|app|6ea75b35] Processing by Api::V2::DiscoveredHostsController#facts as JSON
2020-09-24T12:31:55 [I|app|6ea75b35] Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on mac
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on ip
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on type Nic::Managed
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on name mac40f2e9d65067
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on host_id 22
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on subnet_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on domain_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on attrs {}
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on provider
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on username
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on password [redacted]
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on virtual false
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on link true
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on identifier
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on tag
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on attached_to
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on managed true
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on mode balance-rr
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on attached_devices
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on bond_options
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on primary true
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on provision true
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on compute_attributes {}
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on ip6
2020-09-24T12:31:55 [I|aud|6ea75b35] Nic::Managed (61) create event on subnet6_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on name mac40f2e9d65067
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on last_compile
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on root_pass
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on architecture_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on operatingsystem_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on environment_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on ptable_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on medium_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on build false
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on comment
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on disk
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on installed_at
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on model_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on hostgroup_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on owner_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on owner_type
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on enabled true
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on puppet_ca_proxy_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on managed false
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on use_image
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on image_file
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on uuid
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on compute_resource_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on puppet_proxy_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on certname
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on image_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on organization_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on location_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on otp
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on realm_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on compute_profile_id
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on provision_method
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on grub_pass
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on global_status 0
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on lookup_value_matcher
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on pxe_loader
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on initiated_at
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on build_errors
2020-09-24T12:31:55 [I|aud|6ea75b35] Host::Base (22) create event on discovery_rule_id
2020-09-24T12:31:56 [I|app|6ea75b35] Import facts for 'mac40f2e9d65067' completed. Added: 192, Updated: 0, Deleted 0 facts
2020-09-24T12:31:56 [D|tax|6ea75b35] Current location set to Default Location
2020-09-24T12:31:56 [D|tax|6ea75b35] Current organization set to Default Organization
2020-09-24T12:31:56 [D|app|6ea75b35] skipping interface with identifier 'lo' since it was matched by 'ignored_interface_identifiers' setting
2020-09-24T12:31:56 [D|app|6ea75b35] We have following interfaces 'enp11s0, enp6s0' based on facts
2020-09-24T12:31:56 [D|app|6ea75b35] Interface enp11s0 facts: {"macaddress"=>"40:f2:e9:d6:50:68", "mtu"=>1500, "duplex"=>"unknown! (255)", "port"=>"Twisted Pair", "auto_negotiation"=>"true", "wol"=>true, "link"=>"false"}
2020-09-24T12:31:56 [D|app|6ea75b35] Interface enp6s0 facts: {"ipaddress"=>"10.59.24.175", "macaddress"=>"40:f2:e9:d6:50:67", "netmask"=>"255.255.255.0", "mtu"=>1500, "network"=>"10.59.24.0", "speed"=>"1000", "duplex"=>"full", "port"=>"Twisted Pair", "auto_negotiation"=>"true", "wol"=>true, "link"=>"true"}
2020-09-24T12:31:56 [D|app|6ea75b35] Discovery fact parser detected primary interface: ["enp6s0", {"ipaddress"=>"10.59.24.175", "macaddress"=>"40:f2:e9:d6:50:67", "netmask"=>"255.255.255.0", "mtu"=>1500, "network"=>"10.59.24.0", "speed"=>"1000", "duplex"=>"full", "port"=>"Twisted Pair", "auto_negotiation"=>"true", "wol"=>true, "link"=>"true", "keep_subnet"=>true, "virtual"=>false}]
2020-09-24T12:31:56 [D|app|6ea75b35] Discovery fact parser detected primary interface: ["enp6s0", {"ipaddress"=>"10.59.24.175", "macaddress"=>"40:f2:e9:d6:50:67", "netmask"=>"255.255.255.0", "mtu"=>1500, "network"=>"10.59.24.0", "speed"=>"1000", "duplex"=>"full", "port"=>"Twisted Pair", "auto_negotiation"=>"true", "wol"=>true, "link"=>"true", "keep_subnet"=>true, "virtual"=>false}]
2020-09-24T12:31:56 [D|app|6ea75b35] Suggested enp6s0 NIC as a primary interface.
2020-09-24T12:31:56 [I|aud|6ea75b35] Nic::Managed (61) update event on mac , 40:f2:e9:d6:50:67
2020-09-24T12:31:56 [I|aud|6ea75b35] Nic::Managed (61) update event on identifier , enp6s0
2020-09-24T12:31:56 [D|app|6ea75b35] Saving enp11s0 NIC for host mac40f2e9d65067
2020-09-24T12:31:56 [D|app|6ea75b35] Saving enp6s0 NIC for host mac40f2e9d65067
2020-09-24T12:31:56 [D|app|6ea75b35] Saving ipmi NIC for host mac40f2e9d65067
2020-09-24T12:31:56 [I|app|6ea75b35] Detected IPv4 subnet: 00712_OpsNet with taxonomy ["MyOrg"]/["MyLoc"]
2020-09-24T12:31:56 [I|app|6ea75b35] Assigned location: MyLoc
2020-09-24T12:31:56 [I|app|6ea75b35] Assigned organization: MyOrg
2020-09-24T12:31:56 [I|aud|6ea75b35] Host::Base (22) update event on model_id , 2
2020-09-24T12:31:56 [I|aud|6ea75b35] Host::Base (22) update event on owner_id , 1
2020-09-24T12:31:56 [I|aud|6ea75b35] Host::Base (22) update event on owner_type , User
2020-09-24T12:31:56 [I|aud|6ea75b35] Host::Base (22) update event on organization_id , 3
2020-09-24T12:31:56 [I|aud|6ea75b35] Host::Base (22) update event on location_id , 4
2020-09-24T12:31:56 [I|aud|6ea75b35] Nic::Managed (61) update event on subnet_id , 3
2020-09-24T12:31:56 [D|not|6ea75b35] Notification event: UINotifications::NewHost - checking for notifications
2020-09-24T12:31:56 [D|not|6ea75b35] Clearing Cache: notification, clearing cache for notification-4
2020-09-24T12:31:56 [D|app|6ea75b35] Body: {"id":22,"name":"mac40f2e9d65067","last_compile":null,"last_report":"2020-09-24T16:31:55.938Z","updated_at":"2020-09-24T16:31:56.686Z","created_at":"2020-09-24T16:31:55.899Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":2,"hostgroup_id":null,"owner_id":1,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":null,"uuid":null,"compute_resource_id":null,"puppet_proxy_id":null,"certname":null,"image_id":null,"organization_id":3,"location_id":4,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":null,"grub_pass":"","global_status":0,"lookup_value_matcher":null,"pxe_loader":null,"initiated_at":null,"build_errors":null,"discovery_rule_id":null}
2020-09-24T12:31:56 [I|app|6ea75b35] Completed 201 Created in 875ms (Views: 1.1ms | ActiveRecord: 254.9ms | Allocations: 300565)
- I then selected
Resend
and executed the foreman-rake
console command again. See the JSON output below:
{
"lib": "/usr/share/fdi/facts:/opt/extension/facts",
"virtual": "physical",
"is_virtual": "false",
"id": "root",
"netmask": "255.255.255.0",
"selinux": "false",
"interfaces": "enp11s0,enp6s0,lo",
"macaddress_enp11s0": "40:f2:e9:d6:50:68",
"mtu_enp11s0": "1500",
"ipaddress_enp6s0": "10.59.24.175",
"macaddress_enp6s0": "40:f2:e9:d6:50:67",
"netmask_enp6s0": "255.255.255.0",
"mtu_enp6s0": "1500",
"boardmanufacturer": "IBM",
"boardproductname": "81Y7071",
"boardserialnumber": "4B908Y",
"bios_vendor": "IBM Corp.",
"bios_version": "-[JQE168BUS-1.09]-",
"bios_release_date": "09/17/2014",
"manufacturer": "IBM",
"productname": "IBM System x3100 M4 -[2582AC1]-",
"serialnumber": "E2N7985",
"uuid": "1a0c4069-68f2-35e8-af29-b5a8e33f746a",
"type": "Tower",
"physicalprocessorcount": "1",
"architecture": "x86_64",
"hardwaremodel": "x86_64",
"os::name": "CentOS",
"os::family": "RedHat",
"os::release::major": "7",
"os::release::minor": "7",
"os::release::full": "7.7.1908",
"macaddress": "40:f2:e9:d6:50:68",
"ipaddress": "10.59.24.175",
"hostname": "fdi",
"uniqueid": "3b0aaf18",
"gid": "root",
"processors::models": "[\"Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz\", \"Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz\", \"Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz\", \"Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz\"]",
"processors::count": "4",
"processors::physicalcount": "1",
"processor0": "Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz",
"processor1": "Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz",
"processor2": "Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz",
"processor3": "Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz",
"processorcount": "4",
"memorysize": "7.75 GB",
"memorysize_mb": "7938.83",
"dhcp_servers::system": "10.254.52.34",
"dhcp_servers::enp6s0": "10.254.52.34",
"fqdn": "fdi.example.com",
"hardwareisa": "x86_64",
"ps": "ps -ef",
"partitions::sda1::uuid": "daafe133-7c32-48fe-92b5-40f06bac711d",
"partitions::sda1::size": "2097152",
"partitions::sda1::filesystem": "ext4",
"partitions::sda2::size": "581883904",
"partitions::sda2::filesystem": "LVM2_member",
"blockdevice_sda_size": "298999349248",
"blockdevice_sda_vendor": "IBM",
"blockdevice_sda_model": "ServeRAID M1015",
"blockdevice_sr0_size": "1073741312",
"blockdevice_sr0_vendor": "IBM SATA",
"blockdevice_sr0_model": "DEVICE 81Y3675",
"blockdevices": "sda,sr0",
"network_enp6s0": "10.59.24.0",
"domain": "example.com",
"facterversion": "2.4.1",
"discovery_version": "3.5.7",
"discovery_release": "20191021.1",
"discovery_bootif": "40:f2:e9:d6:50:67",
"discovery_bootip": "10.59.24.175",
"duplex_enp11s0": "unknown! (255)",
"port_enp11s0": "Twisted Pair",
"auto_negotiation_enp11s0": "true",
"wol_enp11s0": "true",
"link_enp11s0": "false",
"speed_enp6s0": "1000",
"duplex_enp6s0": "full",
"port_enp6s0": "Twisted Pair",
"auto_negotiation_enp6s0": "true",
"wol_enp6s0": "true",
"link_enp6s0": "true",
"ipmi_enabled": "true",
"ipmi_ipaddress_source": "Other",
"ipmi_ipaddress": "10.59.24.215",
"ipmi_subnet_mask": "255.255.255.0",
"ipmi_macaddress": "40:f2:e9:d6:50:6b",
"ipmi_gateway": "10.59.24.1",
"ipmi_1_ipaddress_source": "Other",
"ipmi_1_ipaddress": "10.59.24.215",
"ipmi_1_subnet_mask": "255.255.255.0",
"ipmi_1_macaddress": "40:f2:e9:d6:50:6b",
"ipmi_1_gateway": "10.59.24.1",
"nmprimary_connection_id": "primary",
"nmprimary_connection_uuid": "53e71b0e-fe83-11ea-bcc8-40f2e9d65067",
"nmprimary_connection_type": "802-3-ethernet",
"nmprimary_connection_autoconnect": "yes",
"nmprimary_connection_autoconnect-priority": "1",
"nmprimary_connection_autoconnect-retries": "-1",
"nmprimary_connection_multi-connect": "0",
"nmprimary_connection_auth-retries": "-1",
"nmprimary_connection_read-only": "no",
"nmprimary_connection_autoconnect-slaves": "-1",
"nmprimary_connection_metered": "unknown",
"nmprimary_connection_lldp": "default",
"nmprimary_connection_mdns": "-1",
"nmprimary_connection_llmnr": "-1",
"nmprimary_802-3-ethernet_speed": "0",
"nmprimary_802-3-ethernet_auto-negotiate": "no",
"nmprimary_802-3-ethernet_mac-address": "40:F2:E9:D6:50:67",
"nmprimary_802-3-ethernet_mtu": "auto",
"nmprimary_802-3-ethernet_wake-on-lan": "default",
"nmprimary_ipv4_method": "auto",
"nmprimary_ipv4_dns-priority": "0",
"nmprimary_ipv4_route-metric": "-1",
"nmprimary_ipv4_route-table": "0",
"nmprimary_ipv4_ignore-auto-routes": "no",
"nmprimary_ipv4_ignore-auto-dns": "no",
"nmprimary_ipv4_dhcp-send-hostname": "no",
"nmprimary_ipv4_never-default": "no",
"nmprimary_ipv4_may-fail": "yes",
"nmprimary_ipv6_method": "ignore",
"nmprimary_ipv6_dns-priority": "0",
"nmprimary_ipv6_route-metric": "-1",
"nmprimary_ipv6_route-table": "0",
"nmprimary_ipv6_ignore-auto-routes": "no",
"nmprimary_ipv6_ignore-auto-dns": "no",
"nmprimary_ipv6_never-default": "no",
"nmprimary_ipv6_may-fail": "yes",
"nmprimary_ipv6_ip6-privacy": "-1",
"nmprimary_ipv6_addr-gen-mode": "eui64",
"nmprimary_ipv6_dhcp-send-hostname": "yes",
"nmprimary_vlan_id": "0",
"nmprimary_vlan_flags": "1",
"nmprimary_proxy_method": "none",
"nmprimary_proxy_browser-only": "no",
"nmprimary_general_name": "primary",
"nmprimary_general_uuid": "53e71b0e-fe83-11ea-bcc8-40f2e9d65067",
"nmprimary_general_devices": "enp6s0",
"nmprimary_general_state": "activated",
"nmprimary_general_default": "yes",
"nmprimary_general_default6": "no",
"nmprimary_general_vpn": "no",
"nmprimary_ip4_address": "10.59.24.175/24",
"nmprimary_ip4_gateway": "10.59.24.1",
"nmprimary_ip4_route": "dst = 0.0.0.0/0, nh = 10.59.24.1, mt = 100",
"nmprimary_ip4_dns": "10.92.128.40",
"nmprimary_ip4_domain": "example.com",
"nmprimary_dhcp4_option_broadcast_address": "10.59.24.255",
"nmprimary_dhcp4_option_dhcp_message_type": "5",
"nmprimary_dhcp4_option_dhcp_server_identifier": "10.254.52.34",
"nmprimary_dhcp4_option_domain_name": "example.com",
"nmprimary_dhcp4_option_domain_name_servers": "10.92.128.40 10.92.128.41 10.20.17.25 10.20.17.26 10.95.65.34 10.95.131.30",
"nmprimary_dhcp4_option_expiry": "1600965364",
"nmprimary_dhcp4_option_filename": "/pxelinux.0",
"nmprimary_dhcp4_option_ip_address": "10.59.24.175",
"nmprimary_dhcp4_option_network_number": "10.59.24.0",
"nmprimary_dhcp4_option_next_server": "10.11.184.93",
"nmprimary_dhcp4_option_ntp_servers": "10.92.128.40",
"nmprimary_dhcp4_option_requested_broadcast_address": "1",
"nmprimary_dhcp4_option_requested_classless_static_routes": "1",
"nmprimary_dhcp4_option_requested_domain_name": "1",
"nmprimary_dhcp4_option_requested_domain_name_servers": "1",
"nmprimary_dhcp4_option_requested_domain_search": "1",
"nmprimary_dhcp4_option_requested_host_name": "1",
"nmprimary_dhcp4_option_requested_interface_mtu": "1",
"nmprimary_dhcp4_option_requested_ms_classless_static_routes": "1",
"nmprimary_dhcp4_option_requested_nis_domain": "1",
"nmprimary_dhcp4_option_requested_nis_servers": "1",
"nmprimary_dhcp4_option_requested_ntp_servers": "1",
"nmprimary_dhcp4_option_requested_rfc3442_classless_static_routes": "1",
"nmprimary_dhcp4_option_requested_routers": "1",
"nmprimary_dhcp4_option_requested_static_routes": "1",
"nmprimary_dhcp4_option_requested_subnet_mask": "1",
"nmprimary_dhcp4_option_requested_wpad": "1",
"nmprimary_dhcp4_option_routers": "10.59.24.1",
"nmprimary_dhcp4_option_subnet_mask": "255.255.255.0",
"nmprimary_dhcp4_option_wpad": "a:0",
"nmprimary_ip6_address": "fe80::42f2:e9ff:fed6:5067/64",
"nmprimary_ip6_route": "dst = ff00::/8, nh = ::, mt = 256, table=255",
"nmprimary_ptr": "ods00712w10.example.com",
"discovery_proxy_uri": "https://hqret-foreman.example.com",
"discovery_proxy_type": "foreman",
"os": null,
"os::release": null,
"processors": null,
"dhcp_servers": null,
"partitions::sda1": null,
"partitions": null,
"partitions::sda2": null,
"nmprimary_ipv4_dns-options": " ",
"nmprimary_ipv6_dns-options": " "
}
- I also gathered the production log of this even as well, see below:
2020-09-24T12:32:21 [I|app|e5c3c44f] Started POST "/api/v2/discovered_hosts/facts" for 127.0.0.1 at 2020-09-24 12:32:21 -0400
2020-09-24T12:32:21 [I|app|e5c3c44f] Processing by Api::V2::DiscoveredHostsController#facts as JSON
2020-09-24T12:32:21 [I|app|e5c3c44f] Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
2020-09-24T12:32:21 [I|app|e5c3c44f] Import facts for 'mac40f2e9d65067' completed. Added: 0, Updated: 2, Deleted 0 facts
2020-09-24T12:32:21 [D|tax|e5c3c44f] Current location set to MyLoc
2020-09-24T12:32:21 [D|tax|e5c3c44f] Current organization set to MyOrg
2020-09-24T12:32:21 [D|app|e5c3c44f] skipping interface with identifier 'lo' since it was matched by 'ignored_interface_identifiers' setting
2020-09-24T12:32:21 [D|app|e5c3c44f] We have following interfaces 'enp11s0, enp6s0' based on facts
2020-09-24T12:32:21 [D|app|e5c3c44f] Interface enp11s0 facts: {"macaddress"=>"40:f2:e9:d6:50:68", "mtu"=>1500, "duplex"=>"unknown! (255)", "port"=>"Twisted Pair", "auto_negotiation"=>"true", "wol"=>true, "link"=>"false"}
2020-09-24T12:32:21 [D|app|e5c3c44f] Interface enp6s0 facts: {"ipaddress"=>"10.59.24.175", "macaddress"=>"40:f2:e9:d6:50:67", "netmask"=>"255.255.255.0", "mtu"=>1500, "network"=>"10.59.24.0", "speed"=>"1000", "duplex"=>"full", "port"=>"Twisted Pair", "auto_negotiation"=>"true", "wol"=>true, "link"=>"true"}
2020-09-24T12:32:21 [D|app|e5c3c44f] Discovery fact parser detected primary interface: ["enp6s0", {"ipaddress"=>"10.59.24.175", "macaddress"=>"40:f2:e9:d6:50:67", "netmask"=>"255.255.255.0", "mtu"=>1500, "network"=>"10.59.24.0", "speed"=>"1000", "duplex"=>"full", "port"=>"Twisted Pair", "auto_negotiation"=>"true", "wol"=>true, "link"=>"true", "keep_subnet"=>true, "virtual"=>false}]
2020-09-24T12:32:21 [I|app|e5c3c44f] Detected IPv4 subnet: 00712_OpsNet with taxonomy ["MyOrg"]/["MyLoc"]
2020-09-24T12:32:21 [I|app|e5c3c44f] Assigned location: MyLoc
2020-09-24T12:32:21 [I|app|e5c3c44f] Assigned organization: MyOrg
2020-09-24T12:32:21 [D|not|e5c3c44f] Notification event: UINotifications::NewHost - checking for notifications
2020-09-24T12:32:21 [D|app|e5c3c44f] Body: {"last_report":"2020-09-24T16:32:21.448Z","build":false,"id":22,"name":"mac40f2e9d65067","last_compile":null,"updated_at":"2020-09-24T16:32:21.663Z","created_at":"2020-09-24T16:31:55.899Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":null,"comment":null,"disk":null,"installed_at":null,"model_id":2,"hostgroup_id":null,"owner_id":1,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":null,"uuid":null,"compute_resource_id":null,"puppet_proxy_id":null,"certname":null,"image_id":null,"organization_id":3,"location_id":4,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":null,"grub_pass":"","global_status":0,"lookup_value_matcher":null,"pxe_loader":null,"initiated_at":null,"build_errors":null,"discovery_rule_id":null}
2020-09-24T12:32:21 [I|app|e5c3c44f] Completed 201 Created in 276ms (Views: 1.0ms | ActiveRecord: 64.6ms | Allocations: 103859)
- I did a diff of the first and second attempt JSON and the differences are not much to be honest. It is just an extra space found in a couple of the options:
1st attempt / 2nd attempt:
“nmprimary_ipv4_dns-options”: “”, / “nmprimary_ipv4_dns-options”: " ",
“nmprimary_ipv6_dns-options”: “”, / “nmprimary_ipv4_dns-options”: " ",
After doing the above, I changed the Discovery Rule query to ip=10.59.24.175
from facts.ipaddress=10.59.24.175
. I then turned on the auto-provision setting and tried again. However, I seem to have the same problem.
In both scenarios, it seems I either can hit Resend
almost immediately and it will continue on provisioning, or I can wait and it will kick off eventually.
I hope I’ve collected the correct data you were looking for. Please let me know if anything else I can gather for you.
Thanks again for you efforts.