Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning always raised if vendor data is supplied #4919

Closed
TheRealFalcon opened this issue Feb 20, 2024 · 0 comments · Fixed by #4986
Closed

Warning always raised if vendor data is supplied #4919

TheRealFalcon opened this issue Feb 20, 2024 · 0 comments · Fixed by #4986
Labels
24.1 bug Something isn't working correctly

Comments

@TheRealFalcon
Copy link
Member

TheRealFalcon commented Feb 20, 2024

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
@TheRealFalcon TheRealFalcon added bug Something isn't working correctly new An issue that still needs triage 24.1 and removed new An issue that still needs triage labels Feb 20, 2024
holmanb added a commit that referenced this issue Mar 1, 2024
holmanb added a commit to holmanb/cloud-init that referenced this issue Mar 5, 2024
holmanb added a commit to holmanb/cloud-init that referenced this issue Mar 6, 2024
holmanb added a commit to holmanb/cloud-init that referenced this issue Mar 6, 2024
holmanb added a commit to holmanb/cloud-init that referenced this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
24.1 bug Something isn't working correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant