[Red Hat Satellite 6]While registering a client to Red Hat Satellite v 6 server via bootstrap script, it fails with "422 Unprocessable Entity" error.
Issue
- When attempting to register a system to Red Hat Satellite 6 using bootstrap script, getting 422 Unprocessable Entity messages with the following responses:
[RUNNING], [2017-03-25 13:33:28], [Calling Foreman API to create a host entry associated with the group & org]
An error occured: HTTP Error 422: Unprocessable Entity
url: https://satellite.example.com:443/api/v2/hosts/
code: 422
data: {
"host": {
"managed": "true",
"name": "client",
"hostgroup_id": X,
"organization_id": X,
"mac": "00:50:56:B4:F5:2F",
"architecture_id": 1,
"location_id": X,
"domain_id": X
}
}
error: {
"error": {
"errors": {
"operatingsystem_id": [
"can't be blank"
]
},
"id": null,
"full_messages": [
"Operatingsystem can't be blank"
]
}
}
Environment
- Red Hat Satellite v6
- Bootstrap script
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
