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/en/latest/virtual_machines.html#user-data-and-meta-data - Si From: Yacubovich, David 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
Re: User data is not base64 encoded
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 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/en/latest/virtual_machines.html#user-data-and-meta-data - Si From: Yacubovich, David 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
Re: User data is not base64 encoded
Hello David, First I'd transform my script in base64 (cat script.sh | base64) then append that string into cloudmonkey similar to the below example: deploy virtualmachine zoneid=8aadc947-d30e-4414-99f8-f8638df2eaf9 hypervisor=KVM rootdisksize=20 securitygroupids=241cbc66-a41b-476c-9d23-8dcc9489794e serviceofferingid=0d3e701e-a0e9-4f4e-99ac-cc0c479b4f47 startvm=true userdata=IyEvYmluL3NoCmVjaG8gbHVjaWFuID4gL2x1Y2lhbi50eHQK templateid=a1db134c-7211-4d08-9795-324af7982438 keypair=evenstar name=VM4 displayname=VM4 HTH Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - > From: "Yacubovich, David" > To: users@cloudstack.apache.org > Sent: Sunday, 28 February, 2016 03:13:05 > Subject: Re: User data is not base64 encoded > 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 > 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/en/latest/virtual_machines.html#user-data-and-meta-data > > - Si > > > > From: Yacubovich, David > 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
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 > 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/en/latest/virtual_machines.html#user-data-and-meta-data > > - Si > > > > From: Yacubovich, David > 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
RE: User data is not base64 encoded
Hi, After converting userdata to base64 format and make it urlencoded then pass the userdata string as api parameter. Regards Sadhu From: Yacubovich, David 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
Re: User data is not base64 encoded
Suresh, Can you please rephrase that? What's "urlencoded"? -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - > From: "Suresh Sadhu" > To: users@cloudstack.apache.org > Sent: Sunday, 28 February, 2016 14:49:08 > Subject: RE: User data is not base64 encoded > Hi, > > After converting userdata to base64 format and make it urlencoded then pass > the > userdata string as api parameter. > > > Regards > Sadhu > > > > From: Yacubovich, David > 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
Re: User data is not base64 encoded
It means: make it safe to be passed in an url. Base64 encoded data can still contain "+", "=" and “/" which may confuse the browser/server. Example: data: "some data" becomes base64 encoded: ZGF0YTogInNvbWUgZGF0YSI= and url encoded: ZGF0YTogInNvbWUgZGF0YSI%3D To play with it, see: https://www.base64encode.org/ http://www.albionresearch.com/misc/urlencode.php Regards, Remi On 28/02/16 15:52, "Nux!" wrote: >Suresh, > >Can you please rephrase that? What's "urlencoded"? > >-- >Sent from the Delta quadrant using Borg technology! > >Nux! >www.nux.ro > >- Original Message - >> From: "Suresh Sadhu" >> To: users@cloudstack.apache.org >> Sent: Sunday, 28 February, 2016 14:49:08 >> Subject: RE: User data is not base64 encoded > >> Hi, >> >> After converting userdata to base64 format and make it urlencoded then pass >> the >> userdata string as api parameter. >> >> >> Regards >> Sadhu >> >> >> >> From: Yacubovich, David >> 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
Re: User data is not base64 encoded
Ah, roger. Thanks for the explanation! -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - > From: "Remi Bergsma" > To: users@cloudstack.apache.org > Sent: Sunday, 28 February, 2016 15:48:12 > Subject: Re: User data is not base64 encoded > It means: make it safe to be passed in an url. Base64 encoded data can still > contain "+", "=" and “/" which may confuse the browser/server. > > Example: > data: "some data" becomes base64 encoded: ZGF0YTogInNvbWUgZGF0YSI= and url > encoded: ZGF0YTogInNvbWUgZGF0YSI%3D > > To play with it, see: > https://www.base64encode.org/ > > http://www.albionresearch.com/misc/urlencode.php > > > Regards, > Remi > > > > > > > On 28/02/16 15:52, "Nux!" wrote: > >>Suresh, >> >>Can you please rephrase that? What's "urlencoded"? >> >>-- >>Sent from the Delta quadrant using Borg technology! >> >>Nux! >>www.nux.ro >> >>- Original Message - >>> From: "Suresh Sadhu" >>> To: users@cloudstack.apache.org >>> Sent: Sunday, 28 February, 2016 14:49:08 >>> Subject: RE: User data is not base64 encoded >> >>> Hi, >>> >>> After converting userdata to base64 format and make it urlencoded then pass >>> the >>> userdata string as api parameter. >>> >>> >>> Regards >>> Sadhu >>> >>> >>> >>> From: Yacubovich, David >>> 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
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 > 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 > 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
Re: User data is not base64 encoded
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" > 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 >> 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 >> 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
Re: User data is not base64 encoded
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! 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" > > 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 > >> 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 > >> 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
RE: User data is not base64 encoded
I tried both ways. This is what I try to put in the user-data box in the gui: env: poc service: tomcat or in base64: ZW52OiBwb2MKc2VydmljZTogdG9tY2F0Cg== Both time I get: "User data is not base64 encoded" Thanks, David -Original Message- From: Nux! [mailto:n...@li.nux.ro] Sent: Monday, February 29, 2016 12:20 PM To: users@cloudstack.apache.org Subject: Re: User data is not base64 encoded 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" > 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 >> 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 >> 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