Bug 987925

Summary: Cannot create system via API - 404 on environment
Product: Red Hat Satellite Reporter: Jeff Weiss <jweiss>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NEXTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: NightlyCC: dajohnso, ehelms, mmccune, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-29 12:43:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 971511    

Description Jeff Weiss 2013-07-24 12:22:22 UTC
Description of problem:


Version-Release number of selected component (if applicable):
1.4.2-1.git.961.e5d1bd2.el6

How reproducible:
always

Steps to Reproduce:
1. Create an env via API 
2. Get the id from the response
3. POST /katello/api/environments/[id]/systems

Actual results:
404 Couldn't find environment [id]

Expected results:
system created

Additional info:

Comment 1 Jeff Weiss 2013-07-24 12:34:36 UTC
You can also get this error in the UI - seems like candlepin is losing something.

For example, create an env in the UI and then a distributor in the UI.

"No such environment: 45" "Resources::Candlepin::Consumer: 404 Resource Not Found {\"displayMessage\":\"No such environment: 45\"}

Comment 2 Jeff Weiss 2013-08-08 18:04:20 UTC
Apparently the API call was missing a content view ID. which is now required.

However I think this is still a bug to throw a 404 error on the environment when what's actually wrong is that the caller forgot to specify a cv id.