[
https://issues.apache.org/jira/browse/AMBARI-8540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yurii Shylov updated AMBARI-8540:
---------------------------------
Description:
Implement the following API for pre-upgrade checks:
{code}
GET /api/v1/clusters/1/rolling_upgrades_check/
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrades_check/",
"items" : [
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrade_check/HOST_HEARTBEAT",
"UpgradeChecks" : {
"cluster_name" : "clus",
"id" : "HOST_HEARTBEAT"
}
},
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrade_check/SERVICES_MAINTENANCE_MODE",
"UpgradeChecks" : {
"cluster_name" : "clus",
"id" : "SERVICES_MAINTENANCE_MODE"
}
}
]
}
{code}
{code}
GET /api/v1/clusters/1/rolling_upgrades_check/?field=*
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrades_check/",
"items" : [
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrade_check/HOST_HEARTBEAT",
"UpgradeChecks" : {
"cluster_name" : "clus",
"id" : "HOST_HEARTBEAT",
"check" : "All hosts must be heartbeating with the server unless they
are in Maintenance Mode",
"check_type" : "HOST",
"failed_on" : ["c6401.ambari.apache.org"],
"reason" : "Some hosts are not heartbeating with the server",
"status" : "FAIL"
}
},
{
"href" :
"http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrade_check/SERVICES_MAINTENANCE_MODE",
"UpgradeChecks" : {
"cluster_name" : "clus",
"id" : "SERVICES_MAINTENANCE_MODE",
"check" : "All services must not in Maintenance Mode",
"check_type" : "SERVICE",
"failed_on" : "",
"reason" : "",
"status" : "PASS"
}
}
]
}
{code}
> Upgrade Execute: add an endpoint to do pre-requisite checks
> ------------------------------------------------------------
>
> Key: AMBARI-8540
> URL: https://issues.apache.org/jira/browse/AMBARI-8540
> Project: Ambari
> Issue Type: Sub-task
> Components: ambari-server
> Reporter: Nate Cole
> Assignee: Yurii Shylov
> Fix For: 2.0.0
>
>
> Implement the following API for pre-upgrade checks:
> {code}
> GET /api/v1/clusters/1/rolling_upgrades_check/
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrades_check/",
> "items" : [
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrade_check/HOST_HEARTBEAT",
> "UpgradeChecks" : {
> "cluster_name" : "clus",
> "id" : "HOST_HEARTBEAT"
> }
> },
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrade_check/SERVICES_MAINTENANCE_MODE",
> "UpgradeChecks" : {
> "cluster_name" : "clus",
> "id" : "SERVICES_MAINTENANCE_MODE"
> }
> }
> ]
> }
> {code}
> {code}
> GET /api/v1/clusters/1/rolling_upgrades_check/?field=*
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrades_check/",
> "items" : [
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrade_check/HOST_HEARTBEAT",
> "UpgradeChecks" : {
> "cluster_name" : "clus",
> "id" : "HOST_HEARTBEAT",
> "check" : "All hosts must be heartbeating with the server unless they
> are in Maintenance Mode",
> "check_type" : "HOST",
> "failed_on" : ["c6401.ambari.apache.org"],
> "reason" : "Some hosts are not heartbeating with the server",
> "status" : "FAIL"
> }
> },
> {
> "href" :
> "http://c6401.ambari.apache.org:8080/api/v1/clusters/clus/rolling_upgrade_check/SERVICES_MAINTENANCE_MODE",
> "UpgradeChecks" : {
> "cluster_name" : "clus",
> "id" : "SERVICES_MAINTENANCE_MODE",
> "check" : "All services must not in Maintenance Mode",
> "check_type" : "SERVICE",
> "failed_on" : "",
> "reason" : "",
> "status" : "PASS"
> }
> }
> ]
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)