You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2018/02/07 19:43:01 UTC

[jira] [Updated] (AMBARI-22931) Pre-Upgrade Checks Should Have Structured Output

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

Jonathan Hurley updated AMBARI-22931:
-------------------------------------
    Summary: Pre-Upgrade Checks Should Have Structured Output  (was: Pre-Upgrade Checklist: COMPONENTS_INSTALLATION need to have host-component map for failed components)

> Pre-Upgrade Checks Should Have Structured Output
> ------------------------------------------------
>
>                 Key: AMBARI-22931
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22931
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.7.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.7.0
>
>
> The UI needs to know in which host component installations have failed in order to add opportunity re-install them from pre-upgrade dialog. For now, we have this info only in "reason" string.
> Components installation info should have map between host and failed components. 
> Now it is:
> {code}
>  {
>       "href" : "http://104.196.88.201:8080/api/v1/clusters/test/rolling_upgrades_check/COMPONENTS_INSTALLATION",
>       "UpgradeChecks" : {
>         "check" : "All service components must be installed",
>         "check_type" : "SERVICE",
>         "cluster_name" : "test",
>         "failed_detail" : [ ],
>         "failed_on" : [
>           "ATLAS",
>           "HIVE",
>           "SLIDER",
>           "TEZ",
>           "MAPREDUCE2",
>           "KAFKA",
>           "YARN",
>           "PIG"
>         ],
>         "id" : "COMPONENTS_INSTALLATION",
>         "reason" : "Found service components in INSTALL_FAILED state. Please re-install these components. Service components in INSTALL_FAILED state: [KAFKA:KAFKA_BROKER on aantonenko252-1.c.pramod-thangali.internal], [ATLAS:ATLAS_SERVER on aantonenko252-1.c.pramod-thangali.internal], [YARN:RESOURCEMANAGER on aantonenko252-1.c.pramod-thangali.internal], [PIG:PIG on aantonenko252-1.c.pramod-thangali.internal], [HIVE:HIVE_SERVER on aantonenko252-1.c.pramod-thangali.internal], [TEZ:TEZ_CLIENT on aantonenko252-1.c.pramod-thangali.internal], [YARN:NODEMANAGER on aantonenko252-1.c.pramod-thangali.internal], [MAPREDUCE2:MAPREDUCE2_CLIENT on aantonenko252-1.c.pramod-thangali.internal], [HIVE:HCAT on aantonenko252-1.c.pramod-thangali.internal], [HIVE:HIVE_METASTORE on aantonenko252-1.c.pramod-thangali.internal], [HIVE:WEBHCAT_SERVER on aantonenko252-1.c.pramod-thangali.internal], [YARN:YARN_CLIENT on aantonenko252-1.c.pramod-thangali.internal], [HIVE:HIVE_CLIENT on aantonenko252-1.c.pramod-thangali.internal], [SLIDER:SLIDER on aantonenko252-1.c.pramod-thangali.internal].",
>         "repository_version_id" : 4,
>         "status" : "FAIL",
>         "upgrade_type" : "ROLLING"
>       }
>     }
> {code}
> The proposal is to add structured output to each of the upgrade pre-checks which could have automated UI actions associated with them. For example:
> {code}
> "failed_detail" : [ 
>   {
>   "host_name" : aantonenko252-1.c.pramod-thangali.internal,
>   "service_name" : "HIVE",
>   "component_name" : "HIVE_SERVER"
>   },
>   {
>   "hostname_name" : aantonenko252-1.c.pramod-thangali.internal,
>   "service_name" : "HIVE",
>   "component_name" : "HIVE_CLIENT"
>   },
> ...
> ],
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)