stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gayan Gunarathne <gay...@wso2.com>
Subject Re: Error while undeploying an app on Kubernetes
Date Sun, 08 Nov 2015 15:16:49 GMT
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 Perera <ravihansa@wso2.com>
wrote:

> 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]
> wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain64e12d35-4fb5-4958-9e61-5a1c9becf563
> [2015-11-08 02:29:18,431] ERROR
> {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas} -
>  Could not terminate container, kubernetes cluster context not found:
> [partition-id] partition-1 [member-id]
> wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain64e12d35-4fb5-4958-9e61-5a1c9becf563
> [2015-11-08 02:29:18,431] ERROR
> {org.apache.stratos.cloud.controller.services.impl.InstanceTerminator} -
>  Instance termination failed! MemberContext
> [applicationId=wso2as-530-application, cartridgeType=wso2as-530-manager,
> clusterId=wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain,
> memberId=wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain64e12d35-4fb5-4958-9e61-5a1c9becf563,
> instanceId=pod-1, partition=Partition [id=partition-1, description=null,
> isPublic=false, provider=kubernetes, properties=Properties
> [properties=[Property [name=cluster, value=kubernetes-cluster-1]]]],
> defaultPrivateIP=10.244.44.12, defaultPublicIP=172.17.8.102,
> allocatedIPs=null, publicIPs=[172.17.8.102], privateIPs=[10.244.44.12],
> initTime=1446929374561, lbClusterId=null,
> networkPartitionId=network-partition-kubernetes, kubernetesPodId=pod-1,
> kubernetesPodName=317e8be610a28c74fdf019800429597c,
> loadBalancingIPType=Public,
> instanceMetadata=org.apache.stratos.cloud.controller.domain.InstanceMetadata@2efac273,
> properties=Properties [properties=[Property [name=MIN_COUNT, value=1],
> Property [name=SCALING_DECISION_ID,
> value=wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain-30f0a2e0-993b-4ebc-9307-ce3cb0be1102]]]]
> java.lang.IllegalArgumentException: Could not terminate container,
> kubernetes cluster context not found: [partition-id] partition-1
> [member-id]
> wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain64e12d35-4fb5-4958-9e61-5a1c9becf563
> at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.handleNullObject(KubernetesIaas.java:929)
> at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.terminateContainer(KubernetesIaas.java:861)
> at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.terminateInstance(KubernetesIaas.java:139)
> at
> org.apache.stratos.cloud.controller.services.impl.InstanceTerminator.run(InstanceTerminator.java:56)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Exception in thread "pool-32-thread-73"
> org.apache.stratos.cloud.controller.exception.CloudControllerException:
> Instance termination failed! MemberContext
> [applicationId=wso2as-530-application, cartridgeType=wso2as-530-manager,
> clusterId=wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain,
> memberId=wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain64e12d35-4fb5-4958-9e61-5a1c9becf563,
> instanceId=pod-1, partition=Partition [id=partition-1, description=null,
> isPublic=false, provider=kubernetes, properties=Properties
> [properties=[Property [name=cluster, value=kubernetes-cluster-1]]]],
> defaultPrivateIP=10.244.44.12, defaultPublicIP=172.17.8.102,
> allocatedIPs=null, publicIPs=[172.17.8.102], privateIPs=[10.244.44.12],
> initTime=1446929374561, lbClusterId=null,
> networkPartitionId=network-partition-kubernetes, kubernetesPodId=pod-1,
> kubernetesPodName=317e8be610a28c74fdf019800429597c,
> loadBalancingIPType=Public,
> instanceMetadata=org.apache.stratos.cloud.controller.domain.InstanceMetadata@2efac273,
> properties=Properties [properties=[Property [name=MIN_COUNT, value=1],
> Property [name=SCALING_DECISION_ID,
> value=wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain-30f0a2e0-993b-4ebc-9307-ce3cb0be1102]]]]
> at
> org.apache.stratos.cloud.controller.services.impl.InstanceTerminator.run(InstanceTerminator.java:63)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.IllegalArgumentException: Could not terminate
> container, kubernetes cluster context not found: [partition-id] partition-1
> [member-id]
> wso2as-530-application.wso2as-530-manager.wso2as-530-manager.domain64e12d35-4fb5-4958-9e61-5a1c9becf563
> at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.handleNullObject(KubernetesIaas.java:929)
> at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.terminateContainer(KubernetesIaas.java:861)
> at
> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.terminateInstance(KubernetesIaas.java:139)
> at
> org.apache.stratos.cloud.controller.services.impl.InstanceTerminator.run(InstanceTerminator.java:56)
> ... 3 more
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gayang@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>

Mime
View raw message