Foreman 1.24.1 - Hammer Host Create Failing: nil is not numeric

I am unable to create hosts on the command line using hammer. This worked in 1.23

rpm -qa|grep foreman

tfm-rubygem-foreman_ansible_core-3.0.1-1.fm1_24.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.19.5-1.el7.noarch
foreman-release-scl-7-2.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.3-1.fm1_24.el7.noarch
tfm-rubygem-foreman_ansible-4.0.3-1.fm1_24.el7.noarch
foreman-cli-1.24.1-1.el7.noarch
tfm-rubygem-foreman_remote_execution-2.0.6-1.fm1_24.el7.noarch
foreman-1.24.1-1.el7.noarch
foreman-installer-1.24.1-1.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.3.0-1.el7.noarch
tfm-rubygem-foreman_discovery-16.0.1-1.fm1_24.el7.noarch
foreman-debug-1.24.1-1.el7.noarch
foreman-selinux-1.24.1-1.el7.noarch
foreman-proxy-1.24.1-1.el7.noarch
rubygem-foreman_maintain-0.5.0-1.el7.noarch
tfm-rubygem-foreman-tasks-0.17.5-1.fm1_24.el7.noarch
foreman-postgresql-1.24.1-1.el7.noarch

I have a debug output I can share.

-jay

Please do share the debug output. It will help identify the issue.

I’m trying to figure out how to upload a file. But it says I can’t becuase I’m a new user.

-jay

you can paste it into the post and use the “preformatted text” button in the toolbar (the one that looks like </>)

