How to fix cloud-config not work with error “Failed loading yaml blob”

Posted In Cloud / Cluster - By Tum. On Thursday, June 25th, 2015 With 0 Comments

ถ้าหากมีการใช้งาน cloud-config บน EC2 instance บน AWS หรือ OpenStack แล้วพบว่าไม่ทำงานตามที่กำหนดไว้ และได้ตรวจสอบ error ก็พบข้อความ “Failed at merging in cloud config part from …” เหมือนตัวอย่างด้านล่าง

ให้ทำการตรวจสอบ yaml ว่า validate หรือไม่ เนื่องจากอาจเกิดจากมีการใช้ tab มาแทนเว้นวรรค โดยสามารถเข้าไปที่ http://www.yamllint.com/ เพื่อทำการตรวจสอบ yaml และลองใหม่อีกครั้งครับ

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*