Domain now required in Host Group in order to register via bootstrap?
Last week I rebuilt my test sat 6 server. It is now v 6.2.2, prior to that it was 6.2.1 and the bootstrap worked fine to register systems, minus it installing puppet agent even with the arg not to; I did not have a Domain listed in the Host Group because I feel it is not a necessity and the bootstrap did not complain.
Today I use the bootstrap.pl with the same options as I have used prior:
./bootstrap.py -l admin -p password -s satserver.example -o 'Default' -L 'Default' -g Default -a 'Default' --skip-puppet
And now receive this error:
[RUNNING], [2016-09-19 15:23:11], [Calling Foreman API to create a host entry associated with the group, org & location]
Error: The following error occured while talking to the API:
url: https://satserver.example:443/api/v2/hosts/
code: 422
data: {
"host": {
"managed": "true",
"name": "testserver1",
"hostgroup_id": 1,
"organization_id": 1,
"mac": "xx",
"architecture_id": 1,
"location_id": 2
}
}
error: {
"error": {
"errors": {
"interfaces.domain": [
"can't be blank"
],
"interfaces.domain_id": [
"can't find domain with this id"
]
},
"id": null,
"full_messages": [
"Domain can't be blank",
"Interfaces.domain can't find domain with this id"
]
}
}
Responses
Domain has always been required unless you used the --skip-foreman or --unmanaged switches. It is highly possible that the domain was pre-existing already on your old satellite.
As part of bz1343585, bootstrap.py picked up the --add-domain so that you can add the domain if non-preexisting when the script is running.
Hello I have a new satellite server 6.2 and recently I am getting same error, I ran the satellite-installer and retried without success. Before this error started I was able to register few servers to satellite
running the following command
./bootstrap.py -l -p -s -o -L -g -a --force
[NOTIFICATION], [2018-05-10 04:36:49], [Writing FQDN katello-fact] [RUNNING], [2018-05-10 04:36:50], [Calling Foreman API to create a host entry associated with the group & org] An error occured: HTTP Error 422: Unprocessable Entity url: https://satmstprd1.nbme.org:443/api/v2/hosts/ code: 422 data: { "host": { "managed": "true", "name": "iserver_san", "ip": "172.21.64.35", "hostgroup_id": 4, "organization_id": 1, "mac": "00:50:56:87:62:A6", "architecture_id": 1, "location_id": 2, "domain_id": 1 } } error: { "error": { "errors": { "interfaces.name": [ "is invalid" ], "name": [ "is invalid" ] }, "id": null, "full_messages": [ "Name is invalid", "Name is invalid" ] } }
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
