Problem:
I’m looking to set up foreman+katello as a bare metal provisioning system to replace our current cobbler solution, which was easy to set up but isn’t scaling to hundreds of hosts. I’m trying to follow the provisioning guide here Provisioning hosts (theforeman.org) but I’m seeing an error when I try to create a host using hammer.
Full command is:
hammer host create
–build true
–enabled true
–hostgroup “HEC-test”
–location “Default Location”
–mac “10:70:fd:ac:ca:ca”
–managed true
–name “comp05-11”
–organization “Lancaster HEC”
–domain “private.dns.zone”
–ask-root-password yes
–medium “Rocky Linux”
And I get the error:
Enter the root password for the host:
Could not create the host:
Domain can’t be blank
Interfaces.domain can’t find domain with this id
Ptable can’t be blank unless a custom partition has been defined
The Ptable error I can understand, but I’m stumped as to what the error “Domain can’t be blank” actually means when the domain is right there in the command. I feel I’m missing some important step here, but there’s a nagging doubt that this is actually a bug.
Expected outcome:
Command should error with just the Ptable message (until I create one!)
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
hammer --version
hammer (3.12.0)
- hammer_cli_foreman (3.12.0)
- hammer_cli_foreman_remote_execution (unknown version)
- hammer_cli_foreman_tasks (unknown version)
- hammer_cli_katello (1.14.3)
Distribution and version:
Rocky Linux 9.4
Other relevant data: