-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/49691/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez, Nahappan Somasundaram, and 
Sumit Mohanty.


Bugs: AMBARI-17599
    https://issues.apache.org/jira/browse/AMBARI-17599


Repository: ambari


Description
-------

Currently if a cluster deployment is scheduled and any install/start task 
fails, all other queued tasks are cancelled. Ideally it should be possible for 
user to pass a flag to skip failures for best effort deployment instead of 
failing fast on error.

While creating a blueprint json, user can provide deployment settings as 
follows :

"settings" : [
  {
  "deployment_settings" : [{
      "skip_failure" : "true"
   }]
  }
]


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
 ba93d25 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostComponentResourceProvider.java
 9d8389a 
  
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java
 46fc652 
  
ambari-server/src/main/java/org/apache/ambari/server/stageplanner/RoleGraph.java
 c6279bc 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/AmbariContext.java
 849c696 
  ambari-server/src/main/java/org/apache/ambari/server/topology/Blueprint.java 
0edbaea 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/BlueprintImpl.java
 aeb9a2d 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/ClusterTopology.java
 3cdca4d 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/ClusterTopologyImpl.java
 cee9406 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/HostRequest.java 
00ecb98 
  
ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java
 7ec6088 
  ambari-server/src/main/java/org/apache/ambari/server/topology/Setting.java 
c03d833 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RequestResourceProviderTest.java
 4444714 
  
ambari-server/src/test/java/org/apache/ambari/server/topology/BlueprintImplTest.java
 0b06eb8 
  
ambari-server/src/test/java/org/apache/ambari/server/topology/ClusterInstallWithoutStartTest.java
 0382b03 
  
ambari-server/src/test/java/org/apache/ambari/server/topology/LogicalRequestTest.java
 e979173 
  
ambari-server/src/test/java/org/apache/ambari/server/topology/SettingTest.java 
5615d12 

Diff: https://reviews.apache.org/r/49691/diff/


Testing
-------

Tested manually by creating a cluster with blueprint (attached). It has 
deployment_settings as follows
"settings" : [
  {
  "deployment_settings" : [{
      "skip_failure" : "true"
   }]
  }
]


File Attachments
----------------

blueprint.json
  
https://reviews.apache.org/media/uploaded/files/2016/07/07/03db77b8-7fba-48c3-b34b-5dcb75e217b7__blueprint.json


Thanks,

Ajit Kumar

Reply via email to