OpenBSD: Cloud-init not applying changes after the initial first boot
CodeBleu opened this issue · comments
CodeBleu commented
Bug report
Attempting to change host name or password from Cloudstack, does not work.
Steps to reproduce the problem
- Clone cloud-init using
git clone https://github.com/canonical/cloud-init.git
- Navigate to the cloud-init directory using
cd cloud-init/
- Using
./tools/build-on-openbsd
install the tools within the cloud-init directory - reboot, and the initial hostname, password..etc is pulled from Cloudstack and works
- Change hostname, password...etc in Cloudstack ( server reboots )
- 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
Mina Galić commented
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