Project

General

Profile

Actions

Bug #6937

closed

content-host creation fails with 'Facts can't be blank'

Added by Christine Fouant over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Urgent
Category:
API
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1126376
Description of problem:
When creating content-host, creation fails with:
Validation failed: Facts can't be blank (ActiveRecord::RecordInvalid)
even if facts are set. This is a regression.

Version-Release number of selected component (if applicable):
Satellite-6.0.4-RHEL-6-20140730.0-Satellite-x86_64

How reproducible:
always

Steps to Reproduce:
1.
curl -s -H "Content-Type:application/json" -H "Accept:application/json,version=2" -k -u admin:changeme -d '{"type":"system", "facts":{"release":"6Server", "architecture":"x86_64"}, "host_colletion_id":{}, "organization_id":3, "description":"Initial Registration Parameters:\nOS: redhat-release-server\nRelease: 6Server\nCPU Arch: x86_64\nsat5_system_id: 1000020000", "name":"mysytem-123.example.com"}' $(hostname)/katello/api/systems

Actual results: {"displayMessage":"Validation failed: Facts can't be blank","errors":{"facts":["can't be blank"]}}

Expected results:
Content host created.

Additional info:
This is a regression, same command worked with Satellite-6.0.4-RHEL-6-20140723.0-Satellite-x86_64 as expected.
This bug blocks migration of content-hosts.

Actions #1

Updated by Eric Helms over 9 years ago

  • Target version set to 54
  • Difficulty set to easy
  • Triaged changed from No to Yes
Actions #2

Updated by Christine Fouant over 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF