Domain now required in Host Group in order to register via bootstrap?

Latest response

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.

Hi Rich,

Thanks for the reply.

Domain, being listed under "Infrastructure" has to be set up?

In the document Host Configuration Guide, this is stated:

8.3.1. Domains Satellite has the ability to assign domain names with Red Hat Satellite Capsule Server DNS. This provides users with a means to group and name hosts within a particular domain.

I do not want Satellite to act as a DNS service and I am also not allowed to have a DNS instance running in a prd environment.

I did not set this up in my previous build of Sat. I am very confused about this now.

Ok so now I am very confused as to what has happened.

I just ran a satellite-installer --scenario satellite --upgrade on the sat server, it finished. I went to the Infrastructure -> Domains and a domain is now listed. How did this get added?

I pulled a new bootstrap.py to a client machine, ran the command with:

./bootstrap.py -l admin -p password -s sat6server.com -o 'aDefaultOrg' -L 'aDefaultLocation' -g Default -a 'Default Key' --skip-puppet

The client machine now registers, however it is registered with the fqdn and the short name. I also tried on another system and it too registered using short and fqdn. One is a rhel 7 and the other is rhel 6 system.

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" ] } }

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.