I used base64 in plain text, no need to escape it for URL, the data is sent to the server via a post request.
On Mon, Feb 29, 2016 at 2:20 PM, Nux! <n...@li.nux.ro> wrote: > David, > > Are you sure you need to pass the base64 encoded version in the GUI? For > some reason I thought the GUI accept just plain text scripts. > Also, what error are you getting? Be advised the mailing list strips > attachment from messages. > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > > ----- Original Message ----- > > From: "Yacubovich, David" <dyacubov...@collegeboard.org> > > To: users@cloudstack.apache.org > > Sent: Monday, 29 February, 2016 15:38:55 > > Subject: RE: User data is not base64 encoded > > > I did try to add the '==' to the end of the base64 string and still get > the same > > error. I am going to install cloudmonkey and try to pass the userdata > from cli. > > I would appreciate if anyone has more ideas about how to resolve gui > problem > > with userdata. > > > > Thanks, > > David > > > > -----Original Message----- > > From: Rafael Weingärtner [mailto:rafaelweingart...@gmail.com] > > Sent: Sunday, February 28, 2016 8:43 AM > > To: users@cloudstack.apache.org > > Subject: Re: User data is not base64 encoded > > > > I had the same problem last week. > > It turns out that the code is considering anything that ends with "==" > as base > > 64 encoded. That can be a bit picky because sometimes you can encode > something > > in base 64 and not get the "==" at the end, but still you will have to > add it > > to use that functionality. > > > > > > On Sun, Feb 28, 2016 at 12:13 AM, Yacubovich, David < > > dyacubov...@collegeboard.org> wrote: > > > >> HI Simon, > >> No, I didn't try to use CloudMonkey yet, just trying to see how the > >> user data is getting used. I did see the document you sent me already > >> and does look like straight forward think. Could I ask you to give an > >> example of how you using user-data, and how do you prepare it for the > >> CloudMonkey? > >> > >> Thanks David > >> > >> From: Simon Weller <swel...@ena.com> > >> Sent: Feb 27, 2016 6:18 PM > >> To: users@cloudstack.apache.org > >> Subject: Re: User data is not base64 encoded > >> > >> David, > >> > >> I can't speak to the GUI userdata, as I've never used it from the GUI. > >> Have you tried using CloudMonkey? > >> > >> Here's some info related to userdata: > >> > >> > >> http://docs.cloudstack.apache.org/projects/cloudstack-administration/e > >> n/latest/virtual_machines.html#user-data-and-meta-data > >> > >> - Si > >> > >> > >> ________________________________________ > >> From: Yacubovich, David <dyacubov...@collegeboard.org> > >> Sent: Thursday, February 25, 2016 12:30 PM > >> To: users@cloudstack.apache.org > >> Subject: User data is not base64 encoded > >> > >> Hello All, > >> I am trying to test the use of userdata on CS 4.6. I am creating new > >> instance from the UI and I paste the base64 encoded string into the > >> userdata box. But I get this error every time. I can't find any > >> examples of how to use userdata online. Can someone please give me an > >> example of how this should work? > >> > >> Here is m example: > >> > >> # echo "env: poclab > >> container: tomcat" | base64 > >> ZW52OiBwb2NsYWIKY29udGFpbmVyOiB0b21jYXQK > >> > >> And I paste this string into userdata box. > >> > >> Thanks, > >> David > >> > > > > > > > > -- > > Rafael Weingärtner > -- Rafael Weingärtner