canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization

Home Page:https://cloud-init.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning always raised if vendor data is supplied

TheRealFalcon opened this issue · comments

Bug report

We recently added a warning if an unexecutable file is found in a runparts directory. This leads to a warning anytime vendor data is supplied.

We use /var/lib/cloud/instance/scripts to store user data scripts, and /var/lib/cloud/instance/scripts/vendor to store vendor data scripts. When trying to run all scripts in the user data directory, cloud-init sees the vendor directory and raises the warning.

Log snippet:

2024-02-20 15:04:55,979 - modules.py[DEBUG]: Running module scripts_user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) with frequency once-per-instance
2024-02-20 15:04:55,979 - handlers.py[DEBUG]: start: modules-final/config-scripts_user: running config-scripts_user with frequency once-per-instance
2024-02-20 15:04:55,980 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/0727_94cd25e5-20cc-486f-bee7-d7ad604ab823/sem/config_scripts_user - wb: [644] 23 bytes
2024-02-20 15:04:55,980 - helpers.py[DEBUG]: Running config-scripts_user using lock (<FileLock using file '/var/lib/cloud/instances/0727_94cd25e5-20cc-486f-bee7-d7ad604ab823/sem/config_scripts_user'>)
2024-02-20 15:04:55,980 - subp.py[WARNING]: skipping /var/lib/cloud/instance/scripts/vendor as its not executable or the underlying file system is mounted without executable permissions.
2024-02-20 15:04:55,980 - handlers.py[DEBUG]: finish: modules-final/config-scripts_user: SUCCESS: config-scripts_user ran successfully