it during the once-per-instance run.
ᅩ# © 2018 by ...
'Copyright', and it finally ran on instance first-boot.
2 instance ...
Post by Noah MeyerhansPost by Jim Freeman2018-10-01 stretch AMI (no idea if this is a regression?)
/var/log/cloud-init.log claims user-data was run, when it fact it was
not,
Post by Jim Freemanwith tracebacks and log messages (attached) leading me to think that
failure is somehow getting mis-cast as success?
Any confirmations of other failures/successes of user-data would be
much appreciated ...
It seems that there are some invalid characters in your user-data
script. Cloud-init is printing a message at WARNING-level severity
indicating that it can't run the script, and the following stack trace
Post by Jim Freeman2018-11-02 22:36:11,164 - util.py[WARNING]: Failed calling handler
ShellScriptPartHandler: [['text/x-shellscript']] (text/x-shellscript,
part-001, 2) with frequency once-per-instance
Post by Jim Freeman2018-11-02 22:36:11,170 - util.py[DEBUG]: Failed calling handler
ShellScriptPartHandler: [['text/x-shellscript']] (text/x-shellscript,
part-001, 2) with frequency once-per-instance
Post by Jim FreemanFile "/usr/lib/python3/dist-packages/cloudinit/handlers/__init__.py",
line 103, in run_part
Post by Jim Freemanpayload, frequency)
File
"/usr/lib/python3/dist-packages/cloudinit/handlers/shell_script.py", line
43, in handle_part
Post by Jim Freemanutil.write_file(path, payload, 0o700)
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1747, in
write_file
Post by Jim Freemancontent = encode_text(content)
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 154, in
encode_text
Post by Jim Freemanreturn text.encode(encoding)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udca9' in
position 14: surrogates not allowed
What's in /var/log/cloud-init-output.log after this failure?