stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Isuru Haththotuwa <isu...@wso2.com>
Subject Re: cartridge config . sh -> http://169.254.169.254/latest/user-data : 404 Not Found
Date Sun, 20 Apr 2014 15:19:52 GMT
On Sun, Apr 20, 2014 at 12:26 PM, chris snow <chsnow123@gmail.com> wrote:

> Thanks guys.  If this isn't an error, should we hide this output from the
> user?
>
IMHO we should not hide it. Maybe we can make display a meaningful warning
message and continue. WDYT?

>
> On Sun, Apr 20, 2014 at 5:47 AM, Isuru Haththotuwa <isuruh@wso2.com>
> wrote:
> > 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 <imesh@apache.org>
> 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 <dineshb@wso2.com>
> wrote:
> >>>
> >>>
> >>>
> >>>
> >>> On Sun, Apr 20, 2014 at 1:57 AM, chris snow <chsnow123@gmail.com>
> 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
> >
> >
>
>
>
> --
> Check out my professional profile and connect with me on LinkedIn.
> http://lnkd.in/cw5k69
>



-- 
Thanks and Regards,

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

Mime
View raw message