Project

General

Profile

Actions

Bug #6448

closed

broken API for registering a content host

Added by dustin tsang almost 10 years ago. Updated almost 6 years ago.

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

Description

Description of problem:
API for creating a content host fails with: "Cp type is not included in the list". cp type isn't among the list of required API parameters.

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

How reproducible:
always

Steps to Reproduce:
1. call API to create/register a content host:

curl -s -H "Content-Type:application/json" -H "Accept:application/json,version=2" -k -u admin:changeme -X POST -d'{"name":"one", "organization_id":1, "type":"content host", "facts":{"1":1}}' `hostname`/katello/api/systems

Actual results:
API fails with: {
"displayMessage": "Validation failed: Cp type is not included in the list",
"errors": {
"cp_type": [
"is not included in the list"
]
}
}

Expected results:
content host created/registered

Additional info:
This is a blocker for system profile migration from Sat5.

Actions #1

Updated by dustin tsang almost 10 years ago

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

Updated by Eric Helms almost 10 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF