Hi, If I for example I would like to run some cmds after init. I can use the runcmd tag.
runcmd: - echo "Hello, I run on first boot" - /usr/local/bin/setup.sh However, this only works if in the cloud.cfg file in the image contains something like the following cloud_final_modules: - [runcmd, always] If not the runcmd is simply ignored, and no warning message is given. It is not directly clear from the manual that this must be present, and no warning is given, which made me wonder why it was not working. Met vriendelijke groeten, Jesse van Dam Manager R&D Email: jesse.van....@celsiusbenelux.nl<mailto:jesse.van....@celsiusbenelux.nl> Tel: +31 (0)33 820 04 10 Siliciumweg 11, 3812 SV Amersfoort [cid:2c6ec0dd-5459-49ba-bb8d-bde966bcd6f1] VCA** en NEN-EN ISO 9001:2015 gecertificeerd Benieuwd naar onze ComfortKey producten/oplossingen? Bekijk onze website: www.celsiusbenelux.nl<http://www.celsiusbenelux.nl/> Members Celsius Groep; Celsius Benelux, Control Energy Services, Celsius Integrated Security, Celsius Products ________________________________ Van: nore...@launchpad.net <nore...@launchpad.net> namens Alberto Contreras <2116...@bugs.launchpad.net> Verzonden: vrijdag 18 juli 2025 15:37 Aan: Jesse van Dam <jesse.van....@celsiusbenelux.nl> Onderwerp: [Bug 2116856] Re: no warning message when using tags that are not present/enabled in the cloud.cfg file Thanks for making cloud-init better. What do you mean by config tags? Could provide an example of your use case and what is the expected behavior? Thanks. -- You received this bug notification because you are subscribed to the bug report. https://bugs.launchpad.net/bugs/2116856 Title: no warning message when using tags that are not present/enabled in the cloud.cfg file Status in cloud-init package in Ubuntu: New Bug description: It is not perse a bug, but more a documentation/logging issue. I had trouble to get my instance configured trough cloud init, because the config tags i tried to use where not present/enabled in the cloud.cfg file of the image i was using. Documentation explains the tags, but it took some time to realize that they also need be enabled in the cloud.cfg file. I had for example the network: tag, but nothing was configured, because the tag was not enabled in the cloud.cfg in the image I was using. I would be nice, to get a warning message in the log that a given tag is ignored, because the tag is not enabled in the cloud.cfg file of the image. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2116856/+subscriptions ** Attachment added: "Outlook-xnq0ycsv" https://bugs.launchpad.net/bugs/2116856/+attachment/5892204/+files/Outlook-xnq0ycsv -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2116856 Title: no warning message when using tags that are not present/enabled in the cloud.cfg file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2116856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs