User data can be specified if an instance is spawned manually AFAIK. So
there is no harm in ignoring this 404 I guess.

On Sun, Apr 20, 2014 at 9:34 AM, Imesh Gunaratne <[email protected]> wrote:

> May be we do not need to fetch user-data in config.sh? Is there any reason
> for having it?
>

> Thanks
>
>
> On Sun, Apr 20, 2014 at 9:04 AM, Dinesh Bandara <[email protected]> wrote:
>
>>
>>
>>
>> On Sun, Apr 20, 2014 at 1:57 AM, chris snow <[email protected]> wrote:
>>
>>> When I run config . sh in my spawned instance, I receive 404 errors:
>>>
>>>
>>> root@ubuntu:~/bin# ./config . sh
>>> This script will install and configure puppet agent, do you want to
>>> continue [y/n]y
>>> --2014-04-19 20:12:49--  http://169.254.169.254/latest/user-data
>>> Connecting to 169.254.169.254:80... connected.
>>> HTTP request sent, awaiting response... 404 Not Found
>>>
>>> The problem is the line:
>>>
>>>  ${WGET} http://169.254.169.254/latest/user-data -O
>>> /tmp/payload/launch-params
>>>
>>> The config . sh script ignores the 404, is it ok for me to ignore the
>>> error as well?
>>>
>>> Yes. You can ignore this error. This error only occurs when we
>> configuring the cartridge since there is no user-data for the instance.
>>
>>
>>> If I shouldn't be ignoring the error, should I be passing user-data
>>> when I start my instance?  How should I do this?  What should I pass?
>>>
>>> No need to pass user-data in cartridge creation process.
>>
>>
>>> The wiki page [1] doesn't say anything about passing user data.  Should
>>> it?
>>>
>>> Many thanks,
>>>
>>> Chris
>>>
>>> ---
>>> [1]
>>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Creating+a+Cartridge+on+OpenStack
>>>
>>
>>
>>
>> --
>> *Dinesh Bandara*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PPMC Member, Apache Stratos
>



-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* <http://wso2.com/>*

Reply via email to