content of /tmp/payload/launch-params by using http://metadata.google.internal/computeMetadata/v1/instance/attributes/ <http://metadata.google.internal/computeMetadata/v1/instance/attributes/stratos_usermetadata> as the meta-data URL:
jclouds-delete-boot-disk jclouds-group jclouds-image sshKeys WDYT? On Mon, Jun 1, 2015 at 5:20 PM, Asanka Sanjaya Herath <angal...@gmail.com> wrote: > Hi All, > > I'm trying to find a relevant metadata URL for GCE instances. I found > this[1] but it seems like API structure has not changed. Currently in the > config.sh file we are using this[2] as the metadata URL. I think we should > remove the last field in the meta data URL(stratos_usermetadata). After > removing the last field I got following output in the launch-params file. > > > [1].https://cloud.google.com/compute/docs/metadata#default > [2]. > http://metadata.google.internal/computeMetadata/v1/instance/attributes/stratos_usermetadata > > On Mon, Jun 1, 2015 at 10:44 AM, Asanka Sanjaya Herath <angal...@gmail.com > > wrote: > >> Hi Isuru and Gayan, >> >> Thanks for the help. So It seems like I need to change the metadata URL >> given in[1] to a valid one. >> >> [1]. >> https://github.com/apache/stratos/blob/master/tools/config-scripts/gce/config.sh >> >> On Mon, Jun 1, 2015 at 10:36 AM, Isuru Haththotuwa <isu...@apache.org> >> wrote: >> >>> This is a 404 error, indicating that the meta data was not found.The >>> final line seems to indicate the reason; the queried URL for meta data is >>> wrong. >>> >>> On Mon, Jun 1, 2015 at 3:59 PM, Asanka Sanjaya Herath < >>> angal...@gmail.com> wrote: >>> >>>> Hi Gayan, >>>> >>>> This is the content of lunch-params file(Please see attachment). >>>> >>>> >>>> On Mon, Jun 1, 2015 at 10:19 AM, Gayan Gunarathne <gay...@wso2.com> >>>> wrote: >>>> >>>>> IOError: [Errno 2] No such file or directory: >>>>>>> '/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' >>>>>>> >>>>>> >>>>> Also as per this error Instance don't have the payload/launch-params >>>>> file.Seems lauch-params file is not copied properly.Can you find the >>>>> lauch-params at /tmp/payload? >>>>> >>>>> Thanks, >>>>> Gayan >>>>> >>>>> >>>>> On Mon, Jun 1, 2015 at 3:39 PM, Asanka Sanjaya Herath < >>>>> angal...@gmail.com> wrote: >>>>> >>>>>> Thanks Gayan. I'll check it and update the thread. >>>>>> >>>>>> On Mon, Jun 1, 2015 at 10:00 AM, Gayan Gunarathne <gay...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> Hi Asanka, >>>>>>> >>>>>>> On Mon, Jun 1, 2015 at 3:17 PM, Asanka Sanjaya Herath < >>>>>>> angal...@gmail.com> wrote: >>>>>>> >>>>>>>> Hi Lahiru, >>>>>>>> >>>>>>>> When I run "python agent.py" command I'm getting following error. >>>>>>>> >>>>>>>> [2015-06-01 09:44:44,699] DEBUG {config.py:__read_conf_file} - >>>>>>>> Config file path : >>>>>>>> '/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf' >>>>>>>> [2015-06-01 09:44:44,700] DEBUG {config.py:read_property} - Reading >>>>>>>> property: param.file.path = >>>>>>>> /root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params >>>>>>>> [2015-06-01 09:44:44,700] DEBUG {config.py:__read_parameter_file} - >>>>>>>> Param file path : >>>>>>>> '/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' >>>>>>>> [2015-06-01 09:44:44,701] ERROR {config.py:__read_parameter_file} - >>>>>>>> Could not read launch parameter file: [Errno 2] No such file or >>>>>>>> directory: >>>>>>>> '/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' >>>>>>>> Traceback (most recent call last): >>>>>>>> File >>>>>>>> "/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/config.py", >>>>>>>> line 298, in __read_parameter_file >>>>>>>> metadata_file = open(param_file) >>>>>>>> IOError: [Errno 2] No such file or directory: >>>>>>>> '/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' >>>>>>>> Traceback (most recent call last): >>>>>>>> File "agent.py", line 316, in <module> >>>>>>>> main() >>>>>>>> File "agent.py", line 304, in main >>>>>>>> cartridge_agent = CartridgeAgent() >>>>>>>> File "agent.py", line 45, in __init__ >>>>>>>> self.__config = CartridgeAgentConfiguration() >>>>>>>> File >>>>>>>> "/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/config.py", >>>>>>>> line 355, in __init__ >>>>>>>> CartridgeAgentConfiguration.__instance = >>>>>>>> CartridgeAgentConfiguration.__CartridgeAgentConfiguration() >>>>>>>> File >>>>>>>> "/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/config.py", >>>>>>>> line 244, in __init__ >>>>>>>> raise RuntimeError(ex) >>>>>>>> RuntimeError: Cannot find the value of required parameter: >>>>>>>> 'APPLICATION_ID' >>>>>>>> >>>>>>> >>>>>>> Seems like launch-params don't have the "APPLICATION_ID".Can you >>>>>>> please check whether Stratos is passing the APPLICATION_ID to the >>>>>>> payload? >>>>>>> >>>>>>> Thanks, >>>>>>> Gayan >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Jun 1, 2015 at 8:11 AM, Lahiru Sandaruwan <lahi...@wso2.com >>>>>>>> > wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Jun 1, 2015 at 12:51 PM, Asanka Sanjaya Herath < >>>>>>>>> angal...@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Hi all, >>>>>>>>>> >>>>>>>>>> Here I have listed the work I have done during last week. >>>>>>>>>> >>>>>>>>>> 1. Completed the design diagram of the extension. >>>>>>>>>> 2. Tested GCE LB API using a sample program. >>>>>>>>>> 3. Configured a php cartridge on GCE. But still the cartridge >>>>>>>>>> agent is not starting properly. >>>>>>>>>> >>>>>>>>> >>>>>>>>> What is the error you get? >>>>>>>>> >>>>>>>>>> >>>>>>>>>> I'm using this[1] fork for commit my code. >>>>>>>>>> >>>>>>>>>> [1]. https://github.com/asankasanjaya/stratos >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Thanks, >>>>>>>>>> Regards, >>>>>>>>>> ASH >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> -- >>>>>>>>> Lahiru Sandaruwan >>>>>>>>> Committer and PMC member, Apache Stratos, >>>>>>>>> Senior Software Engineer, >>>>>>>>> WSO2 Inc., http://wso2.com >>>>>>>>> lean.enterprise.middleware >>>>>>>>> >>>>>>>>> phone: +94773325954 >>>>>>>>> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ >>>>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Thanks, >>>>>>>> Regards, >>>>>>>> ASH >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Gayan Gunarathne >>>>>>> Technical Lead, WSO2 Inc. (http://wso2.com) >>>>>>> Committer & PMC Member, Apache Stratos >>>>>>> email : gay...@wso2.com | mobile : +94 766819985 >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Thanks, >>>>>> Regards, >>>>>> ASH >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Gayan Gunarathne >>>>> Technical Lead, WSO2 Inc. (http://wso2.com) >>>>> Committer & PMC Member, Apache Stratos >>>>> email : gay...@wso2.com | mobile : +94 766819985 >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Thanks, >>>> Regards, >>>> ASH >>>> >>>> -- >>>> Thanks and Regards, >>>> >>>> Isuru H. >>>> +94 716 358 048* <http://wso2.com/>* >>>> >>>> >>>> * <http://wso2.com/>* >>>> >>>> >>>> >> >> >> -- >> Thanks, >> Regards, >> ASH >> > > > > -- > Thanks, > Regards, > ASH > -- Thanks, Regards, ASH