/srv/irclogs.ubuntu.com/2021/12/23/#cloud-init.txt

esvhello folks, I am trying to use cloud-init to create a data disk partition on a rhel8 server on azure, here is the custom data script I am using during deployment: https://paste.centos.org/view/5515b8be02:59
esvand here is the log: https://paste.centos.org/view/197790eb03:00
esvneedless to say it is failing miserably to partition and create the filesystem on disk, not sure why03:00
esvI also see the following in /var/log/cloud-init.log: DataSourceAzure.py[DEBUG]: Marker "/var/lib/cloud/instance/sem/config_disk_setup" for module "disk_setup" does not exist 03:02
esvwondering if it is me not knowing what I am doing or Azure working its wonders as usual.03:03
esvwell, it was me, found the problem with the layout specification and instead of using the .1 notation, had to use the -partX notation for each new partition 05:15
rautorI'm trying to run cloud-init on a VM via user-data. I don't think it's running because `/var/log/cloud-init-output.log` is empty. When I grep for my cloud-config in `/run/cloud-init` I can set it's set as user-data in `instance-data.json` but no other references. Any pointers to understand why it didn't run?12:21
rautor.. yaml was invalid! faq has handy https://cloudinit.readthedocs.io/en/latest/topics/faq.html#how-can-i-debug-my-user-data :)12:45
esvis the service enabled to start upon reboot? check the console log for clues, I've found most of my problems were caused by syntax errors silently ignored :D13:22
rautoryes the problem was invalid yaml, i did find some error that might have indicated that in a file but i wasn't clear. lesson learned - validate my yaml!13:29

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!