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

cloud-init creates directories in /run on OpenBSD #5789

Open
hcartiaux opened this issue Oct 6, 2024 · 1 comment
Open

cloud-init creates directories in /run on OpenBSD #5789

hcartiaux opened this issue Oct 6, 2024 · 1 comment
Labels
bug Something isn't working correctly

Comments

@hcartiaux
Copy link
Contributor

Bug report

The directory /run/cloud-init/tmp/ is created recursively, even if /run does not exist under OpenBSD. Could it be a missed hard-coded path that #4766 attempted to solve ?

Steps to reproduce the problem

Enable the sysv init scripts to start cloud-init once.

Environment details

  • Cloud-init version: 24.1.4
  • Operating System Distribution: OpenBSD
  • Cloud provider, platform or installer type: nocloud

cloud-init logs

No related logs, but I guess the guilty lines of codes are in the file cloudinit/temp_utils.py, especially variable _ROOT_TMPDIR = "/run/cloud-init/tmp".

@hcartiaux hcartiaux added bug Something isn't working correctly new An issue that still needs triage labels Oct 6, 2024
@hcartiaux hcartiaux changed the title cloud-init create directories in /run on OpenBSD cloud-init creates directories in /run on OpenBSD Oct 6, 2024
@TheRealFalcon TheRealFalcon removed the new An issue that still needs triage label Oct 7, 2024
@TheRealFalcon
Copy link
Member

Thanks for the bug report. You are correct in that the tmpdir used there should be referencing the current Paths value rather than a hardcoded constant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

2 participants