Hi Jane,

You could first try to run the Kubernetes live test against the Kubernetes
cluster you have setup and see whether its working properly. Go to
Kubernetes API client folder in components folder and run "mvn test -Plive".

If it is working, SSH into all the minions and verify whether the Docker
image you are trying with is imported.

@Raj: We do not need the Docker image in the master node. In this setup we
only run Docker in minions.

Thanks

On Thu, Jun 4, 2015 at 1:25 PM, Jane Mariathas <j...@wso2.com> wrote:

> hi Rajkumar
>
> yeah the docker image name is same as the docker image name in cartridge
> definition.
>
> image name is :   * stratos/php:4.1.0-beta*
>
>
>
> On Thu, Jun 4, 2015 at 12:21 PM, Rajkumar Rajaratnam <rajkum...@wso2.com>
> wrote:
>
>> Hi Jane,
>>
>> Log says the pod didn't become to RUNNING state.
>>
>> - did you pull the docker image to the kub master?
>> - did you use the same docker image name in cartridge definition?
>>
>> Thanks.
>>
>> On Thu, Jun 4, 2015 at 11:47 AM, Jane Mariathas <j...@wso2.com> wrote:
>>
>>> hi,
>>>
>>> i followed the steps in
>>> https://gist.github.com/imesh/b8f81fac8de39183a504 and tried. and i got
>>> the error saying
>>>
>>>
>>>
>>> *ERROR* 
>>> {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas}
>>> -  Could not start container: [application] single-cartridge-app
>>> [cartridge] php [member]
>>> single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>> 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.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>> [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)
>>>  *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.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>>     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.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
>>> [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)
>>>
>>>
>>> Any suggestion to fix this error?
>>>
>>> Thanks.
>>>
>>>
>>>
>>
>>
>> --
>> 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