/srv/irclogs.ubuntu.com/2023/06/19/#cloud-init.txt

meenai have done horrible things to setup.py13:03
meenalooking forward to someone scratching their eyes out when reviewing it.13:03
meenahere we go: https://github.com/canonical/cloud-init/pull/418213:58
-ubottu:#cloud-init- Pull 4182 in canonical/cloud-init "BSD: add dsidentify to early startup scripts" [Open]13:58
tryfanHi All, I'm running cloud-init on rhel 9.  cloud-final is running at boot, but for some reason it is skipping running the scripts in runcmd.  It sets network and users fine.  I've tried removing machine-id, cleaning the /var/lib/cloud directory, but nothing seems to work16:31
meenatryfan: no errors or exceptions? 16:33
tryfanno, it just seems to think it's rebooted before and doesn't run any of the commands.  terminates successfully16:34
minimalyou've checked /var/log/cloud-init.log with debugging enabled?16:34
minimalthat will show which modules it considers to run at each stage16:35
tryfanit seems to be running cloud-final but just the commands aren't run, as if per-instance isn't triggered16:37
minimalare you seeing this from cloud-init.log?16:40
tryfanI'm seeing it in the cloud-final systemctl, seeing it in cloud-init-output.log as well.  just starts and stops.16:41
tryfanwhat I really want to know is how to determine how cloud-init is figuring out whether to run each phase16:42
falcojreach phase should always get run. Within each phase there are modules run. Some run always, others run only if specific keys in are detected in the provided cloud-config16:43
falcojrprobably easiest to run "cloud-init collect-logs --include-userdata" (remove that --include-userdata flag if you have anything sensitive in your user data), and upload the resulting tarball to a new issue. https://github.com/canonical/cloud-init/issues16:44
minimaltryfan: that is why I suggested cloud-init.log with DEBUG enabled - that will log the list of enabled modules for each stage and then how cloud-init decides whether to do anything for each of them16:46
tryfanit's a default cloud.cfg, so runcmd is in cloud_config_modules and scripts_user is in cloud_final_modules16:47
tryfanThe /etc/cloud/cloud.cfg.d/05_logging.cfg is here: https://paste.centos.org/view/cefa051816:49
minimalso what does   grep "Running module runcmd " /var/log/cloud-info.log show?16:57
tryfanminimal: I see under modules-final - config-scripts-user : SUCCESS: config-scripts-user previously run  and here's a screenshot of a runcmd on this template: https://d.pr/i/KfgRTn17:16
tryfanso runcmd seems to be running, creates the scripts to be run, but scripts-user doesn't execute them17:17
tryfanI'm off with that customer, just trying to figure their issue out.  other templates they have, rhel 7/8 work fine.  all the templates I've done for EL9 variants, centos9, alma9, rocky9, all have worked fine.  I believe they are doing something to the template, but I haven't been able to identify anything that would cause this kind of issue17:18
minimalwhat does   grep "Running module scripts_user " /var/log/cloud-info.log show?17:35

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