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

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

CodeBleu opened this issue · comments

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

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