[
https://issues.apache.org/jira/browse/AMBARI-22931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Hurley resolved AMBARI-22931.
--------------------------------------
Resolution: Fixed
> 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
> Labels: pull-request-available
> Fix For: 2.7.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> 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)