=== dch is now known as pnrd === pnrd is now known as dch === cpaelzer is now known as cpaelzer_ === cpaelzer_ is now known as cpaelzer [16:11] Hey meena: Hope all is well. Just checking to see if you were able to reproduce my issue with the net/activator stuff? [16:50] not yet, most of the household has been sick, except for me, so my computer time was very limited [16:52] meena: understood. Hope all gets well soon [16:54] I hope I'll get to it tonight [16:55] 👍 === tobias1_ is now known as tobias1 [19:49] meena: I think I figured it out. For some reason my cloud-init install was caching old version. I install pip and did a pip uninstall cloud-init and made sure all was cleaned out. I then ran the build-on-openbsd and it sees my net/activator changes. It also runs without issues it appears (manually running cloud-init steps) [19:50] meena: I am able to get things to run on boot, if i put these cloud-init commands one after another in the /etc/rc.local. Not sure if we really need actual service files, if none of these "services" are staying running. Is there something I'm missing with that? [20:15] meena: It looks clean now in my cloud-init.log file. woo whoo!! Now I just need to figure out 1. how to have cloud-init resize root disk, and 2. allow my password to work on the default user it created. It creates the user no problem, but it doesn't look like it is setting the password when i look at the /etc/master.passwd [20:28] there's plenty of services that can be enabled but don't stay running [20:28] think of stuff like fsck, or ntpdate, for people who can't afford ntpd [20:28] * meena points at her daughter [20:29] any minute now, Code_Bleu, I'll be at my computer [20:50] Code_Bleu: general: You shouldn't need to uninstall/install every time you change a single file, you will however need to delete the .pyc files that you changed. [21:00] meena: well , I'm open to suggestions on how to get the services to actually boot in order, but for now I just added the commands directly in /etc/rc.local and it seems to do the trick [21:01] meena: I think i forgot to paste my log earler. Here it is - http://sprunge.us/Ox1rRY [21:03] It seems like it set the password from what the logs say, but there is no password set in the /etc/master.passwd - finish: modules-config/config-set_passwords: SUCCESS: config-set_passwords ran successfully [21:28] Code_Bleu: so, first off: CloudStack is not recognized and it falls back to ConfigDrive? Am i reading that right? [21:29] except, then it says: 2023-12-04 20:06:34,328 - handlers.py[DEBUG]: finish: init-local/search-ConfigDrive: SUCCESS: no local data found from DataSourceConfigDrive [21:30] and then it calls ifconfig -a three times… and I thought we had caching for that [21:31] well, we have caching for the parser… so it won't go through the whole parse process if the output didn't change since the first call [21:37] I don't know where these two lines come from: [21:37] 2023-12-04 20:06:36,447 - subp.py[DEBUG]: Running command ['netstat', '--route', '--numeric', '--extend'] with allowed return codes [0, 1] (shell=False, capture=True) [21:37] 2023-12-04 20:06:36,454 - subp.py[DEBUG]: Running command ['netstat', '-A', 'inet6', '--route', '--numeric'] with allowed return codes [0, 1] (shell=False, capture=True) [21:38] but they need to be fixed to be platform independent, or call into a distro class [21:41] i think what's weird is that Linux' netstat doesn't show both, IPv4 and IPv6 by default… [21:41] moving on [21:51] Code_Bleu: can you show me a paste of your user-data? [22:01] meena: yeh, give me a min. and I'll post it [22:04] meena: this is without the password added. This is basically default generated, but I manually added the datasource_list: and datasource: section because ds-identify wasn't working before. - http://sprunge.us/PYtbPn [22:21] Code_Bleu: that's not user-data. That's etc/cloud.cfg [22:21] Code_Bleu: user-data is the stuff you put into CloudStack to make the magic dust happen [22:22] either way, it looks like distros/openbsd.py needs a set_passwd() method [22:29] I should've installed OpenBSD CURRENT, for the craic. [22:31] meena: normalyl for Linux distros it is using "ip route list" rather than "netstat" [22:32] netstat is "old hat" these days [22:32] I've went ahead and created a PR for my changes. Please let me know if I need to do anything differenntly. I left the dmidecode in mine, so might want to remove the dmidecode from your PR - https://github.com/canonical/cloud-init/pull/4660 [22:32] -ubottu:#cloud-init- Pull 4660 in canonical/cloud-init "fix(openbsd): services & build tool" [Open] [22:32] minimal: true, true, still. So in that case it's doubly badly written [22:32] meena: ^ [22:33] meena: well in logs for Alpine I see "ip route list" being used... [22:33] Code_Bleu: what's * INFRA-900? [22:35] meena: it's for me internally. We use ClickUP and it keeps track of changes in the tickets based on commit message or branch name. If that needs to be removed, I guess I can....I was just trying to keep things clean on my end too :) [22:35] meena: in cloudinit/netinfo.py route_info function uses "ip" if it exists and falls back to "netstat" otherwise [22:35] meena: i took it out [22:37] minimal: netinfo.py probably needs to die in a fire [22:41] Code_Bleu: it's still in the commit message itself. [22:41] anywhere that is using bare iproute2 calls should probably be ported to using the netops modules under cloudinit/net/netops/ [22:42] holmanb: that makes more sense than calling into distro when it's not available [22:42] meena: is that an issue that it's in the commit message itself? [22:42] Code_Bleu: depends on who merges it ;) [22:59] A portable solution for all shells is to use eval: [22:59] eval printf '"%s\n"' \"\${$#}\" [22:59] whew [23:11] buh yah! I have deleted code. [23:16] Code_Bleu: pushed a fix for ds-identify [23:16] meena: I pushed up changes and left a couple for you to mark resolved if you are happy with it now. [23:17] https://github.com/canonical/cloud-init/pull/4654/commits/e76743e886303a0fb09c10f70cddd62f9e9cc65e [23:17] -ubottu:#cloud-init- Pull 4654 in canonical/cloud-init "dmi: support OpenBSD native reading" [Open] [23:27] Code_Bleu: did i say that? distros/openbsd.py needs a set_passwd() implemented [23:28] that's unrelated to the two pull requests we have running right now [23:29] meena: yes, you mentioned that there needs to be a set_passwd() in distros/openbsd.py [23:31] anyway, i need to walk the dog/plank [23:32] my eyes are starting to tire [23:32] tyre? [23:32] you're tired...i get it :P [23:32] thanks for the help [23:32] Code_Bleu: thanks for working on this! And thanks for creating an IfconfigActivator… [23:33] I kinda dropped it off my list, cuz I figured *we* don't need it