Hi Lahiru,

This problem could occur due to many reasons, first we need to verify
whether your Kubernetes cluster is working properly by running the
Kubernetes live test.

If it has no issues then please check whether you have imported the Docker
image that you are trying to use into all the minion nodes. Can you please
verify these and send information.

@Mari: Information provided in the following page is not correct:
https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Install+Stratos+with+Kubernetes+in+a+Testing+Environment

We do not need to import Docker images to Master node. Master node does not
run Docker. Importing Docker images to minions can be done in two ways;
docker pull [docker-image-id] (to pull from docker hub), docker load <
[docker-image-tar-file].

Thanks

On Fri, Jun 5, 2015 at 11:53 AM, Rajkumar Rajaratnam <[email protected]>
wrote:

> Hi,
>
> I am not sure how things are working now. Earlier we used to pull docker
> images all kub hosts including master and minions. But now I see from the
> doc that we need to pull the image only to master. So how the pod will be
> created in minions?
>
> Thanks.
>
> On Fri, Jun 5, 2015 at 11:49 AM, Udara Liyanage <[email protected]> wrote:
>
>> Hi Lahiru,
>>
>> Seems the same issue discussed in "could not start instance"
>>
>> On Fri, Jun 5, 2015 at 10:32 AM, Lahiru Sandaruwan <[email protected]>
>> wrote:
>>
>>> Hi devs,
>>>
>>> I tried single cartridge sample with $subject. I'm using the git repo
>>> [1]. It seems pods do not become active.([2])
>>>
>>> Thanks.
>>>
>>> [1] https://github.com/imesh/kubernetes-vagrant-setup
>>> [2]
>>> java.lang.RuntimeException: Pod status did not change to running within
>>> 60 sec: [application] single-cartridge-app [cartridge] php [member]
>>> single-cartridge-app.my-php.php.domaineb6cd608-b58a-4799-afe5-5a2e8cd91a99
>>> [pod] pod-1
>>> at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>> at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>> at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>> at
>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>> at
>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>> 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)
>>> TID: [0] [STRATOS] [2015-06-05 10:26:18,147] ERROR
>>> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
>>>  Could not start instance: [cartridge-type] php [cluster-id]
>>> single-cartridge-app.my-php.php.domain
>>> java.lang.RuntimeException: Could not start container: [application]
>>> single-cartridge-app [cartridge] php [member]
>>> single-cartridge-app.my-php.php.domaineb6cd608-b58a-4799-afe5-5a2e8cd91a99
>>> at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:243)
>>> at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startInstance(KubernetesIaas.java:126)
>>> at
>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceCreator.java:109)
>>> at
>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)
>>> 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.RuntimeException: Pod status did not change to
>>> running within 60 sec: [application] single-cartridge-app [cartridge] php
>>> [member]
>>> single-cartridge-app.my-php.php.domaineb6cd608-b58a-4799-afe5-5a2e8cd91a99
>>> [pod] pod-1
>>> at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.java:342)
>>> at
>>> org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
>>> ... 6 more
>>>
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> phone: +94773325954
>>> email: [email protected] blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>



-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to