Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C345718E4B for ; Fri, 5 Jun 2015 19:12:06 +0000 (UTC) Received: (qmail 61030 invoked by uid 500); 5 Jun 2015 19:12:06 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 60977 invoked by uid 500); 5 Jun 2015 19:12:06 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 60966 invoked by uid 99); 5 Jun 2015 19:12:06 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2015 19:12:06 +0000 Received: from mail-yh0-f42.google.com (mail-yh0-f42.google.com [209.85.213.42]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 47CCC1A049A for ; Fri, 5 Jun 2015 19:12:06 +0000 (UTC) Received: by yhpn97 with SMTP id n97so23076044yhp.0 for ; Fri, 05 Jun 2015 12:12:05 -0700 (PDT) X-Received: by 10.170.43.16 with SMTP id 16mr5053827ykl.119.1433531525520; Fri, 05 Jun 2015 12:12:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.232.68 with HTTP; Fri, 5 Jun 2015 12:11:45 -0700 (PDT) In-Reply-To: References: From: Imesh Gunaratne Date: Sat, 6 Jun 2015 00:41:45 +0530 Message-ID: Subject: Re: could not start instance To: dev Content-Type: multipart/alternative; boundary=001a113904465a65000517ca11c1 --001a113904465a65000517ca11c1 Content-Type: text/plain; charset=UTF-8 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 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 > 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 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 --001a113904465a65000517ca11c1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Jane,

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

I= f it is working, SSH into all the minions and verify whether the Docker ima= ge you are trying with is imported.

@Raj: We d= o not need the Docker image in the master node. In this setup we only run D= ocker in minions.

Thanks

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

yeah the = docker image name is same as the docker image name in cartridge definition.=

image name is : =C2=A0=C2=A0 stratos/php:4.1.0-beta


On Thu, Jun 4, 2015 at 12:21 PM= , Rajkumar Rajaratnam <rajkumarr@wso2.com> wrote:
Hi Jane,

<= div class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif;font-siz= e:small">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?
<= br>
Thanks.
<= div>
On Thu, Jun 4, 2015 at 11:47 AM, Jane Ma= riathas <jane@wso2.com> wrote:
hi,

i followed the steps in = https://gist.github.com/imesh/b8f81fac8de39183a504 and tried. and i got= the error saying


=C2=A0ERROR
=C2=A0{org.ap= ache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas} -=C2=A0 Cou= ld not start container: [application] single-cartridge-app [cartridge] php = [member] single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dc= cf80cc84
java.lang.RuntimeException: Pod status did not change to runnin= g within 60 sec: [application] single-cartridge-app [cartridge] php [member= ] single-cartridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc8= 4 [pod] pod-1
=C2=A0=C2=A0=C2=A0 at org.apache.stratos.cloud.controller.= iaases.kubernetes.KubernetesIaas.waitForPodToBeActivated(KubernetesIaas.jav= a:342)
=C2=A0=C2=A0=C2=A0 at org.apache.stratos.cloud.controller.iaases.= kubernetes.KubernetesIaas.startContainer(KubernetesIaas.java:227)
=C2=A0= =C2=A0=C2=A0 at org.apache.stratos.cloud.controller.iaases.kubernetes.Kuber= netesIaas.startInstance(KubernetesIaas.java:126)
=C2=A0=C2=A0=C2=A0 at o= rg.apache.stratos.cloud.controller.services.impl.InstanceCreator.startInsta= nce(InstanceCreator.java:109)
=C2=A0=C2=A0=C2=A0 at org.apache.stratos.c= loud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:68)<= br>=C2=A0=C2=A0=C2=A0 at java.util.concurrent.ThreadPoolExecutor.runWorker(= ThreadPoolExecutor.java:1145)
=C2=A0=C2=A0=C2=A0 at java.util.concurrent= .ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
=C2=A0=C2=A0= =C2=A0 at java.lang.Thread.run(Thread.java:745)
=C2=A0ERROR
{= org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -=C2=A0 = Could not start instance: [cartridge-type] php [cluster-id] single-cartridg= e-app.my-php.php.domain
java.lang.RuntimeException: Could not start cont= ainer: [application] single-cartridge-app [cartridge] php [member] single-c= artridge-app.my-php.php.domain9956349d-1f34-40c3-bb27-e7dccf80cc84
=C2= =A0=C2=A0=C2=A0 at org.apache.stratos.cloud.controller.iaases.kubernetes.Ku= bernetesIaas.startContainer(KubernetesIaas.java:243)
=C2=A0=C2=A0=C2=A0 = at org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.sta= rtInstance(KubernetesIaas.java:126)
=C2=A0=C2=A0=C2=A0 at org.apache.str= atos.cloud.controller.services.impl.InstanceCreator.startInstance(InstanceC= reator.java:109)
=C2=A0=C2=A0=C2=A0 at org.apache.stratos.cloud.controll= er.services.impl.InstanceCreator.run(InstanceCreator.java:68)
=C2=A0=C2= =A0=C2=A0 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1145)
=C2=A0=C2=A0=C2=A0 at java.util.concurrent.ThreadPoolE= xecutor$Worker.run(ThreadPoolExecutor.java:615)
=C2=A0=C2=A0=C2=A0 at ja= va.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeExceptio= n: Pod status did not change to running within 60 sec: [application] single= -cartridge-app [cartridge] php [member] single-cartridge-app.my-php.php.dom= ain9956349d-1f34-40c3-bb27-e7dccf80cc84 [pod] pod-1
=C2=A0=C2=A0=C2=A0 a= t org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.wait= ForPodToBeActivated(KubernetesIaas.java:342)
=C2=A0=C2=A0=C2=A0 at org.a= pache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas.startContai= ner(KubernetesIaas.java:227)


Any suggestion to fix th= is error?

Thanks.





--
Rajkumar Rajaratnam
Committer & PMC Me= mber, Apache Stratos
Software Engineer, WSO2
=




--
=
Imesh= Gunaratne

Senior Technical Lead, WSO2=
Committer & PMC Member, Apache Stratos
--001a113904465a65000517ca11c1--