Bug #23457
closedRunning bootstrap fails: Content view can't be blank
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1559703
Description of problem:
Using the bootstrap script to migrate hosts from 6.3 fails with
Content view can't be blank
The error is from calling Foreman API to create a host entry associated with the group & org.
An error occured: HTTP Error 422: Unprocessable Entity
url: https://xxxx.xx.xx.xx:8443/api/v2/hosts/
code: 422
data: {
"host": {
"operatingsystem_id": 3,
"managed": "true",
"name": "mod-ops01",
"ip": "192.168.18.103",
"hostgroup_id": 7,
"organization_id": 1,
"mac": "xx:xx:xx:xx:xx:xx",
"architecture_id": 1,
"location_id": 3,
"domain_id": 1
}
}
error: {
"error": {
"errors": {
"content_facet.content_view": [
"can't be blank"
]
},
"id": null,
"full_messages": [
"Content view can't be blank"
]
}
}
Version-Release number of selected component (if applicable):
6.3
How reproducible:
Easy
Steps to Reproduce:
1. create a new host group without specifying a content view
2. call the API for creating a new host with the newly created host group
Actual results:
Can't create a new host
Expected results:
Can create a new host with the host group that doesn't associate with a content view
Additional info:
It seems like a regression in 6.3 as it works in 6.2.