Re: vcloud: metadata injection via ssh vs via guest customisation script

2014-11-11 Thread Udara Liyanage
Hi, Great, please update with your finding then we can patch Stratos. Touched, not typed. Erroneous words are a feature, not a typo. On Nov 12, 2014 4:47 AM, "Michiel Blokzijl (mblokzij)" wrote: > Hi, > > Your suggested change seems to work. > > I now get the following code in the guest custo

Re: vcloud: metadata injection via ssh vs via guest customisation script

2014-11-11 Thread Michiel Blokzijl (mblokzij)
Hi, Your suggested change seems to work. I now get the following code in the guest customisation script, when I look it up in the vcloud GUI: #!/bin/sh mkdir -p /tmp/payload echo “SERVICE_NAME=foo,HOST_NAME=<...snip...>,MIN_COUNT=1" > /tmp/payload/launch-params /root/bin/init-vcloud.sh > /tmp/

Re: vcloud: metadata injection via ssh vs via guest customisation script

2014-11-10 Thread Michiel Blokzijl (mblokzij)
Sure, I’ll look into it. I’ll let you know how it goes. Thanks for all the help! Michiel On 10 Nov 2014, at 07:02, Udara Liyanage wrote: > Hi Michel, > > Could you try with the proposed change and try again. > > On Mon, Nov 10, 2014 at 12:22 PM, Isuru Perera wrote: > Hi Udara, > > As you m

Re: vcloud: metadata injection via ssh vs via guest customisation script

2014-11-09 Thread Udara Liyanage
Hi Michel, Could you try with the proposed change and try again. On Mon, Nov 10, 2014 at 12:22 PM, Isuru Perera wrote: > Hi Udara, > > As you mentioned, we should be using the API for the customization script. > > I missed this API when implementing the support for passing payload. > > Shall we

Re: vcloud: metadata injection via ssh vs via guest customisation script

2014-11-09 Thread Isuru Perera
Hi Udara, As you mentioned, we should be using the API for the customization script. I missed this API when implementing the support for passing payload. Shall we change the code and test? Michiel, As I know, from the beginning, we have been passing the payload from a script. As Udara found out

Re: vcloud: metadata injection via ssh vs via guest customisation script

2014-11-09 Thread Udara Liyanage
Hi Isuru, Nirmal, I have have doubt whether we are really using the customization script. Currently code call the runScript() as below. template.getOptions().runScript(customizationScript); Aren't we executing as a script as Michel mentioned ? Isn't below is the correct way of doing? templ

Re: vcloud: metadata injection via ssh vs via guest customisation script

2014-11-09 Thread Udara Liyanage
Hi, Yes metadata is passed via guest customization script from Stratos side. However Jclouds execute the customization script using ssh. Please refer to setDynamicPayload() of [1] for implementation [1] https://github.com/apache/stratos/blob/master/components/org.apache.stratos.cloud.controller/

vcloud: metadata injection via ssh vs via guest customisation script

2014-11-09 Thread Michiel Blokzijl (mblokzij)
Hi people, First of all, I’m not sure if this is a Stratos or a jclouds issue, I haven’t been able to nail down the area of the code to be absolutely sure. It looks like on vCloud, Stratos/jclouds “injects" the metadata by ssh-ing into freshly spun up cartridges, using the root username and the