Thank Felipe for reporting this issue and making cloud-init better. Could you please create an issue in: https://github.com/canonical/cloud-init/issues/new/choose, making sure you attach the output of `cloud-init collect-logs --include-userdata` and describe how to reproduce this issue?
Kind regards, On Tue, Sep 3, 2024 at 10:07 PM Felipe Polanco <[email protected]> wrote: > Hello, > > We are in the process of upgrading from Oracle Linux 7 to Oracle Linux 8 > and we are having issues with cloud-init running our initial script. > > We see Cloud-init successfully setting up the hostname and network > configuration but is not running the user-script at all. > > All Cloud-init logs state everything went fine, no errors, no deadlocks, > no service waiting, all systemd services enabled but still our script > doesn't run. > > We were running Cloud-init v18.5 and now we are in Cloud-init v23 > > We even see our user-data being picked up correctly and the yaml file is > parsed, the runcmd script gets created under the instance scripts > folder..but is not executed. > > On OL7 we saw that the scripts-user code was responsible to call runcmd > script, in OL8 we see the script-users code starting up and finishing up > without calling runcmd like it used to. > > Logs: > OL7: > > 2024-09-03 18:33:32,685 - handlers.py[DEBUG]: start: > modules-final/config-scripts-user: running config-scripts-user with > frequency once-per-instance > > 2024-09-03 18:33:32,685 - util.py[DEBUG]: Writing to > /var/lib/cloud/instances/i-12345678/sem/config_scripts_user - wb: [644] 20 > bytes > > 2024-09-03 18:33:32,685 - helpers.py[DEBUG]: Running config-scripts-user > using lock (<FileLock using file > '/var/lib/cloud/instances/i-12345678/sem/config_scripts_user'>) > > 2024-09-03 18:33:32,685 - util.py[DEBUG]: *Running command > ['/var/lib/cloud/instance/scripts/runcmd'] with allowed return codes* [0] > (shell=False, capture=False) > > > OL8: > > 2024-09-03 19:20:11,149 - handlers.py[DEBUG]: start: > modules-final/config-scripts-user: running config-scripts-user with > frequency once-per-instance > > 2024-09-03 19:20:11,149 - util.py[DEBUG]: Writing to > /var/lib/cloud/instances/i-12345678/sem/config_scripts_user - wb: [644] 24 > bytes > > 2024-09-03 19:20:11,150 - util.py[DEBUG]: Restoring selinux mode for > /var/lib/cloud/instances/i-12345678/sem/config_scripts_user > (recursive=False) > > 2024-09-03 19:20:11,151 - util.py[DEBUG]: Restoring selinux mode for > /var/lib/cloud/instances/i-12345678/sem/config_scripts_user > (recursive=False) > > 2024-09-03 19:20:11,152 - helpers.py[DEBUG]: Running config-scripts-user > using lock (<FileLock using file > '/var/lib/cloud/instances/i-12345678/sem/config_scripts_user'>) > > 2024-09-03 19:20:11,152 - handlers.py[DEBUG]: finish: > modules-final/config-scripts-user: SUCCESS: config-scripts-user ran > successfully > > > Any idea why this is happening? > > > Thanks, > > > -- > Mailing list: https://launchpad.net/~cloud-init > Post to : [email protected] > Unsubscribe : https://launchpad.net/~cloud-init > More help : https://help.launchpad.net/ListHelp > -- Alberto Contreras CPC Software Engineer II
-- Mailing list: https://launchpad.net/~cloud-init Post to : [email protected] Unsubscribe : https://launchpad.net/~cloud-init More help : https://help.launchpad.net/ListHelp

