Re: Error while undeploying an app on Kubernetes

2015-11-11 Thread Akila Ravihansa Perera
I've fixed this and also added error logs if K8s cluster couldn't be removed. On Wed, Nov 11, 2015 at 3:25 PM, Gayan Gunarathne wrote: > > > On Wed, Nov 11, 2015 at 3:06 PM, Akila Ravihansa Perera < > raviha...@wso2.com> wrote: > >> Hi, >> >> I've created a JIRA to track this task [1]. It seems

Re: Error while undeploying an app on Kubernetes

2015-11-11 Thread Gayan Gunarathne
On Wed, Nov 11, 2015 at 3:06 PM, Akila Ravihansa Perera wrote: > Hi, > > I've created a JIRA to track this task [1]. It seems a fix has been done > in [2] to resolve this. But I'm not sure why we have to iterate through all > the properties in [3]. Why not just do; > > partition.getProperties().g

Re: Error while undeploying an app on Kubernetes

2015-11-11 Thread Akila Ravihansa Perera
Hi, I've created a JIRA to track this task [1]. It seems a fix has been done in [2] to resolve this. But I'm not sure why we have to iterate through all the properties in [3]. Why not just do; partition.getProperties().getProperty(KUBERNETES_CLUSTER) [1] https://issues.apache.org/jira/browse/STR

Re: Error while undeploying an app on Kubernetes

2015-11-09 Thread Imesh Gunaratne
Yes, it looks like the Kubernetes cluster has been removed before the above instance get terminated. Currently there is no validation to avoid this situation. We may need to fix this. Thanks On Mon, Nov 9, 2015 at 9:10 AM, Akila Ravihansa Perera wrote: > Hi Pubudu, > > Yes, I used the undeploy

Re: Error while undeploying an app on Kubernetes

2015-11-09 Thread Akila Ravihansa Perera
Hi Pubudu, Yes, I used the undeploy script. But it shouldn't cause this error right? Stratos should handle if the artifacts are in use. Even Stratos console UI calls the API just like curl command. Thanks. On Monday, 9 November 2015, Pubudu Gunatilaka wrote: > Hi Akila, > > Were you using the

Re: Error while undeploying an app on Kubernetes

2015-11-09 Thread Pubudu Gunatilaka
Hi Akila, Were you using the undeploy.sh script for undeploying? I came across this error while using undeploy.sh script to undeploy application server application. But this error is not there if we undeploy from the UI. I think this is because script just executes the curl commands to remove all

Re: Error while undeploying an app on Kubernetes

2015-11-08 Thread Akila Ravihansa Perera
Hi Gayan, Yes, the application that I tried has a cartridge group. Thanks. On Sun, Nov 8, 2015 at 8:46 PM, Gayan Gunarathne wrote: > Hi Akila, > > Seems we are getting null for KubernetesClusterContext. Seems > kubClusterIdToKubClusterContextMap map don't contain proper values for the > given

Re: Error while undeploying an app on Kubernetes

2015-11-08 Thread Gayan Gunarathne
Hi Akila, Seems we are getting null for KubernetesClusterContext. Seems kubClusterIdToKubClusterContextMap map don't contain proper values for the given kubernetes ClusterId. Is that happen when the application has a cartridge group? Thanks, Gayan On Sun, Nov 8, 2015 at 2:32 AM, Akila Ravihansa

Error while undeploying an app on Kubernetes

2015-11-07 Thread Akila Ravihansa Perera
Hi devs, I'm seeing the following error when undeploying an app on Kubernetes. Stratos is unable to delete the Kubernetes pod. Any thoughts? [2015-11-08 02:29:18,424] INFO {org.apache.stratos.autoscaler.client.AutoscalerCloudControllerClient} - Terminating instance via cloud controller: [member