Bug 1231857

Summary: Service Quota service_request_rejected automate method puts truncated data in the miq_request reason attribute.
Product: Red Hat CloudForms Management Engine Reporter: Tina Fitzgerald <tfitzger>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED ERRATA QA Contact: Pete Savage <psavage>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: cpelland, dajohnso, jhardy, jprause, kmorey, mkanoor, obarenbo, psavage, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.4.1   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.4.1.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1227931 Environment:
Last Closed: 2015-07-30 13:11:45 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: 1227931    
Bug Blocks:    

Comment 1 CFME Bot 2015-06-15 15:16:43 UTC
New commit detected on cfme_productization/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme_productization.git;a=commit;h=43cc3a6efd57111f67bbe452496ddb61b94545c3

commit 43cc3a6efd57111f67bbe452496ddb61b94545c3
Merge: 6cec6b0 0223d54
Author:     Madhu Kanoor <mkanoor>
AuthorDate: Mon Jun 15 11:14:39 2015 -0400
Commit:     Madhu Kanoor <mkanoor>
CommitDate: Mon Jun 15 11:14:39 2015 -0400

    Merge branch 'cherry_pick_1227931' into '5.4.z'
    
    Changed Service Quota rejected automate method.
    
    Modified request rejected method to remove unnecessary quota_reason, log message and reason input field.
    
    BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1231857
    
    Original MR:
    http://gitlab.cloudforms.lab.eng.rdu2.redhat.com/cloudforms/cfme_productization/merge_requests/60
    
    Original BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1227931
    
    Clean cherry-pick
    
    See merge request !68

 .../__methods__/service_request_rejected.rb        |  7 ++-----
 .../__methods__/service_request_rejected.yaml      | 22 +---------------------
 2 files changed, 3 insertions(+), 26 deletions(-)

Comment 2 CFME Bot 2015-06-15 15:25:44 UTC
New commit detected on cfme_productization/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme_productization.git;a=commit;h=43cc3a6efd57111f67bbe452496ddb61b94545c3

commit 43cc3a6efd57111f67bbe452496ddb61b94545c3
Merge: 6cec6b0 0223d54
Author:     Madhu Kanoor <mkanoor>
AuthorDate: Mon Jun 15 11:14:39 2015 -0400
Commit:     Madhu Kanoor <mkanoor>
CommitDate: Mon Jun 15 11:14:39 2015 -0400

    Merge branch 'cherry_pick_1227931' into '5.4.z'
    
    Changed Service Quota rejected automate method.
    
    Modified request rejected method to remove unnecessary quota_reason, log message and reason input field.
    
    BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1231857
    
    Original MR:
    http://gitlab.cloudforms.lab.eng.rdu2.redhat.com/cloudforms/cfme_productization/merge_requests/60
    
    Original BZ:
    https://bugzilla.redhat.com/show_bug.cgi?id=1227931
    
    Clean cherry-pick
    
    See merge request !68

 .../__methods__/service_request_rejected.rb        |  7 ++-----
 .../__methods__/service_request_rejected.yaml      | 22 +---------------------
 2 files changed, 3 insertions(+), 26 deletions(-)

Comment 4 Pete Savage 2015-07-20 13:35:17 UTC
Please provider reproduction steps

Comment 5 Tina Fitzgerald 2015-07-21 15:09:46 UTC
Hi Pete,

Setup a service and configure the service quota so the request is rejected.

Goto the service request page and select the failed service which will bring you to the request detail page.  You'll notice the reason field has a value of "t".

Additional information on setting up quota values:
https://bugzilla.redhat.com/show_bug.cgi?id=1227945

Once the fix has been applied, you will see a reason value of "Quota Exceeded".

Let me know if you have any questions.

Thanks,
Tina

Comment 6 Pete Savage 2015-07-21 16:16:34 UTC
Verified in 5.4.1.0

Comment 8 errata-xmlrpc 2015-07-30 13:11:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1511.html