[
https://issues.apache.org/jira/browse/AMBARI-14471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Hurley updated AMBARI-14471:
-------------------------------------
Description:
When retrieving information about an upgrade, there is a {{display_status}}
field used for {{UpgradeGroup}}. Within an {{UpgradeGroup}} there are
{{UpgradeItem}} instances which have {{task}} instances.
The {{UpgradeItem}} doesn't have a {{display_status}} which can cause problems
when the tasks failed and were skipped since we show the encompassing item as
COMPLETED (green).
This Jira is to track {{UpgradeItem/display_status}} being added to the API.
{code}
{
"href":
"http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4?fields=upgrade_items/UpgradeItem/display_status,upgrade_items/UpgradeItem/status",
"UpgradeGroup": {
"group_id": 4,
"request_id": 23
},
"upgrade_items": [
{
"href":
"http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4/upgrade_items/7",
"UpgradeItem": {
"cluster_name": "c1",
"group_id": 4,
"request_id": 23,
"stage_id": 7,
"display_status": "FAILED",
"status": "COMPLETED"
}
},
{
"href":
"http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4/upgrade_items/8",
"UpgradeItem": {
"cluster_name": "c1",
"group_id": 4,
"request_id": 23,
"stage_id": 8,
"display_status": "COMPLETED",
"status": "COMPLETED"
}
}
]
}
{code}
was:
When retrieving information about an upgrade, there is a {{display_status}}
field used for {{UpgradeGroup}}. Within an {{UpgradeGroup}} there are
{{UpgradeItem}} instances which have {{task}} instances.
The {{UpgradeItem}} doesn't have a {{display_status}} which can cause problems
when the tasks failed and were skipped since we show the encompassing item as
COMPLETED (green).
This Jira is to track {{UpgradeItem/display_status}} being added to the API.
> Expose UpgradeItem Display Status In API Requests
> -------------------------------------------------
>
> Key: AMBARI-14471
> URL: https://issues.apache.org/jira/browse/AMBARI-14471
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.2.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 2.2.1
>
>
> When retrieving information about an upgrade, there is a {{display_status}}
> field used for {{UpgradeGroup}}. Within an {{UpgradeGroup}} there are
> {{UpgradeItem}} instances which have {{task}} instances.
> The {{UpgradeItem}} doesn't have a {{display_status}} which can cause
> problems when the tasks failed and were skipped since we show the
> encompassing item as COMPLETED (green).
> This Jira is to track {{UpgradeItem/display_status}} being added to the API.
> {code}
> {
> "href":
> "http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4?fields=upgrade_items/UpgradeItem/display_status,upgrade_items/UpgradeItem/status",
> "UpgradeGroup": {
> "group_id": 4,
> "request_id": 23
> },
> "upgrade_items": [
> {
> "href":
> "http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4/upgrade_items/7",
> "UpgradeItem": {
> "cluster_name": "c1",
> "group_id": 4,
> "request_id": 23,
> "stage_id": 7,
> "display_status": "FAILED",
> "status": "COMPLETED"
> }
> },
> {
> "href":
> "http://localhost:8080/api/v1/clusters/c1/upgrades/23/upgrade_groups/4/upgrade_items/8",
> "UpgradeItem": {
> "cluster_name": "c1",
> "group_id": 4,
> "request_id": 23,
> "stage_id": 8,
> "display_status": "COMPLETED",
> "status": "COMPLETED"
> }
> }
> ]
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)