Hi Imesh,

Is that launch_params contains the PROVIDER parameter? I guess this comes
when the provider is not available in the payload. Seems like we are
showing wrong error message.

Thanks,
Gayan

On Fri, Dec 26, 2014 at 2:05 PM, Imesh Gunaratne <[email protected]> wrote:

> Thanks Gayan, yes it was not there in launch_params, I just fixed it and
> seeing the below error:
>
> [2014-12-26 08:31:17,311] INFO {cartridgeagentconfiguration.py:__init__} -
>  INTERNAL payload parameter is not found
> [2014-12-26 08:31:17,311] INFO {cartridgeagentconfiguration.py:__init__} -
> Cartridge agent configuration initialized
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/logging/__init__.py", line 850, in emit
>     msg = self.format(record)
>   File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
>     return fmt.format(record)
>   File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
>     record.message = record.getMessage()
>   File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
>     msg = msg % self.args
> TypeError: not all arguments converted during string formatting
>
> On Fri, Dec 26, 2014 at 1:49 PM, Gayan Gunarathne <[email protected]> wrote:
>
>> Hi Imesh,
>>
>> This is happen when CLUSTER_INSTANCE_ID not contain as the payload
>> parameter of the cartridge agent.I think we can first check the agent
>> payload and see CLUSTER_INSTANCE_ID is there in the agent payload.
>>
>> Thanks,
>> Gayan
>>
>> On Fri, Dec 26, 2014 at 1:39 PM, Imesh Gunaratne <[email protected]>
>> wrote:
>>
>>> 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 <module>
>>>     from modules.extensions import defaultextensionhandler
>>>   File
>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/extensions/defaultextensionhandler.py",
>>> line 22, in <module>
>>>     from ..util import extensionutils, cartridgeagentutils
>>>   File
>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/util/extensionutils.py",
>>> line 29, in <module>
>>>     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 <[email protected]>
>>> 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 <module>
>>>>     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
>>>
>>
>>
>>
>> --
>>
>> Gayan Gunarathne
>> Technical Lead
>> WSO2 Inc. (http://wso2.com)
>> email  : [email protected]  | mobile : +94 766819985
>>
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : [email protected]  | mobile : +94 766819985

Reply via email to