/srv/irclogs.ubuntu.com/2024/03/05/#cloud-init.txt

=== SuperL4g is now known as SuperLag
Code_Bleuholman: long time not talk.  I dont see meena on here, but I've recently was working with deploying OpenBSD again and was using the updated cloud-init, but whenever I try to change hostname or passworrd..etc, it is not picking up those changes and I believe it has to do with the /var/run.  We had a temp solution in at one point that would symlink and allow it to clear out cloud-init cache so it16:10
Code_Bleuwould re-run on next boot, but that isn't working now.16:11
Code_Bleuholman: https://github.com/canonical/cloud-init/pull/467716:11
-ubottu:#cloud-init- Pull 4677 in canonical/cloud-init "fix(runpath): On *BSD, create /run is not ephemeral" [Merged]16:11
holmanHi Code_Bleu 16:21
holmanHmm, latest as in tip of main? 16:21
Code_Bleuholman: yeh, I'm doing a git clone of the repo, so yeh.16:22
holmanCode_Bleu: do you remember which commit you previously tested that worked? 16:22
Code_Bleuholman: if i remove all the cloud init related files that are put in /var/run and reboot, then it works and updates my hostname as expected.16:23
Code_Bleuholman: it was before #4677 got merged16:25
Code_Bleuholman: we were actually handling it with a symlink creation in /etc/rc.local before, but I know meena was working on it to fix it "correctly".   I had just moved forward with that work around, but now things are broke with or without that work around.16:26
holmanCode_Bleu: ah, i see16:34
holman4677 relocated ephemeral directories for ds-identify, but not the rest of cloud-init code16:35
holmanPR 4820 should address the other half of that16:35
holmanWhich hasn't landed yet16:36
holmanCode_Bleu: would you be willing to test/review that? 16:36
Code_Bleuholman: I can try.  It's been a while since I've messed with this stuff.  I'm still no OpenBSD person either ;) 16:46
Code_Bleuholman: I've checked out 4820 PR on my machine with issues and will re-run the /tools/build-on-openbsd again and reboot and test and see.  Not sure if there are any other clean up steps needed first?17:02
holmanCode_Bleu: don't think so? I haven't used that tool much 17:14
Code_Bleuholman: I did a fresh install, git cloned the main branch. did a git fetch of your PR 4820 and checked that branch out.  I then ran the ./tools/build-on-openbsd and restarted.  The initial boot works and updates things ( same as before ), but when I go to change the server name, it is NOT picking up those changes.  So I assume not cleaning things out in /run or /var/run correctly.19:21
Code_Bleuholman: changing server name is change in Cloudstack19:21
holmanCode_Bleu: you're saying it worked on the first boot but not the second? 22:59
holmanHow did you provide the config? 23:00
Code_Bleuholman: I'm just saying that even using the main branch and not your PR, the cloud-init will work the first time and pull the settings from Cloudstack.  I'm not specifying a provider and am just letting the detect-provider work.  The issue is when I make changes to the server ( hostname, password...etc ), whenever the server reboots, it never gets those updates.  This is the same for the main23:13
Code_Bleubranch and your PR.23:13
holmanAhh, so those modules run once per instance23:25
holmanDid you run cloud-init clean? 23:25

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!