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 1CCC510E9F for ; Fri, 26 Dec 2014 08:09:42 +0000 (UTC) Received: (qmail 26026 invoked by uid 500); 26 Dec 2014 08:09:42 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 25970 invoked by uid 500); 26 Dec 2014 08:09:42 -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 25960 invoked by uid 99); 26 Dec 2014 08:09:41 -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, 26 Dec 2014 08:09:41 +0000 Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id A79A21A0155 for ; Fri, 26 Dec 2014 08:09:37 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id a141so21241705oig.8 for ; Fri, 26 Dec 2014 00:09:29 -0800 (PST) X-Received: by 10.182.28.65 with SMTP id z1mr1690269obg.42.1419581369247; Fri, 26 Dec 2014 00:09:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.171.147 with HTTP; Fri, 26 Dec 2014 00:09:09 -0800 (PST) In-Reply-To: References: From: Imesh Gunaratne Date: Fri, 26 Dec 2014 13:39:09 +0530 Message-ID: Subject: Re: [Discuss] Kubernetes workflow is now working! To: dev Content-Type: multipart/alternative; boundary=089e015388fe3e70ca050b1a0b1a --089e015388fe3e70ca050b1a0b1a Content-Type: text/plain; charset=UTF-8 I fixed the above issue in cartridge agent and re-created the base image, now I'm seeing another error: root@e82ebdc6-8cd5-11e4-85d5-080027f35f1b:~# cat /tmp/agent.screen.log Traceback (most recent call last): File "agent.py", line 32, in from modules.extensions import defaultextensionhandler File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/extensions/defaultextensionhandler.py", line 22, in from ..util import extensionutils, cartridgeagentutils File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/util/extensionutils.py", line 29, in cartridge_agent_config = cartridgeagentconfiguration.CartridgeAgentConfiguration() File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/config/cartridgeagentconfiguration.py", line 349, in __init__ CartridgeAgentConfiguration.instance = CartridgeAgentConfiguration.__CartridgeAgentConfiguration() File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/config/cartridgeagentconfiguration.py", line 226, in __init__ raise RuntimeError(ex) RuntimeError: Cannot find the value of required parameter: 'CLUSTER_INSTANCE_ID' I can see CLUSTER_INSTANCE_ID being passed to the container, may be there is something wrong in the agent code, will investigate. Thanks On Fri, Dec 26, 2014 at 2:40 AM, Imesh Gunaratne wrote: > Hi Devs, > > I fixed some of the issues in Kubernetes Iaas and tested the Kubernetes > workflow with sample php docker image. Now replication controllers, > services and containers get created without a problem. We can also access > the php server in the container. > > However I noticed that agent does not send the instance started event to > CEP. Following error was found in agent screen log: > > Traceback (most recent call last): > File "agent.py", line 21, in > from cartridgeagent.cartridgeagent.modules import eventsubscriber > ImportError: No module named cartridgeagent.cartridgeagent.modules > > May be agent was not updated in the php docker image. Will check this > tomorrow. > > Thanks > > > -- > Imesh Gunaratne > > Technical Lead, WSO2 > Committer & PMC Member, Apache Stratos > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos --089e015388fe3e70ca050b1a0b1a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I fixed the above issue in cartridge agent and re-created = the base image, now I'm seeing another error:=C2=A0

=
root@e82ebdc6-8cd5-11e4-85d5-080027f35f1b:~# cat /tmp/agent.screen.log=
Traceback (most recent call last):
=C2=A0 File "a= gent.py", line 32, in <module>
=C2=A0 =C2=A0 from modu= les.extensions import defaultextensionhandler
=C2=A0 File "/= mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/extensions= /defaultextensionhandler.py", line 22, in <module>
=C2= =A0 =C2=A0 from ..util import extensionutils, cartridgeagentutils
=C2=A0 File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHO= T/modules/util/extensionutils.py", line 29, in <module>
=C2=A0 =C2=A0 cartridge_agent_config =3D cartridgeagentconfiguration.Cart= ridgeAgentConfiguration()
=C2=A0 File "/mnt/apache-stratos-p= ython-cartridge-agent-4.1.0-SNAPSHOT/modules/config/cartridgeagentconfigura= tion.py", line 349, in __init__
=C2=A0 =C2=A0 CartridgeAgent= Configuration.instance =3D CartridgeAgentConfiguration.__CartridgeAgentConf= iguration()
=C2=A0 File "/mnt/apache-stratos-python-cartridg= e-agent-4.1.0-SNAPSHOT/modules/config/cartridgeagentconfiguration.py",= line 226, in __init__
=C2=A0 =C2=A0 raise RuntimeError(ex)
=
RuntimeError: Cannot find the value of required parameter: 'CLUSTE= R_INSTANCE_ID'

I can see CLUSTER_INSTANC= E_ID being passed to the container, may be there is something wrong in the = agent code, will investigate.

Thanks

On Fri, Dec 26, 201= 4 at 2:40 AM, Imesh Gunaratne <imesh@apache.org> wrote:
Hi Devs,

I= fixed some of the issues in Kubernetes Iaas and tested the Kubernetes work= flow with sample php docker image. Now replication controllers, services an= d containers get created without a problem. We can also access the php serv= er in the container.

However I noticed that agent = does not send the instance started event to CEP. Following error was found = in agent screen log:

Traceback (most recent c= all last):
=C2=A0 File "agent.py", line 21, in <modu= le>
=C2=A0 =C2=A0 from cartridgeagent.cartridgeagent.modules i= mport eventsubscriber
ImportError: No module named cartridgeagent= .cartridgeagent.modules

May be agent was not= updated in the php docker image. Will check this tomorrow.

<= /div>
Thanks


--
Imesh Gunaratne
Technical Lead, WSO2
Committer &= PMC Member, Apache Stratos



--
Imesh Gunaratne

Te= chnical Lead, WSO2
Committer & PMC Member, Apach= e Stratos
--089e015388fe3e70ca050b1a0b1a--