aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Tokle <mortent@verizonmedia.com>2020-05-18 11:45:51 +0200
committerMorten Tokle <mortent@verizonmedia.com>2020-05-18 11:45:51 +0200
commit31adb5d8888abe44fba6a4b51aab1a97248b877f (patch)
tree32aaf4c81c303e0484a6b1f689ddb6099230a6ac
parentefd71d02a2d65c12022b62011ace1ceca7f6ef8a (diff)
Fail deployment when role creating fails
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/ApplicationController.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/ApplicationController.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/ApplicationController.java
index 6a69fae3693..3592b37b7fe 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/ApplicationController.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/ApplicationController.java
@@ -340,6 +340,7 @@ public class ApplicationController {
applicationRoles = controller.serviceRegistry().applicationRoleService().createApplicationRoles(instance.id());
} catch (Exception e) {
log.log(Level.SEVERE, "Exception creating application roles for application: " + instance.id(), e);
+ throw new RuntimeException("Unable to provision iam roles for application");
}
}
} // Release application lock while doing the deployment, which is a lengthy task.