/srv/irclogs.ubuntu.com/2022/10/25/#cloud-init.txt

skull-skrimpWhen adding your own datasource, the step "Enable datasource by default in ubuntu packaging branches", where is/are these files?01:38
falcojrwe have separate ubuntu/jammy, ubuntu/focal, ubuntu/bionic, and ubuntu/devel branches that have a separate debian/ directory01:41
falcojrthe datasources are listed in debian/cloud-init.templates01:41
falcojrthose need to come as separate PRs, so we (the ones employed by Canonical) can help with that01:42
skull-skrimpAlright, was testing the DEB_BUILD_OPTIONS=nocheck ./packages/bddeb -d produced01:47
skull-skrimpand noticed that the datasource isnt getting picked up in 20.04*01:47
skull-skrimpIt seems like its related to that, but not 100% sure01:48
skull-skrimpReferring to these files basically? https://github.com/canonical/cloud-init/blob/ubuntu/jammy-22.3-hotfix/debian/cloud-init.templates01:52
falcojryeah, if you're going to test that way, you should probably add the datasource directly to /etc/cloud/cloud.cfg.d/90_dpkg.cfg. Then "cloud-init clean --reboot --logs", and it should act like a fresh install on a clean boot with the datasource detection code present01:55
skull-skrimp99% of my testing has been with debian-11, so want to try outside of that01:57
skull-skrimpAre there other files that need to be updated possibly? I'm not getting the detection of the datasource.02:07
falcojrhmmm, as long as the datasource_list is set appropriately (and ds-identify knows how to correctly detect it), that should be it02:10
skull-skrimpLooks like my ds-identify is bailing at case "$DI_MODE" in check02:17
skull-skrimplooks like it was running in 'enabled' mode by default on ubuntu, think debian is search02:22
falcojrahh, interesting02:23
skull-skrimpyep, that was it, now it sees datasource02:23
skull-skrimpOn ubuntu server it defaults to enabled in /etc/cloud/ds-identify.cfg, and default is `search` in debian, so yea that was also the diff02:27
=== m_ueberall is now known as ueberall
=== janitha73 is now known as janitha7
minimalskull-skrimp: out of interest, which cloud provider is NWCS DataSource for?17:45
skull-skrimpOne I'm working on hah17:46
skull-skrimpAs in, its new and you dont know about it except for that PR17:46
minimalah, that explains why searching online gave no matches17:46
skull-skrimpYea, I'm writing a platform and need to integrate guest images with it via cloud-init17:47
skull-skrimpIn due time, hopefully you do know about it :)17:48
skull-skrimpI'm trying to write a platform that drastically simplifies guest management (dont like libvirt) with some of the cloud benefits (metadata, etc) with some modern functionality (REST, etc)17:50
minimalskull-skrimp: like firecracker provides? (in addition to its lightweight VM features)17:51
skull-skrimpHavent used17:51
minimalit comes with MMDS (metadata) and REST API17:51
minimalskull-skrimp: any particular distro you're using for client?17:51
skull-skrimp22.04 and Debian rn17:52
skull-skrimp20.04*17:52
skull-skrimphttps://github.com/firecracker-microvm/firecracker/blob/cd29c64b35f694a5a442a7778b7c1463551bc1e2/FAQ.md#what-is-the-difference-between-firecracker-and-qemu looks like its alternative to qemu. I use qemu pretty exclusively17:53
minimalyes firecracker is for microvms, basically only virtio devices, MMIO rather than PCI, stripped down BIOS17:55
minimalqemu has a similar microvm machine17:55
=== bahama- is now known as bahamat
* meena wonders if her tests would run faster if she scooched over a meter and plugged her laptop in…23:00
meenanope… not magically23:01
falcojrpytest-xdist is an extension you can install that'll split your tests among your cores23:02
falcojrinstall it and try "pytest -n auto" (though I think we have 3 tests that aren't a fan of that atm)23:02
meenafalcojr: or, i could run: pytest --last-failed23:02
falcojrthat too23:02
meenabrain's not been working great lately,,23:03
meenathere's a few tests that are unusually slow on my system and i don't know why23:03
falcojryeah, we've had some of those come around now and then. Usually it's a missed mock somewhere23:04
meenafalcojr: wonder if when i fix the 127 tests that fail when running pytest on FreeBSD, it will speed up…23:05
meenaso, here's my failures: https://bpaste.net/show/AY2Q23:10
meenai pushed my latest changes… need to goto bed now (will probably still be awake for some questions…)23:10
meenai can't figure out where to hook in the mocking of ifconfig -a23:11
falcojrdepends on how it's imported...sometimes just subp.subp works, otherwise you need the name of the module that it's being called it23:12
meenasee latest patchset for what I'm doing23:19

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