Issue with autoprovisioning

Problem:
Autoprovisioning fails with after host is discovered using the foreman discovery plugin.
The reported error is Auto provisioning failed: Name hostname can contain only lowercase letters, numbers, dashes and dots but the hostname is twr00259005cc66.

Expected outcome:
Host should be autoprovisioned

Foreman and Proxy versions:
FOREMAN: 1.22.0
RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
PUPPET: 6.4.2
FOREMAN DISCOVERY: 15.0

Foreman and Proxy plugin versions:

Other relevant data:
I see this log every minute indicating the host auto-provisioning is failing:

2019-06-11T08:55:37 [I|app|5d32f29d] Started POST "/api/v2/discovered_hosts/facts" for 10.25.208.5 at 2019-06-11 08:55:37 -0400
2019-06-11T08:55:37 [I|app|5d32f29d] Processing by Api::V2::DiscoveredHostsController#facts as JSON
2019-06-11T08:55:37 [I|app|5d32f29d]   Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
2019-06-11T08:55:37 [W|app|5d32f29d] One or more existing managed hosts found: mac00259005cc66.lab2-skae.tower-research.com/00:25:90:05:cc:66
2019-06-11T08:55:37 [I|app|5d32f29d] Import facts for 'twr00259005cc66' completed. Added: 0, Updated: 0, Deleted 0 facts
2019-06-11T08:55:37 [I|app|5d32f29d] Detected subnet: Foreman Test Subnet with taxonomy ["Default Organization"]/["Default Location"]
2019-06-11T08:55:37 [I|app|5d32f29d] Assigned location: Default Location
2019-06-11T08:55:37 [I|app|5d32f29d] Assigned organization: Default Organization
2019-06-11T08:55:37 [I|app|5d32f29d] Match found for host twr00259005cc66 (11) rule twr (1)
2019-06-11T08:55:37 [W|app|5d32f29d] Could not find a provider for twr00259005cc66. Providers returned {"MediumProviders::Default"=>["Operating system was not set for host 'twr00259005cc66'", " medium was not set for host 'twr00259005cc66'", "Invalid medium '' for ''", "Invalid architecture '' for ''"]}
2019-06-11T08:55:37 [W|app|5d32f29d] Not queueing Nic::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
2019-06-11T08:55:37 [W|app|5d32f29d] Not queueing Nic::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
2019-06-11T08:55:37 [W|app|5d32f29d] Not queueing Nic::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
2019-06-11T08:55:37 [W|app|5d32f29d] Not queueing Host::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
2019-06-11T08:55:37 [W|app|5d32f29d] Not queueing Host::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
2019-06-11T08:55:37 [W|app|5d32f29d] Not queueing Host::Managed: ["Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123", "Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123"]
2019-06-11T08:55:38 [W|app|5d32f29d] Not queueing Discovery reboot: Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123 and Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123
2019-06-11T08:55:38 [E|app|5d32f29d] Auto provisioning failed: Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123 and Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123
2019-06-11T08:55:38 [W|app|5d32f29d] Host discovery failed, facts: {"lib"=>"/usr/share/fdi/facts:/opt/extension/facts", "interfaces"=>"enp1s0f0,enp1s0f1,enp4s0,enp4s0d1,lo", "ipaddress_enp1s0f0"=>"10.25.208.5", "macaddress_enp1s0f0"=>"00:25:90:05:cc:66", "netmask_enp1s0f0"=>"255.255.255.0", "mtu_enp1s0f0"=>1500, "macaddress_enp1s0f1"=>"00:25:90:05:cc:67", "mtu_enp1s0f1"=>1500, "macaddress_enp4s0"=>"24:8a:07:62:25:90", "mtu_enp4s0"=>1500, "macaddress_enp4s0d1"=>"24:8a:07:62:25:91", "mtu_enp4s0d1"=>1500, "ipaddress_lo"=>"127.0.0.1", "netmask_lo"=>"255.0.0.0", "mtu_lo"=>65536, "ps"=>"ps -ef", "netmask"=>"255.255.255.0", "id"=>"root", "facterversion"=>"2.4.1", "sshrsakey"=>"AAAAB3NzaC1yc2EAAAADAQABAAABAQDQrwhhPSWatnHQkruM5C9F7QUegvWv2YaxhLnx0cvoWnC8IL5ZQPTpqIoz3b3LnDdyYq1wiqzOeFPVQfARQvPoHFpmAOiYpSVaSdlT+T/XIdUWfMIm/hRjGXh+9d4FGDn4muQgh1U/qKkI7rgx+gT/xqOLAs5QkfRIp5ndONEEntPSwmjsKJgeijEcLLb9S619ljfDEXWd9a0nBhYfospaJqposX+Nc+Je0X2dyLUgRZj5NL1YXSwpipd7njQ+4a6Apyi7hQB7qgFxZE7P7N1Uv5u/PpjGX8OMnWwUb6Xr2q2Ic4U6j3Q1RHCvKDSzyNk7cQMsBj6G7FzU7VGCuo8X", "sshfp_rsa"=>"SSHFP 1 1 44e2611c83383da0672c38b164d1b0b291bdb03f\nSSHFP 1 2 c3e56f56c2fb74523db168417439b7cab0e8ef0806233c9e7edc097c61391d17", "sshecdsakey"=>"AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPj10vSlEEy4vc4NMDPflVB9msDgJQGRaudflh4FYeym0Xl+8E06KLK7n1NTjag0TsO60AQ3t6GztCIrOh45LTM=", "sshfp_ecdsa"=>"SSHFP 3 1 528258d7670463be01bf5a90b120a3617063f5e9\nSSHFP 3 2 2c4eb1748d8fc48e637d3c8623883149d2f143165e5b3d533532ccfbf2af62d4", "sshed25519key"=>"AAAAC3NzaC1lZDI1NTE5AAAAIFNclVYddEDuOKvSqVGxv1xfV1zGWp13KChg8xDXpqWU", "sshfp_ed25519"=>"SSHFP 4 1 59fb53be5304513e0c92d7227f00ecde2ee26880\nSSHFP 4 2 83aba8d708cf5500735b6a63285812c40d057c2094ce633b07dc35c920a79805", "physicalprocessorcount"=>2, "selinux"=>false, "domain"=>"lab2-skae.tower-research.com", "partitions"=>{"sda1"=>{"size"=>"1048576", "label"=>"0", "filesystem"=>"linux_raid_member"}, "sda2"=>{"size"=>"1048576", "filesystem"=>"msdos"}, "sda3"=>{"size"=>"1951424512", "label"=>"1", "filesystem"=>"linux_raid_member"}, "sdb1"=>{"size"=>"1048576", "label"=>"0", "filesystem"=>"linux_raid_member"}, "sdb2"=>{"size"=>"1048576", "filesystem"=>"msdos"}, "sdb3"=>{"size"=>"1951424512", "label"=>"1", "filesystem"=>"linux_raid_member"}}, "os"=>{"name"=>"CentOS", "family"=>"RedHat", "release"=>{"major"=>"7", "minor"=>"5", "full"=>"7.5.1804"}}, "virtual"=>"physical", "is_virtual"=>false, "processors"=>{"models"=>["Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz"], "count"=>12, "physicalcount"=>2}, "architecture"=>"x86_64", "hardwaremodel"=>"x86_64", "processor0"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor1"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor2"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor3"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor4"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor5"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor6"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor7"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor8"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor9"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor10"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processor11"=>"Intel(R) Xeon(R) CPU           X5680  @ 3.33GHz", "processorcount"=>12, "dhcp_servers"=>{"system"=>"10.25.208.4", "enp1s0f0"=>"10.25.208.4"}, "hardwareisa"=>"x86_64", "network_enp1s0f0"=>"10.25.208.0", "network_lo"=>"127.0.0.0", "macaddress"=>"00:25:90:05:cc:66", "ipaddress"=>"10.25.208.5", "uniqueid"=>"190a05d0", "fqdn"=>"fdi.lab2-skae.tower-research.com", "boardmanufacturer"=>"Supermicro", "boardproductname"=>"X8DTU", "boardserialnumber"=>"1234567890", "bios_vendor"=>"American Megatrends Inc.", "bios_version"=>"2.0c", "bios_release_date"=>"01/05/11", "manufacturer"=>"Supermicro", "productname"=>"X8DTU", "serialnumber"=>"1234567890", "uuid"=>"49434D53-0200-9005-2500-0590250066CC", "type"=>"Main Server Chassis", "blockdevice_sda_size"=>1000204886016, "blockdevice_sda_vendor"=>"ATA", "blockdevice_sda_model"=>"WDC WD1002FBYS-0", "blockdevice_sdb_size"=>1000204886016, "blockdevice_sdb_vendor"=>"ATA", "blockdevice_sdb_model"=>"WDC WD1002FBYS-0", "blockdevice_sdc_size"=>4000787030016, "blockdevice_sdc_vendor"=>"ATA", "blockdevice_sdc_model"=>"WDC WD4000FYYZ-0", "blockdevice_sr0_size"=>1073741312, "blockdevice_sr0_vendor"=>"TEAC", "blockdevice_sr0_model"=>"DV-28S-V", "blockdevices"=>"sda,sdb,sdc,sr0", "memorysize"=>"70.78 GB", "memorysize_mb"=>"72483.58", "gid"=>"root", "hostname"=>"fdi", "lldp_neighbor_chassisid_enp1s0f0"=>"00:1c:73:f9:d4:d7", "lldp_neighbor_portid_enp1s0f0"=>"Ethernet7", "lldp_neighbor_mngaddr_ipv4_enp1s0f0"=>"10.31.191.20", "lldp_neighbor_pvid_enp1s0f0"=>653, "lldp_neighbor_mtu_enp1s0f0"=>"9236", "lldp_neighbor_chassisid_enp4s0"=>"44:4c:a8:73:35:25", "lldp_neighbor_portid_enp4s0"=>"Ethernet10", "lldp_neighbor_mngaddr_ipv4_enp4s0"=>"10.31.182.3", "lldp_neighbor_pvid_enp4s0"=>648, "lldp_neighbor_mtu_enp4s0"=>"9236", "lldp_neighbor_chassisid_enp4s0d1"=>"44:4c:a8:cd:f1:fb", "lldp_neighbor_portid_enp4s0d1"=>"Ethernet7", "lldp_neighbor_mngaddr_ipv4_enp4s0d1"=>"10.31.182.2", "lldp_neighbor_pvid_enp4s0d1"=>1107, "lldp_neighbor_mtu_enp4s0d1"=>"9236", "discovery_version"=>"3.5.1", "discovery_release"=>"20180822.1", "discovery_bootif"=>"00:25:90:05:cc:66", "discovery_bootip"=>"10.25.208.5", "speed_enp1s0f0"=>"1000", "duplex_enp1s0f0"=>"full", "port_enp1s0f0"=>"Twisted Pair", "auto_negotiation_enp1s0f0"=>"true", "wol_enp1s0f0"=>true, "link_enp1s0f0"=>"true", "duplex_enp1s0f1"=>"unknown! (255)", "port_enp1s0f1"=>"Twisted Pair", "auto_negotiation_enp1s0f1"=>"true", "wol_enp1s0f1"=>true, "link_enp1s0f1"=>"false", "speed_enp4s0"=>"10000", "duplex_enp4s0"=>"full", "port_enp4s0"=>"Direct Attach Copper", "auto_negotiation_enp4s0"=>"false", "wol_enp4s0"=>false, "link_enp4s0"=>"true", "speed_enp4s0d1"=>"10000", "duplex_enp4s0d1"=>"full", "port_enp4s0d1"=>"Direct Attach Copper", "auto_negotiation_enp4s0d1"=>"false", "wol_enp4s0d1"=>false, "link_enp4s0d1"=>"true", "link_lo"=>"true", "ipmi_enabled"=>true, "nmprimary_connection_id"=>"primary", "nmprimary_connection_uuid"=>"ddb4bc7e-8b98-11e9-bb55-00259005cc66", "nmprimary_connection_stable-id"=>"", "nmprimary_connection_type"=>"802-3-ethernet", "nmprimary_connection_interface-name"=>"", "nmprimary_connection_autoconnect"=>"yes", "nmprimary_connection_autoconnect-priority"=>"1", "nmprimary_connection_autoconnect-retries"=>"-1", "nmprimary_connection_auth-retries"=>"-1", "nmprimary_connection_read-only"=>"no", "nmprimary_connection_permissions"=>"", "nmprimary_connection_zone"=>"", "nmprimary_connection_master"=>"", "nmprimary_connection_slave-type"=>"", "nmprimary_connection_autoconnect-slaves"=>"-1", "nmprimary_connection_secondaries"=>"", "nmprimary_connection_metered"=>"unknown", "nmprimary_connection_lldp"=>"default", "nmprimary_802-3-ethernet_port"=>"", "nmprimary_802-3-ethernet_speed"=>"0", "nmprimary_802-3-ethernet_duplex"=>"", "nmprimary_802-3-ethernet_auto-negotiate"=>"no", "nmprimary_802-3-ethernet_mac-address"=>"00:25:90:05:CC:66", "nmprimary_802-3-ethernet_cloned-mac-address"=>"", "nmprimary_802-3-ethernet_generate-mac-address-mask"=>"", "nmprimary_802-3-ethernet_mac-address-blacklist"=>"", "nmprimary_802-3-ethernet_mtu"=>"auto", "nmprimary_802-3-ethernet_s390-subchannels"=>"", "nmprimary_802-3-ethernet_s390-nettype"=>"", "nmprimary_802-3-ethernet_s390-options"=>"", "nmprimary_802-3-ethernet_wake-on-lan"=>"default", "nmprimary_802-3-ethernet_wake-on-lan-password"=>"", "nmprimary_ipv4_method"=>"auto", "nmprimary_ipv4_dns"=>"", "nmprimary_ipv4_dns-search"=>"", "nmprimary_ipv4_dns-options"=>" ", "nmprimary_ipv4_dns-priority"=>"0", "nmprimary_ipv4_addresses"=>"", "nmprimary_ipv4_gateway"=>"", "nmprimary_ipv4_routes"=>"", "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-client-id"=>"", "nmprimary_ipv4_dhcp-send-hostname"=>"no", "nmprimary_ipv4_dhcp-hostname"=>"", "nmprimary_ipv4_dhcp-fqdn"=>"", "nmprimary_ipv4_never-default"=>"no", "nmprimary_ipv4_may-fail"=>"yes", "nmprimary_ipv6_method"=>"ignore", "nmprimary_ipv6_dns"=>"", "nmprimary_ipv6_dns-search"=>"", "nmprimary_ipv6_dns-options"=>" ", "nmprimary_ipv6_dns-priority"=>"0", "nmprimary_ipv6_addresses"=>"", "nmprimary_ipv6_gateway"=>"", "nmprimary_ipv6_routes"=>"", "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_ipv6_dhcp-hostname"=>"", "nmprimary_ipv6_token"=>"", "nmprimary_vlan_parent"=>"", "nmprimary_vlan_id"=>"0", "nmprimary_vlan_flags"=>"1", "nmprimary_vlan_ingress-priority-map"=>"", "nmprimary_vlan_egress-priority-map"=>"", "nmprimary_proxy_method"=>"none", "nmprimary_proxy_browser-only"=>"no", "nmprimary_proxy_pac-url"=>"", "nmprimary_proxy_pac-script"=>"", "nmprimary_general_name"=>"primary", "nmprimary_general_uuid"=>"ddb4bc7e-8b98-11e9-bb55-00259005cc66", "nmprimary_general_devices"=>"enp1s0f0", "nmprimary_general_state"=>"activated", "nmprimary_general_default"=>"yes", "nmprimary_general_default6"=>"no", "nmprimary_general_spec-object"=>"", "nmprimary_general_vpn"=>"no", "nmprimary_general_zone"=>"", "nmprimary_ip4_address"=>"10.25.208.5/24", "nmprimary_ip4_gateway"=>"10.25.208.1", "nmprimary_ip4_route"=>"dst = 0.0.0.0/0, nh = 10.25.208.1, mt = 100", "nmprimary_ip4_dns"=>"10.40.20.101", "nmprimary_ip4_domain"=>"lab2-skae.tower-research.com", "nmprimary_dhcp4_option_requested_host_name"=>"1", "nmprimary_dhcp4_option_requested_domain_search"=>"1", "nmprimary_dhcp4_option_requested_wpad"=>"1", "nmprimary_dhcp4_option_requested_classless_static_routes"=>"1", "nmprimary_dhcp4_option_requested_broadcast_address"=>"1", "nmprimary_dhcp4_option_requested_domain_name"=>"1", "nmprimary_dhcp4_option_requested_rfc3442_classless_static_routes"=>"1", "nmprimary_dhcp4_option_requested_ms_classless_static_routes"=>"1", "nmprimary_dhcp4_option_expiry"=>"1560225638", "nmprimary_dhcp4_option_domain_name"=>"lab2-skae.tower-research.com", "nmprimary_dhcp4_option_next_server"=>"10.25.208.4", "nmprimary_dhcp4_option_broadcast_address"=>"10.25.208.255", "nmprimary_dhcp4_option_requested_interface_mtu"=>"1", "nmprimary_dhcp4_option_requested_subnet_mask"=>"1", "nmprimary_dhcp4_option_routers"=>"10.25.208.1", "nmprimary_dhcp4_option_ip_address"=>"10.25.208.5", "nmprimary_dhcp4_option_requested_domain_name_servers"=>"1", "nmprimary_dhcp4_option_subnet_mask"=>"255.255.255.0", "nmprimary_dhcp4_option_requested_static_routes"=>"1", "nmprimary_dhcp4_option_requested_nis_servers"=>"1", "nmprimary_dhcp4_option_domain_name_servers"=>"10.40.20.101", "nmprimary_dhcp4_option_requested_ntp_servers"=>"1", "nmprimary_dhcp4_option_requested_routers"=>"1", "nmprimary_dhcp4_option_filename"=>"pxelinux.0", "nmprimary_dhcp4_option_requested_nis_domain"=>"1", "nmprimary_dhcp4_option_network_number"=>"10.25.208.0", "nmprimary_dhcp4_option_dhcp_server_identifier"=>"10.25.208.4", "nmprimary_dhcp4_option_dhcp_message_type"=>"5", "nmprimary_ip6_address"=>"fe80::225:90ff:fe05:cc66/64", "nmprimary_ip6_gateway"=>"", "nmprimary_ip6_route"=>"dst = ff00::/8, nh = ::, mt = 256, table=255", "discovery_proxy_uri"=>"https://foremanmaster.lab2-skae.tower-research.com", "discovery_proxy_type"=>"foreman", "_type"=>:foreman_discovery}
RuntimeError: resource have no errors
/usr/share/foreman/app/controllers/api/base_controller.rb:133:in `process_resource_error'
/usr/share/foreman/app/controllers/api/base_controller.rb:153:in `process_response'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-15.0.0/app/controllers/api/v2/discovered_hosts_controller.rb:110:in `facts'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
/usr/share/foreman/app/controllers/api/v2/base_controller.rb:163:in `disable_json_root'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.7.1/lib/audited/sweeper.rb:14:in `around'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.7.1/lib/audited/sweeper.rb:14:in `around'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/mapper.rb:18:in `block in <class:Constraints>'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/mapper.rb:48:in `serve'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'
/usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb:15:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/conditional_get.rb:38:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
/usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
/usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:68:in `block in call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/rack-2.0.6/lib/rack/urlmap.rb:53:in `call'
/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
/usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2019-06-11T08:55:38 [I|app|5d32f29d] Completed 422 Unprocessable Entity in 669ms (Views: 0.2ms | ActiveRecord: 145.8ms)

Discovery Rule: