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.
Updated by Andrew Kofink over 6 years ago
- Is duplicate of Bug #21670: Allow non-RH hosts to NOT have content views added
Updated by Andrew Kofink over 6 years ago
- Subject changed from Running bootstrap fails: Content view can't be blank to Running bootstrap fails: Content view can't be blank
- Status changed from New to Closed
- Translation missing: en.field_release set to 166
This should be fixed in 3.5.1 with #21670 (https://github.com/Katello/katello/pull/7064/files#diff-de8d740493f475a7adfa9205b005ebfd)
Updated by Andrew Kofink over 6 years ago
- Status changed from Closed to Assigned
- Translation missing: en.field_release deleted (
166)
It turns out the duplicate issue's fix doesn't actually solve this issue.
Updated by Andrew Kofink over 6 years ago
- Is duplicate of deleted (Bug #21670: Allow non-RH hosts to NOT have content views)
Updated by The Foreman Bot over 6 years ago
- Status changed from Assigned to Ready For Testing
- Assignee set to Andrew Kofink
- Pull request https://github.com/Katello/katello/pull/7349 added
Updated by Andrew Kofink over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|f68766750562b16fe08a14356298596223496db2.
Updated by Andrew Kofink over 6 years ago
- Translation missing: en.field_release set to 352