Repository: stratos
Updated Branches:
  refs/heads/docker-integration 1ba7d7f8f -> c4ad65c30


throwing an exception when the Kub. cluster doesn't found.


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/c4ad65c3
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/c4ad65c3
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/c4ad65c3

Branch: refs/heads/docker-integration
Commit: c4ad65c30b187dc82ed03d011e48c64ce41035dc
Parents: 1ba7d7f
Author: Nirmal Fernando <[email protected]>
Authored: Mon Sep 15 18:41:55 2014 +0530
Committer: Nirmal Fernando <[email protected]>
Committed: Mon Sep 15 18:41:55 2014 +0530

----------------------------------------------------------------------
 .../cloud/controller/impl/CloudControllerServiceImpl.java        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/c4ad65c3/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
 
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
index 54aa5c9..2c5a339 100644
--- 
a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
+++ 
b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/impl/CloudControllerServiceImpl.java
@@ -1349,7 +1349,9 @@ public class CloudControllerServiceImpl implements 
CloudControllerService {
                        KubernetesClusterContext kubClusterContext = 
getKubernetesClusterContext(kubernetesClusterId, kubernetesMasterIp, 
kubernetesPortRange);
                        
                        if (kubClusterContext == null) {
-                               
+                               String msg = "Instance start-up failed. Cannot 
find a matching Kubernetes Cluster. " + memberContext;
+                               log.error(msg);
+                               throw new IllegalArgumentException(msg);
                        }
 
                        KubernetesApiClient client = 
kubClusterContext.getKubernetesApiClient();

Reply via email to