Bug 1552271

Summary: internal server error when configuration_script is requested
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: APIAssignee: Bill Wei <bilwei>
Status: CLOSED ERRATA QA Contact: Martin Kourim <mkourim>
Severity: high Docs Contact:
Priority: medium    
Version: 5.9.0CC: cpelland, gmccullo, joden, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: api:rest:services
Fixed In Version: 5.9.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1540250 Environment:
Last Closed: 2018-04-11 17:46:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1540250    
Bug Blocks:    

Comment 2 CFME Bot 2018-03-06 21:26:40 UTC
New commits detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/e8bb529b12a3f0887f201e5d9e8037df5a9e53dd
commit e8bb529b12a3f0887f201e5d9e8037df5a9e53dd
Author:     Greg McCullough <gmccullo>
AuthorDate: Wed Jan 31 17:17:12 2018 -0500
Commit:     Greg McCullough <gmccullo>
CommitDate: Wed Jan 31 17:17:12 2018 -0500

    Merge pull request #16923 from bzwei/service_config_script

    Implement #configuration_script because of virtual_has_one relationship
    (cherry picked from commit 3ebdb6a7f803a11c5820bad62ade3ae7e8ddd323)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1552271

 app/models/service.rb | 3 +
 spec/models/service_spec.rb | 4 +
 2 files changed, 7 insertions(+)

Comment 3 James Olin Oden 2018-03-16 18:57:35 UTC
Tested it and it looks.   Ran this through my browser with an actual IP:

   https://$serverIP/api/services?expand=resources&attributes=configuration_script

And got expected results back.

Comment 6 errata-xmlrpc 2018-04-11 17:46:34 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://access.redhat.com/errata/RHBA-2018:0556