Bug 797136

Summary: [Rest API] no Exit_code for error message for some rest api
Product: OKD Reporter: Johnny Liu <jialiu>
Component: PodAssignee: Lili Nader <lnader>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 1.xCC: bmeng, mfisher, rmillner
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-02 21:56:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Johnny Liu 2012-02-24 11:11:39 UTC
Description of problem:
According to BZ#787295, every error message should have Exit_code attribute, after check the code of rest api, now only keys_controller.rb fills Exit_code attribute in returned message.

The following script does not fill Exit_code attribute:
emb_cart_controller.rb
emb_cart_events_controller.rb
domains_controller.rb
app_events_controller.rb
descriptors_controller.rb
user_controller.rb

I use 'find cloud-sdk/ | xargs grep ":error"' to filter the script and check all error message items.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Meng Bo 2012-02-28 10:30:23 UTC
Checked again on devenv_1648, issue still can be reproduced.
Since the most of the error messages do not contain exit code, so this issue blocked US1895.
Raise the priority to high.

Comment 2 Johnny Liu 2012-03-01 10:26:02 UTC
Verified this bug with devenv_stage_139, and PASS.
Because gears_controller.rb is newly added, and found a minor issue, I opened another bug to track, mark this bug as "verified"