Migrating clients registered to Red Hat Satellite-6.x from Red Hat Satellite-5.x using bootstrap script, fails with "422 Unprocessable Entity" error.

Solution Verified - Updated -

Issue

  • Migrating clients registered to Red Hat satellite-6.x from Red Hat Satellite-5.x using the bootstrap script fails with "422 Unprocessable Entity" messages with the following responses:
[RUNNING], [2017-12-22 16:20:15], [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": "Clienttemp3",
    "ip": "10.0.XX.XXX",
    "hostgroup_id": 1,
    "organization_id": 3,
    "mac": "00:50:56:A7:3E:2E",
    "architecture_id": 1,
    "location_id": 4
  }
}
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"
    ]
  }
}

Environment

  • Red Hat Satellite 6.x
  • Bootstrap script

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content