Project

General

Profile

Actions

Bug #23457

closed

Running bootstrap fails: Content view can't be blank

Added by Andrew Kofink about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Andrew Kofink about 6 years ago

  • Is duplicate of Bug #21670: Allow non-RH hosts to NOT have content views added
Actions #2

Updated by Andrew Kofink about 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
Actions #3

Updated by Andrew Kofink about 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.

Actions #4

Updated by Andrew Kofink about 6 years ago

  • Is duplicate of deleted (Bug #21670: Allow non-RH hosts to NOT have content views)
Actions #5

Updated by The Foreman Bot about 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
Actions #6

Updated by Andrew Kofink about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #7

Updated by Andrew Kofink about 6 years ago

  • translation missing: en.field_release set to 352
Actions

Also available in: Atom PDF