ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-8540) Upgrade Execute: add an endpoint to do pre-requisite checks
Date Mon, 15 Dec 2014 20:37:13 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-8540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247189#comment-14247189
] 

Hudson commented on AMBARI-8540:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #1215 (See [https://builds.apache.org/job/Ambari-trunk-Commit/1215/])
AMBARI-8540. Upgrade Execute: add an endpoint to do pre-requisite checks (Yurii Shylov via
ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=190176e6174b7d610d1a9f26cda91662ad8171ff)
* ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java
* ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/UpgradeCheckStatus.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/PreUpgradeCheckResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/PreUpgradeCheckService.java
* ambari-server/src/test/java/org/apache/ambari/server/api/services/PreUpgradeCheckServiceTest.java
* ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/UpgradeCheck.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImpl.java
* ambari-server/src/test/java/org/apache/ambari/server/api/services/ClusterServiceTest.java
* ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/UpgradeCheckType.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/DefaultProviderModule.java
* ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeChecks.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java


> 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)

Mime
View raw message