indent preformatted text by 4 spaces[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mInitESC[0m] Initialization of Hammer CLI (0.19.1) has started...
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mInitESC[0m] Running at ruby 2.5.5-p157
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mInitESC[0m] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mInitESC[0m] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mInitESC[0m] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mSSLoptionsESC[0m] SSL options: {
:ssl_ca_file => "/etc/puppetlabs/puppet/ssl/certs/ca.pem",
 :verify_ssl => true
}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mAPIESC[0m] Global headers: {
    :content_type => "application/json",
          :accept => "application/json;version=2",
"Accept-Language" => "en"
}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mAPIESC[0m] Follow redirects: never
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mConnectionESC[0m] Registered: foreman
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::OptionSourcesESC[0m] Added predefined options for HammerCLIForeman::Command: 
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::OptionSources for *all* except *nothing* on HammerCLIForeman::Command.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::FieldsESC[0m] Added predefined options for HammerCLIForeman::ListCommand: [:fields]
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::Fields for *all* except *nothing* on HammerCLIForeman::ListCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::FieldsESC[0m] Added predefined options for HammerCLIForeman::InfoCommand: [:fields]
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::Fields for *all* except *nothing* on HammerCLIForeman::InfoCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added predefined options for HammerCLIForeman::AssociatingCommands::PuppetEnvironment::AddPuppetEnvironmentCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::AssociatingCommands::PuppetEnvironment::AddPuppetEnvironmentCommand: {:switches=>"--environment", :type=>"ENVIRONMENT_NAME", :description=>"Environment name", :opts=>{:attribute_name=>:option_environment_name, :deprecated=>{"--environment"=>"Use --puppet-environment instead"}}, :block=>nil}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::AssociatingCommands::PuppetEnvironment::AddPuppetEnvironmentCommand: {:switches=>"--environment-id", :type=>"ENVIRONMENT_ID", :description=>"", :opts=>{:format=>#<HammerCLI::Options::Normalizers::Number:0x0000000001e14078>, :attribute_name=>:option_environment_id, :deprecated=>{"--environment-id"=>"Use --puppet-environment-id instead"}}, :block=>nil}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::AssociatingCommands::PuppetEnvironment::AddPuppetEnvironmentCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added predefined options for HammerCLIForeman::AssociatingCommands::PuppetEnvironment::RemovePuppetEnvironmentCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::AssociatingCommands::PuppetEnvironment::RemovePuppetEnvironmentCommand: {:switches=>"--environment", :type=>"ENVIRONMENT_NAME", :description=>"Environment name", :opts=>{:attribute_name=>:option_environment_name, :deprecated=>{"--environment"=>"Use --puppet-environment instead"}}, :block=>nil}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::AssociatingCommands::PuppetEnvironment::RemovePuppetEnvironmentCommand: {:switches=>"--environment-id", :type=>"ENVIRONMENT_ID", :description=>"", :opts=>{:format=>#<HammerCLI::Options::Normalizers::Number:0x0000000001e14078>, :attribute_name=>:option_environment_id, :deprecated=>{"--environment-id"=>"Use --puppet-environment-id instead"}}, :block=>nil}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::AssociatingCommands::PuppetEnvironment::RemovePuppetEnvironmentCommand.
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mModulesESC[0m] Extension module hammer_cli_foreman (0.19.5) loaded.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mInitESC[0m] Using locale 'en'
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mInitESC[0m] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.19.1/locale'
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mInitESC[0m] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/locale'
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLI::MainCommandESC[0m] Called with options: {"option_debug"=>true}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added predefined options for HammerCLIForeman::SmartClassParameter::ListCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::SmartClassParameter::ListCommand: {:switches=>"--environment", :type=>"ENVIRONMENT_NAME", :description=>"Environment name", :opts=>{:attribute_name=>:option_environment_name, :deprecated=>{"--environment"=>"Use --puppet-environment instead"}}, :block=>nil}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::SmartClassParameter::ListCommand: {:switches=>"--environment-id", :type=>"ENVIRONMENT_ID", :description=>"", :opts=>{:format=>#<HammerCLI::Options::Normalizers::Number:0x0000000001e14078>, :attribute_name=>:option_environment_id, :deprecated=>{"--environment-id"=>"Use --puppet-environment-id instead"}}, :block=>nil}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::SmartClassParameter::ListCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added predefined options for HammerCLIForeman::PuppetClass::ListCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::PuppetClass::ListCommand: {:switches=>"--environment", :type=>"ENVIRONMENT_NAME", :description=>"Environment name", :opts=>{:attribute_name=>:option_environment_name, :deprecated=>{"--environment"=>"Use --puppet-environment instead"}}, :block=>nil}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::PuppetClass::ListCommand: {:switches=>"--environment-id", :type=>"ENVIRONMENT_ID", :description=>"", :opts=>{:format=>#<HammerCLI::Options::Normalizers::Number:0x0000000001e14078>, :attribute_name=>:option_environment_id, :deprecated=>{"--environment-id"=>"Use --puppet-environment-id instead"}}, :block=>nil}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::PuppetClass::ListCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added predefined options for HammerCLIForeman::PuppetClass::InfoCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::PuppetClass::InfoCommand: {:switches=>"--environment", :type=>"ENVIRONMENT_NAME", :description=>"Environment name", :opts=>{:attribute_name=>:option_environment_name, :deprecated=>{"--environment"=>"Use --puppet-environment instead"}}, :block=>nil}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::PuppetClass::InfoCommand: {:switches=>"--environment-id", :type=>"ENVIRONMENT_ID", :description=>"", :opts=>{:format=>#<HammerCLI::Options::Normalizers::Number:0x0000000001e14078>, :attribute_name=>:option_environment_id, :deprecated=>{"--environment-id"=>"Use --puppet-environment-id instead"}}, :block=>nil}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::PuppetClass::InfoCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added predefined options for HammerCLIForeman::Host::ListCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::Host::ListCommand: {:switches=>"--environment", :type=>"ENVIRONMENT_NAME", :description=>"Environment name", :opts=>{:attribute_name=>:option_environment_name, :deprecated=>{"--environment"=>"Use --puppet-environment instead"}}, :block=>nil}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::Host::ListCommand: {:switches=>"--environment-id", :type=>"ENVIRONMENT_ID", :description=>"", :opts=>{:format=>#<HammerCLI::Options::Normalizers::Number:0x0000000001e14078>, :attribute_name=>:option_environment_id, :deprecated=>{"--environment-id"=>"Use --puppet-environment-id instead"}}, :block=>nil}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Host::ListCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added predefined options for HammerCLIForeman::Host::CreateCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::Host::CreateCommand: {:switches=>"--environment", :type=>"ENVIRONMENT_NAME", :description=>"Environment name", :opts=>{:attribute_name=>:option_environment_name, :deprecated=>{"--environment"=>"Use --puppet-environment instead"}}, :block=>nil}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::Host::CreateCommand: {:switches=>"--environment-id", :type=>"ENVIRONMENT_ID", :description=>"", :opts=>{:format=>#<HammerCLI::Options::Normalizers::Number:0x0000000001e14078>, :attribute_name=>:option_environment_id, :deprecated=>{"--environment-id"=>"Use --puppet-environment-id instead"}}, :block=>nil}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::Hosts::Help::InterfacesESC[0m] Added predefined options for HammerCLIForeman::Host::CreateCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::Hosts::Help::InterfacesESC[0m] Saved block for HammerCLIForeman::Host::CreateCommand help definition:
        #<Proc:0x0000000001ded748@/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/lib/hammer_cli_foreman/command_extensions/hosts/help/interfaces.rb:6>
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::Hosts::Help::Interfaces for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36m#<Class:0x0000000002b0afc0>ESC[0m] Added predefined options for HammerCLIForeman::Host::CreateCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36m#<Class:0x0000000002b0afc0>ESC[0m] Saved block for HammerCLIForeman::Host::CreateCommand help definition:
        #<Proc:0x0000000002b0ae08@/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/lib/hammer_cli_foreman/command_extensions/hosts/help/compute_resources.rb:45>
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied #<Class:0x0000000002b0afc0> for *all* except *nothing* on HammerCLIForeman::Host::CreateCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added predefined options for HammerCLIForeman::Host::UpdateCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::Host::UpdateCommand: {:switches=>"--environment", :type=>"ENVIRONMENT_NAME", :description=>"Environment name", :opts=>{:attribute_name=>:option_environment_name, :deprecated=>{"--environment"=>"Use --puppet-environment instead"}}, :block=>nil}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Added option for HammerCLIForeman::Host::UpdateCommand: {:switches=>"--environment-id", :type=>"ENVIRONMENT_ID", :description=>"", :opts=>{:format=>#<HammerCLI::Options::Normalizers::Number:0x0000000001e14078>, :attribute_name=>:option_environment_id, :deprecated=>{"--environment-id"=>"Use --puppet-environment-id instead"}}, :block=>nil}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::PuppetEnvironment for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::Hosts::Help::InterfacesESC[0m] Added predefined options for HammerCLIForeman::Host::UpdateCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::Hosts::Help::InterfacesESC[0m] Saved block for HammerCLIForeman::Host::UpdateCommand help definition:
        #<Proc:0x0000000001ded748@/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/lib/hammer_cli_foreman/command_extensions/hosts/help/interfaces.rb:6>
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied HammerCLIForeman::CommandExtensions::Hosts::Help::Interfaces for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36m#<Class:0x0000000002a872b0>ESC[0m] Added predefined options for HammerCLIForeman::Host::UpdateCommand: 
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36m#<Class:0x0000000002a872b0>ESC[0m] Saved block for HammerCLIForeman::Host::UpdateCommand help definition:
        #<Proc:0x0000000002a87120@/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/lib/hammer_cli_foreman/command_extensions/hosts/help/compute_resources.rb:45>
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mExtensionsESC[0m] Applied #<Class:0x0000000002a872b0> for *all* except *nothing* on HammerCLIForeman::Host::UpdateCommand.
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::OptionSourcesESC[0m] Called block for HammerCLIForeman::Command option sources:
        #<Proc:0x0000000001e05528@/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/lib/hammer_cli_foreman/command_extensions/option_sources.rb:6>
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::HostESC[0m] Called with options: {}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::OptionSourcesESC[0m] Called block for HammerCLIForeman::Command option sources:
        #<Proc:0x0000000001e05528@/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/lib/hammer_cli_foreman/command_extensions/option_sources.rb:6>
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mHammerCLIForeman::CommandExtensions::PuppetEnvironmentESC[0m] Called block for HammerCLIForeman::Host::UpdateCommand option sources:
        #<Proc:0x0000000001e0fde8@/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/lib/hammer_cli_foreman/command_extensions/puppet_environment.rb:13>
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mAPIESC[0m] Server: https://hpc-maestro.hpc.gulfaero.com
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mAPIESC[0m] GET /api/locations
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mAPIESC[0m] Params: {
      :search => "name = \"Savannah\"",
    :per_page => 1000,
        :page => 1
}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mAPIESC[0m] Headers: {
    :params => {
          :search => "name = \"Savannah\"",
        :per_page => 1000,
            :page => 1
    }
}
[DEBUG ESC[34m2020-01-10T13:41:46ESC[0m ESC[36mAPIESC[0m] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Response: {
       "total" => 1,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 1000,
      "search" => "name = \"Savannah\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
               "ancestry" => nil,
              "parent_id" => nil,
            "parent_name" => nil,
             "created_at" => "2019-02-28 15:08:58 UTC",
             "updated_at" => "2019-02-28 15:13:09 UTC",
                     "id" => 1,
                   "name" => "Savannah",
                  "title" => "Savannah",
            "description" => ""
        }
    ]
}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Response headers: {
                                 :date => "Fri, 10 Jan 2020 18:41:46 GMT",
                               :server => "Apache",
                      :foreman_version => "1.24.1",
                  :foreman_api_version => "2",
         :foreman_current_organization => "; ANY",
             :foreman_current_location => "; ANY",
                      :apipie_checksum => "a39e9c80f9bc397b93fd77b43a2f19289158ec70",
                        :cache_control => "max-age=0, private, must-revalidate",
                         :x_request_id => "d2412d41-7a58-4991-a690-d4c07cb5ac91",
                            :x_runtime => "0.110682",
            :strict_transport_security => "max-age=631139040; includeSubdomains",
                      :x_frame_options => "sameorigin",
               :x_content_type_options => "nosniff",
                     :x_xss_protection => "1; mode=block",
                   :x_download_options => "noopen",
    :x_permitted_cross_domain_policies => "none",
              :content_security_policy => "default-src 'self'; child-src 'self'; connect-src 'self' ws: wss:; img-src 'self' data: *.gravatar.com; script-src 'unsafe-eval' 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'",
                         :x_powered_by => "Phusion Passenger 4.0.53",
                           :set_cookie => [
        [0] "_session_id=0c860879b944bd952a963ffbd6b20955; path=/; secure; HttpOnly; SameSite=Lax"
    ],
                                 :etag => "W/\"5e9c7ce47b72b2b4d35061b3fb885879-gzip\"",
                               :status => "200 OK",
                                 :vary => "Accept-Encoding",
                `Preformatted text` :content_encoding => "gzip",
                   :content_length => "223",
                     :content_type => "application/json; charset=utf-8"
}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Server: https://hpc-maestro.hpc.gulfaero.com
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] GET /api/organizations
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Params: {
      :search => "name = \"HPC\"",
    :per_page => 1000,
        :page => 1
}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Headers: {
    :params => {
          :search => "name = \"HPC\"",
        :per_page => 1000,
            :page => 1
    }
}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Response: {
       "total" => 1,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 1000,
      "search" => "name = \"HPC\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
               "ancestry" => nil,
              "parent_id" => nil,
            "parent_name" => nil,
             "created_at" => "2019-02-28 15:08:58 UTC",
             "updated_at" => "2019-02-28 15:13:19 UTC",
                     "id" => 2,
                   "name" => "HPC",
                  "title" => "HPC",
            "description" => ""
        }
    ]
}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Response headers: {
                                 :date => "Fri, 10 Jan 2020 18:41:47 GMT",
                               :server => "Apache",
                      :foreman_version => "1.24.1",
                  :foreman_api_version => "2",
         :foreman_current_organization => "; ANY",
             :foreman_current_location => "; ANY",
                      :apipie_checksum => "a39e9c80f9bc397b93fd77b43a2f19289158ec70",
                        :cache_control => "max-age=0, private, must-revalidate",
                         :x_request_id => "717c1f5d-3b72-4082-a35a-8f99d6aa75d1",
                            :x_runtime => "0.109368",
            :strict_transport_security => "max-age=631139040; includeSubdomains",
                      :x_frame_options => "sameorigin",
               :x_content_type_options => "nosniff",
                     :x_xss_protection => "1; mode=block",
                   :x_download_options => "noopen",
    :x_permitted_cross_domain_policies => "none",
              :content_security_policy => "default-src 'self'; child-src 'self'; connect-src 'self' ws: wss:; img-src 'self' data: *.gravatar.com; script-src 'unsafe-eval' 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'",
                         :x_powered_by => "Phusion Passenger 4.0.53",
                           :set_cookie => [
        [0] "_session_id=22f58cbccf83c7977e449a739c540dc2; path=/; secure; HttpOnly; SameSite=Lax"

],
:etag => “W/“9f0d613eab6ee81e386c3158d16eeabc-gzip””,
:status => “200 OK”,
:vary => “Accept-Encoding”,
:content_encoding => “gzip”,
:content_length => “217”,
:content_type => “application/json; charset=utf-8”
}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Server: https://hpc-maestro.hpc.gulfaero.com
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] GET /api/hostgroups
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Params: {
:search => "name = “Broadwell Compute RHEL7"”,
:per_page => 1000,
:page => 1
}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Headers: {
:params => {
:search => "name = “Broadwell Compute RHEL7"”,
:per_page => 1000,
:page => 1
}
}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Response: {
“total” => 5,
“subtotal” => 1,
“page” => 1,
“per_page” => 1000,
“search” => "name = “Broadwell Compute RHEL7"”,
“sort” => {
“by” => nil,
“order” => nil
},
“results” => [
[0] {
“subnet_id” => 1,
“subnet_name” => “Compute”,
“operatingsystem_id” => 3,
“operatingsystem_name” => “CentOS Linux release 7.6.1810 (Core)”,
“domain_id” => 2,
“domain_name” => “cmp”,
“environment_id” => nil,
“environment_name” => nil,
“compute_profile_id” => nil,
“compute_profile_name” => nil,
“ancestry” => nil,
“parent_id” => nil,
“parent_name” => nil,
“ptable_id” => 130,
“ptable_name” => “GAC-HPC: Kickstart Compute Node (CentOS 7)”,
“medium_id” => 10,
“medium_name” => “CentOS”,
“pxe_loader” => “PXELinux BIOS”,
“subnet6_id” => nil,
“subnet6_name” => nil,
“compute_resource_id” => nil,
“compute_resource_name” => nil,
“architecture_id” => 1,
“architecture_name” => “x86_64”,
“realm_id” => nil,
“realm_name” => nil,
“created_at” => “2019-05-07 16:42:54 UTC”,
“updated_at” => “2020-01-03 19:45:30 UTC”,
“id” => 3,

                         "name" => "Broadwell Compute RHEL7",
                        "title" => "Broadwell Compute RHEL7",
                  "description" => "",
              "puppet_proxy_id" => nil,
            "puppet_proxy_name" => nil,
           "puppet_ca_proxy_id" => nil,
         "puppet_ca_proxy_name" => nil,
                 "puppet_proxy" => nil,
              "puppet_ca_proxy" => nil
    }
]

}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Response headers: {
:date => “Fri, 10 Jan 2020 18:41:47 GMT”,
:server => “Apache”,
:foreman_version => “1.24.1”,
:foreman_api_version => “2”,
:foreman_current_organization => “; ANY”,
:foreman_current_location => “; ANY”,
:apipie_checksum => “a39e9c80f9bc397b93fd77b43a2f19289158ec70”,
:cache_control => “max-age=0, private, must-revalidate”,
:x_request_id => “3dce5c26-25a5-4cd1-8a62-543442ce0c4a”,
:x_runtime => “0.114900”,
:strict_transport_security => “max-age=631139040; includeSubdomains”,
:x_frame_options => “sameorigin”,
:x_content_type_options => “nosniff”,
:x_xss_protection => “1; mode=block”,
:x_download_options => “noopen”,
:x_permitted_cross_domain_policies => “none”,
:content_security_policy => “default-src ‘self’; child-src ‘self’; connect-src ‘self’ ws: wss:; img-src ‘self’ data: .gravatar.com; script-src ‘unsafe-eval’ ‘unsafe-inline’ ‘self’; style-src ‘unsafe-inline’ ‘self’",
:x_powered_by => “Phusion Passenger 4.0.53”,
:set_cookie => [
[0] “_session_id=c09aff88bb92dd490512f064e1dd096e; path=/; secure; HttpOnly; SameSite=Lax”
],
:etag => “W/“9292b709b919581040fc48f616207347-gzip””,
:status => “200 OK”,
:vary => “Accept-Encoding”,
:content_encoding => “gzip”,
:content_length => “504”,
:content_type => “application/json; charset=utf-8”
}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mHammerCLIForeman::Host::CreateCommandESC[0m] Called with options: {“option_puppetclass_ids”=>[], “option_overwrite”=>true, “option_volume_list”=>[], “option_interface_list”=>[{“type”=>“interface”, “mac”=>“11:11:22:22:33:44”, “ip”=>“172.28.254.192”, “name”=>“adummytest”, “managed”=>“true”, “primary”=>“true”, “provision”=>“true”}, {“type”=>“bmc”, “mac”=>“44:33:22:22:11:11”, “ip”=>“172.28.254.193”, “name”=>“adummytest-ipmi”, “domain_id”=>“2”, “subnet_id”=>“1”, “managed”=>“true”, “username”=>“ADMIN”, “password”=>"
**”, “provider”=>“IPMI”}], “option_location_name”=>“Savannah”, “option_location_id”=>1, “option_organization_name”=>“HPC”, “option_organization_id”=>2, “option_hostgroup_name”=>“Broadwell Compute RHEL7”, “option_hostgroup_id”=>3, “option_name”=>“adummytest”, “option_build”=>true}
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Server: https://hpc-maestro.hpc.gulfaero.com
[ESC[32m INFOESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] POST /api/hosts
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Params: {
“location_id” => 1,
“organization_id” => 2,
“host” => {
“name” => “adummytest”,
“location_id” => 1,
“organization_id” => 2,
“puppetclass_ids” => ,
“hostgroup_id” => 3,
“build” => true,
“compute_attributes” => {
“volumes_attributes” => {}
},
“managed” => true,
“enabled” => true,
“overwrite” => true,
“interfaces_attributes” => [

        [0] {
                 "type" => "interface",
                  "mac" => "11:11:22:22:33:44",
                   "ip" => "172.28.254.192",
                 "name" => "adummytest",
              "managed" => "true",
              "primary" => "true",
            "provision" => "true"
        },
        [1] {
                 "type" => "bmc",
                  "mac" => "44:33:22:22:11:11",
                   "ip" => "172.28.254.193",
                 "name" => "adummytest-ipmi",
            "domain_id" => "2",
            "subnet_id" => "1",
              "managed" => "true",
             "username" => "ADMIN",
             "password" => "***",
             "provider" => "IPMI"
        }
    ]
}

}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Headers: {}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[ESC[31mERRORESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] 500 Internal Server Error
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mAPIESC[0m] {
“error” => {
“message” => “nil is not numeric”
}
}
[DEBUG ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mExceptionESC[0m] Using exception handler HammerCLIForeman::ExceptionHandler#handle_internal_error
[ESC[31mERRORESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mExceptionESC[0m] nil is not numeric
Could not create the host:
nil is not numeric
[ESC[31mERRORESC[0m ESC[34m2020-01-10T13:41:47ESC[0m ESC[36mExceptionESC[0m]

RestClient::InternalServerError (500 Internal Server Error):
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:223:in exception_with_response' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:103:inreturn!’
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.3.0/lib/apipie_bindings/api.rb:353:in block in rest_client_call_block' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:807:inprocess_result’
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:725:in block in transmit' /opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:910:instart’
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in transmit' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:145:inexecute’
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in execute' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/resource.rb:67:inpost’
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.3.0/lib/apipie_bindings/api.rb:327:in call_client' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.3.0/lib/apipie_bindings/api.rb:240:inhttp_call’
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.3.0/lib/apipie_bindings/api.rb:190:in call_action' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.3.0/lib/apipie_bindings/api.rb:185:incall’
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.3.0/lib/apipie_bindings/resource.rb:21:in call' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.19.1/lib/hammer_cli/apipie/command.rb:53:insend_request’
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.19.5/lib/hammer_cli_foreman/commands.rb:188:in send_request' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.19.1/lib/hammer_cli/apipie/command.rb:34:inexecute’
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.19.1/lib/hammer_cli/abstract.rb:76:inrun’
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:inrun’
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.19.1/lib/hammer_cli/abstract.rb:76:in run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:inexecute’
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run’

/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.19.1/lib/hammer_cli/abstract.rb:76:in run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:inrun’
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.19.1/bin/hammer:147:in <top (required)>' /usr/bin/hammer:23:inload’
/usr/bin/hammer:23:in `’

/usr/bin/hammer host create --name adummytest --location “Savannah” --organization “HPC” --build true --hostgroup “Broadwell Compute RHEL7” --interface “type=interface,mac=11:11:22:22:33:44,ip=172.28.254.192,name=adummytest,managed=true,primary=true,provision=true” --interface type=bmc,mac=44:33:22:22:11:11,ip=172.28.254.193,name=adummytest-ipmi,domain_id=2,subnet_id=1,managed=true,username=ADMIN,password=ADMIN,provider=IPMI"

Here is another portion, when I attempt to rebuild an already existing host, note I tried following this already, ERF50-9294 - Foreman

*ArgumentError*
**nil is not numeric**
/opt/rh/rh-ruby25/root/usr/share/ruby/resolv.rb:954:in `block in timeouts='
/opt/rh/rh-ruby25/root/usr/share/ruby/resolv.rb:953:in `each'
/opt/rh/rh-ruby25/root/usr/share/ruby/resolv.rb:953:in `timeouts='
/opt/rh/rh-ruby25/root/usr/share/ruby/resolv.rb:351:in `timeouts='
/usr/share/foreman/lib/net/dns.rb:25:in `lookup'
/usr/share/foreman/lib/net/dns.rb:84:in `dns_lookup'
/usr/share/foreman/lib/net/dns/reverse_record.rb:27:in `conflicts'
/usr/share/foreman/lib/net.rb:23:in `conflicting?'
/usr/share/foreman/app/models/concerns/orchestration/dns.rb:119:in `block in dns_conflict_detected?'
/usr/share/foreman/app/models/concerns/orchestration/dns.rb:118:in `each'
/usr/share/foreman/app/models/concerns/orchestration/dns.rb:118:in `dns_conflict_detected?'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:426:in `block in make_lambda'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:236:in `block in halting_and_conditional'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:517:in `block in invoke_after'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:517:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:517:in `invoke_after'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:133:in `run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:816:in `_run_validation_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activemodel-5.2.1/lib/active_model/validations/callbacks.rb:118:in `run_validations!'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activemodel-5.2.1/lib/active_model/validations.rb:339:in `valid?'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/validations.rb:67:in `valid?'
/usr/share/foreman/app/models/concerns/orchestration.rb:86:in `valid?'
/usr/share/foreman/app/models/host/managed.rb:940:in `trigger_nic_orchestration'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:426:in `block in make_lambda'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:236:in `block in halting_and_conditional'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:517:in `block in invoke_after'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:517:in `each'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:517:in `invoke_after'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:133:in `run_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:816:in `_run_validation_callbacks'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activemodel-5.2.1/lib/active_model/validations/callbacks.rb:118:in `run_validations!'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activemodel-5.2.1/lib/active_model/validations.rb:339:in `valid?'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/validations.rb:67:in `valid?'
/usr/share/foreman/app/models/concerns/orchestration.rb:86:in `valid?'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/validations.rb:84:in `perform_validations'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/validations.rb:46:in `save'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block (2 levels) in save'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/transactions.rb:387:in `block in with_transaction_returning_status'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `block in transaction'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:239:in `block in within_new_transaction'
/opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in `mon_synchronize'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:254:in `transaction'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/transactions.rb:212:in `transaction'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/transactions.rb:310:in `block in save'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/transactions.rb:325:in `rollback_active_record_state!'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/transactions.rb:309:in `save'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/suppressor.rb:44:in `save'
/usr/share/foreman/app/models/concerns/foreman/sti.rb:26:in `save'
/usr/share/foreman/app/models/host/managed.rb:430:in `setBuild'
/usr/share/foreman/app/controllers/hosts_controller.rb:227:in `setBuild'
/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/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.9.0/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.9.0/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/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'
/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/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127: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'

-Jay

Now this is interesting, this looks like https://github.com/theforeman/foreman/pull/7260 which was supposed to be fixed in 1.24.1- could you please check the value of the dns_timeout setting? if it is nil, you can restore it to the default value.

That did the trick!!!.

I did notice it in 1.24.0, then noticed 1.24.1 was posted so just did the upgrade figuring it would get fixed then…

-Jay

how did you upgrade to 1.24.1? is it possible somehow you didn’t run the db migrations? or that the settings cache was somehow not cleared?

We started on 1.21.4. -> 1.22.x -> 1.23.1 -> 1.24.0 -> 1.24.1

I followed the upgrade docs, basically this page for each, for instance: Foreman :: Manual

Since we were already on Postgresql, I didn’t even bother with the ’ Migrating to PostgreSQL" steps.

-jay

For each step here is essentially every command I ran (In this order):
yum clean metadata
yum clean all
foreman-maintain service stop
yum upgrade centos-release-scl-rh foreman-release-scl
yum clean metadata
yum upgrade tfm* ruby* foreman*
foreman-maintain service start
foreman-rake apipie:cache
foreman-rake db:migrate
foreman-rake db:seed
foreman-rake tmp:cache:clear
foreman-rake db:sessions:clear
foreman-installer --noop --dont-save-answers --verbose
foreman-installer
yum erase rhscl-*
yum erase rh-ruby22* rh-ror42*
foreman-maintain service stop --exclude postgresql
su - postgres -c ‘vacuumdb --full --dbname=foreman’
foreman-maintain service start

Thanks for the input, we’ll look into it next week and try to figure out if this is just some fluke or if the fix for the bug was not correct.
Enjoy the weekend, and if you can please fill out our community survey!

You too!. Thank you!

-Jay