Bug 1349940

Summary: "Completed 422 Unprocessable Entity" when deploying RHEV engine+hypervisor
Product: Red Hat Satellite Reporter: Antonin Pagac <apagac>
Component: HostsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bthurber, inecas, jmatthew
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 06:55:07 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: 1212602    

Description Antonin Pagac 2016-06-24 15:19:18 UTC
Description of problem:
I can consistently reproduce the message. It appears in production log twice, once for the hypervisor and once for the engine:

"2016-06-24 10:24:58 [app] [I] Started POST "/api/hosts/facts" for 127.0.0.1 at 2016-06-24 10:24:58 -0400
2016-06-24 10:24:58 [app] [I] Processing by Api::V2::HostsController#facts as JSON
2016-06-24 10:24:58 [app] [I]   Parameters: {"facts"=>"[FILTERED]", "name"=>"h.example.com", "certname"=>"h.example.com", "apiv"=>"v2", :host=>{"name"=>"h.example.com", "certname"=>"h.example.com"}}
2016-06-24 10:24:58 [app] [I] Completed 422 Unprocessable Entity in 26ms (Views: 4.0ms | ActiveRecord: 4.9ms)
2016-06-24 10:24:58 [app] [I] Started GET "/node/h.example.com?format=yml" for 127.0.0.1 at 2016-06-24 10:24:58 -0400
2016-06-24 10:24:58 [app] [I] Processing by HostsController#externalNodes as YML
2016-06-24 10:24:58 [app] [I]   Parameters: {"name"=>"h.example.com"}
2016-06-24 10:24:59 [app] [I]   Rendered text template (0.0ms)
2016-06-24 10:24:59 [app] [I] Completed 200 OK in 276ms (Views: 0.7ms | ActiveRecord: 22.4ms)"

and:

"2016-06-24 10:31:08 [app] [I] Started POST "/api/hosts/facts" for 127.0.0.1 at 2016-06-24 10:31:08 -0400
2016-06-24 10:31:08 [app] [I] Processing by Api::V2::HostsController#facts as JSON
2016-06-24 10:31:08 [app] [I]   Parameters: {"facts"=>"[FILTERED]", "name"=>"e.example.com", "certname"=>"e.example.com", "apiv"=>"v2", :host=>{"name"=>"e.example.com", "certname"=>"e.example.com"}}
2016-06-24 10:31:08 [app] [I] Completed 422 Unprocessable Entity in 18ms (Views: 4.3ms | ActiveRecord: 2.8ms)
2016-06-24 10:31:08 [app] [I] Started GET "/node/e.example.com?format=yml" for 127.0.0.1 at 2016-06-24 10:31:08 -0400
2016-06-24 10:31:08 [app] [I] Processing by HostsController#externalNodes as YML
2016-06-24 10:31:08 [app] [I]   Parameters: {"name"=>"e.example.com"}
2016-06-24 10:31:08 [app] [I]   Rendered text template (0.0ms)
2016-06-24 10:31:08 [app] [I] Completed 200 OK in 157ms (Views: 0.4ms | ActiveRecord: 10.9ms)"


Version-Release number of selected component (if applicable):
compose 20160623.t.0

How reproducible:
Always (in vagrant env)

Steps to Reproduce:
1. Deploy RHEV (engine+hypervisor) in a vagrant env
2. After a successful deployment, check the production.log on satellite
3.

Actual results:
422 Unprocessable Entity appears as an informational message

Expected results:
The message does not appear

Additional info:
If this is an expected behavior, we should mention that in the docs.

Comment 2 Ivan Necas 2016-06-29 06:55:07 UTC
This is a duplicate. Let's continue there.

*** This bug has been marked as a duplicate of bug 1321971 ***