Problem:
“hammer host create” no longer inheriting medium-id set in hostgroup. In the past, we were able to leave out the --medium-id number when using hammer host create. If I add that value, it is not using the “synced content” required, and I see no option that forces that.
Expected outcome:
Server provisioned instead of “Medium can’t be blank” message when using --hostgroup flag.
Foreman and Proxy versions:
Foreman 3.1.2-2.
Katello 4.3.0
Foreman and Proxy plugin versions:
foreman-tasks 5.2.2
foreman_chef 0.10.0
foreman_discovery 19.0.1
foreman_docker 5.0.0
foreman_puppet 2.0.4
foreman_remote_execution 5.0.3
katello 4.3.0
Distribution and version:
CentOS Linux release 7.9.2009 (Core)
Other relevant data:
This is super old, but it is still a problem
Peter
We never got a response, so we modified how we do our hammer commands when we create servers to include items that the hostgroup already has included like location, content-source, content-view, etc. In the past we never needed these. But we have been running our automated builds with the modified hammer command because it has been working ever since I submitted this question.
hammer host create --name hammertest.example.com --hostgroup-title alpha_d_vm_ol8_vlan2148 --location-id 2 --content-source-id 5 --kickstart-repository-id 439 --content-view ol8_composite_view --parameters tla=syseng --owner-type Usergroup --owner syseng --owner-id 1 --organization example;
To answer your question though, I just now tried to run a test build with minimal inputs. It fails now with “hostgroup not found” even though it exists.
hammer host create --name hammertest.example.com --hostgroup alpha_d_vm_ol8_int_vland2148 --location-id 2 --organization example
Could not create the host:
Error: hostgroup not found.