← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1640342] [NEW] Base64 encoded userdata scripts don't execute

 

Public bug reported:

To replicate, attempt to pass in the example script from the doc here:

http://cloudinit.readthedocs.io/en/latest/topics/format.html#user-data-
script

with base64 encoding.

I tried using the AWS-SDK for Ruby V2 with a very simple base64 encoded
script (which worked fine in trusty), and the sample script from above
in the AWS EC2 console's launch-instance wizard (which looks like it's
also doing base64 encoding behind the scenes).

Attached are log files from passing the documentation's sample script
into an Ubuntu 16.04 EC2 instance (ami-40d28157) by pasting the script
into the user-data textbox of the launch instance wizard (which seems to
do base64 encoding).

Evidence it failed to run: 
  -There was no /root/output.txt,
  -"Hello World" is nowhere in "/var/log/cloud-init-output.log"

** Affects: cloud-init
     Importance: Undecided
         Status: New


** Tags: base64 script userdata

** Attachment added: "/var/log/cloud-init.log"
   https://bugs.launchpad.net/bugs/1640342/+attachment/4774629/+files/cloud-init.log

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1640342

Title:
  Base64 encoded userdata scripts don't execute

Status in cloud-init:
  New

Bug description:
  To replicate, attempt to pass in the example script from the doc here:

  http://cloudinit.readthedocs.io/en/latest/topics/format.html#user-
  data-script

  with base64 encoding.

  I tried using the AWS-SDK for Ruby V2 with a very simple base64
  encoded script (which worked fine in trusty), and the sample script
  from above in the AWS EC2 console's launch-instance wizard (which
  looks like it's also doing base64 encoding behind the scenes).

  Attached are log files from passing the documentation's sample script
  into an Ubuntu 16.04 EC2 instance (ami-40d28157) by pasting the script
  into the user-data textbox of the launch instance wizard (which seems
  to do base64 encoding).

  Evidence it failed to run: 
    -There was no /root/output.txt,
    -"Hello World" is nowhere in "/var/log/cloud-init-output.log"

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1640342/+subscriptions


Follow ups