[ https://issues.apache.org/jira/browse/AMBARI-24006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang updated AMBARI-24006: ------------------------------------- Fix Version/s: 3.1.0 (was: 3.0.0) > Enhance ERROR returned in case of incorrect Mpack Version passed during > Mpack Advisor call. > --------------------------------------------------------------------------------------------- > > Key: AMBARI-24006 > URL: https://issues.apache.org/jira/browse/AMBARI-24006 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Reporter: Swapan Shridhar > Assignee: Swapan Shridhar > Priority: Major > Labels: pull-request-available > Fix For: 3.1.0 > > Time Spent: 50m > Remaining Estimate: 0h > > For instance during Mpack Advisor's Recommendation call, in case wrong Mpack > Version is passed, the error returned as part of API response is following: > {code:title=POST http://[AmbariServer]:8080/api/v1/mpacks/recommendations} > Error parsing services.json file content: null > {code} > One possible reason is if wrong/non-existing Mpack version is passed-in in > the REQUEST body. > {code} > { > "hosts": [ > "host1.openstacklocal", > "host2.openstacklocal" > ], > "recommend": "configurations", > "recommendations": { > "blueprint": { > "mpack_instances": [{ > "name": "HDPCORE", > "type": "HDPCORE", > "version": "1.0.0-b121", ---- > if > WRONG_VERSION_NUMBER > ......... > {code} > *Fix:* Return information on passed-in Mpack Name and Version, and suggested > checking for the Name, version and its existence. > Error retuned after fix: > {code} > Error parsing created services object for Mpack Advisor Python Code. Attempt > to read services information for passed-in Mpack : "HDPCORE" and version : > "1.0.0-b4121" is NULL. Check passed-in Mpack Name, Version and corresponding > stack's existence in cluster. > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org For additional commands, e-mail: issues-h...@ambari.apache.org