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

OpenBSD: Cloud-init not applying changes after the initial first boot #5033

Closed
CodeBleu opened this issue Mar 8, 2024 · 3 comments
Closed
Labels
bug Something isn't working correctly incomplete Action required by submitter

Comments

@CodeBleu
Copy link
Contributor

CodeBleu commented Mar 8, 2024

Bug report

Attempting to change host name or password from Cloudstack, does not work.

Steps to reproduce the problem

  1. Clone cloud-init using git clone https://github.com/canonical/cloud-init.git
  2. Navigate to the cloud-init directory using cd cloud-init/
  3. Using ./tools/build-on-openbsd install the tools within the cloud-init directory
  4. reboot, and the initial hostname, password..etc is pulled from Cloudstack and works
  5. Change hostname, password...etc in Cloudstack ( server reboots )
  6. Still has previous information and does not update

Temp solution

Add the following to /etc/rc.local and reboot. All subsequent changes will work

  • rm -f /run/.instance-id
  • rm -f /run/instance-data*

Environment details

  • Cloud-init version: 23.4.4
  • Operating System Distribution: OpenBSD 7.4
  • Cloud provider, platform or installer type: CloudStack

cloud-init logs

cloud-init.tar.gz

@CodeBleu CodeBleu added bug Something isn't working correctly new An issue that still needs triage labels Mar 8, 2024
@igalic
Copy link
Collaborator

igalic commented Mar 15, 2024

shouldn't that stuff be in /run/cloud-init/?
(or after #4820 in /var/run/cloud-init)

So, seems suspicious that it's directly in /run

@TheRealFalcon TheRealFalcon added incomplete Action required by submitter and removed new An issue that still needs triage incomplete Action required by submitter labels Apr 15, 2024
@github-actions github-actions bot added the Stale label Sep 13, 2024
@aciba90 aciba90 removed the Stale label Oct 3, 2024
@hcartiaux
Copy link
Contributor

I can't reproduce on my side, these files are now stored in /var/run/cloud-init, this has probably been solved by #4820 like @igalic said.

@holmanb
Copy link
Member

holmanb commented Oct 7, 2024

Closing, this was resolved in #4820.

@holmanb holmanb closed this as completed Oct 7, 2024
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 incomplete Action required by submitter
Projects
None yet
Development

No branches or pull requests

6 participants