You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Swapan Shridhar (JIRA)" <ji...@apache.org> on 2018/06/04 21:07:00 UTC

[jira] [Assigned] (AMBARI-24030) CLONE - Enhance ERROR returned in case of incorrect Mpack Version passed during Mpack Advisor call.

     [ https://issues.apache.org/jira/browse/AMBARI-24030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Swapan Shridhar reassigned AMBARI-24030:
----------------------------------------

    Assignee: Scott Duan  (was: Swapan Shridhar)

> CLONE - Enhance ERROR returned in case of incorrect  Mpack Version passed during Mpack Advisor call. 
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-24030
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24030
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>            Reporter: Swapan Shridhar
>            Assignee: Scott Duan
>            Priority: Major
>             Fix For: 3.0.0
>
>
> 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
(v7.6.3#76005)