/srv/irclogs.ubuntu.com/2022/11/16/#cloud-init.txt

=== blackboxsw is now known as blackboxsw_away
acibameena: about the dict with repeated keys, I am not sure which will be the access pattern to the data-structure, but may this helps: https://docs.python.org/3/library/collections.html#collections.defaultdict10:41
acibameena: using a defaultdict(list) and append elements to the same key10:41
meenaaciba: to be honest, I'll need to see what the access pattern is myself, first, before tackling cjp256's duplicated MAC issue12:15
meenalooking at patches that past me imported into this project i'm working on again and seriously questioning their competence.12:57
itjamieany chance for a review on https://github.com/canonical/cloud-init/pull/1808 this week?15:02
-ubottu:#cloud-init- Pull 1808 in canonical/cloud-init "Support string replacement for nocloud seed path" [Open]15:02
=== blackboxsw_away is now known as blackboxsw
blackboxswitjamie: thanks for the ping. definitely going through that today, was dealing with a release upload for cloud-init 22.4 and now I'm free and focused on it.15:15
blackboxswitjamie: thx for that PR by the way, I had wanted to pull something together in that space to improve our deployment strategy, I'll have a couple of thoughts for you today on it15:16
minimalblackboxsw: also wondering about related changes to the Phone Home module - thinking of auto-provisioning scenarios where you can to control both the user-data supplied (as itjamie's PR relates to) and also the end-of-cloud-init-run data sent by Phone Home module15:43
minimalBTW just saw the revised c-i ReadThe~Docs site and first thing struct me was a negative - the modules page now does not provide a list of modules at the top with links within the page to each individual module :-(15:43
falcojrminimal: That moved to the sidebar on the right, but I can see how that could less intuitive15:45
minimalfalcojr: add didn't realise that was a "pop up" side, found it now via the icon15:46
blackboxswminimal: thanks for that thought on Phone Home module. That would make sense too: parameterized URLs  based on DMI or sysfs data on the VM/system16:16
blackboxswI'll try to keep that in mind with the review on PR 1808 to see if we might provide a common interface/function that could surface these parameterized values in a URL in a way that can be consumed my multiple config modules16:17
itjamieParameterized urls would be a big change from the "folder" based urls currently used wouldnt it? Its why i didnt even attempt go that route16:24
itjamieSince right now urls in seedfrom must end in / and then it appends each filename. Changing that to param based would seem like a breaking change...16:25
itjamiea middleground could be to supply all the dmi data as headers... that wouldnt change the existing url structure16:27
minimalblackbowsw: yeah i'm thinking of a feedback loop - dynamic user-data for bootstrap and then possibilty some more info than currently provided by Phone Home to confirm the end result of bootstrapping17:06
blackboxswitjamie: I think providing headers may be an interesting/compelling use-case too from cc_phone_home. What I meant was a simplistic url processing from cc_phone_home's 'url' config to allow variable substitution in the `url:` config that cc_phone_home talks to. 17:10
blackboxswsomething like `url:  http://example.com/{sys.chassis_serial}/`17:11
itjamieThats separate from the nocloud methods though right?  I personally want to continue to use seedfrom but with a bit of url processing17:12
blackboxswminimal/itjamie: sounds like you are thinking a bit more like supplemental POST data based on certain keys ?17:12
blackboxswitjamie: yes I agree that sentiment is separate, but I was confining my ideal so something that just generacally handles uniform URL string processing with a supoort template/variable syntax that can source /sys/class/dmi/id/* fields which I think will help your seedfrom URL cause and could be leveraged in other places if we don't define it strictly in a  function insie DataSourceNoCloud.py. 17:14
minimalblackboxsw: I don't have any firm data in mind currently17:15
itjamieMakes sense17:15
blackboxswitjamie: BTW I'm hoping to also povide you w/ skeletal unittest coverage w/ a review today on this to help grease the wheels a bit17:15
blackboxswlotsa meetings today, so the review probably won't be done for a couple hours.17:15
blackboxswcommunity-notce: upstream release 22.4 has been published https://github.com/canonical/cloud-init/releases/tag/22.417:18
blackboxswcommunity-notice: Also Ubuntu has uploaded StableUpstreamReleases of 22.4 into the (kinetic|jammy|focal|bionic)-proposed pockets for testing and verification this week. If you are interested in testing behavior of 22.4 on your cloud of choice: please see https://cloudinit.readthedocs.io/en/latest/topics/debugging.html#manual-sru-verification-procedure17:19
blackboxswcommunity-notice: Thanks falcojr for driving the release, to see the content/features and fixes in 22.4 checkout James' post at https://discourse.ubuntu.com/t/release-of-cloud-init-22-4/3226517:20
=== blackboxsw changed the topic of #cloud-init to: 22.4 Released! 11/16 | Bugs: https://bugs.launchpad.net/cloud-init/+filebug | PRs: https://git.io/JeVed | release schedule: https://discourse.ubuntu.com/t/cloud-init-2022-release-schedule/25413
=== blackboxsw changed the topic of #cloud-init to: 22.4 Released! 11/15 | Bugs: https://bugs.launchpad.net/cloud-init/+filebug | PRs: https://git.io/JeVed | release schedule: https://discourse.ubuntu.com/t/cloud-init-2022-release-schedule/25413
holmanbAnhVoMSFT: Do we have any ideas how this behavior might be similar/different on the BSDs? I see https://www.freebsd.org/cgi/man.cgi?query=hv_netvsc&sektion=417:47
holmanbAnhVoMSFT: A retry loop with a small delay before continuing sounds pretty awful, but since dup macs is currently a failure path anyways, the only delay it would cause is a delay before throwing an exception that stops cloud-init.17:52
holmanbmeena: I meant to ping you as well on the bsd question a moment ago, so uh, ping?17:55
holmanbAnhVoMSFT cjp256: Adding driver-specific logic to that would help us to fail a little bit faster in some cases. Since this failure ends in an unconfigured system anyways, I wonder whether the added complexity of keying off a driver is worth it.17:57
atmarkhello, I have OpenStack VM instance running and tried to modify the metadata for the instance. The VM will never show the updated metadata. I can pull the current metadata from the OpenStack API inside the VM but the other sources such as ConfigDrive will not update. Is there way to avoid re-deploying the VM to see the updated metadata?18:28
=== smoser1 is now known as smoser
falcojratmark: is the updated metadata reflected if you query the metadata URL directly? If not, there's nothing cloud-init can do about that. If so, you can run 'cloud-init clean' to force cloud-init to re-fetch the metadata on next boot18:57
falcojrsame if it's exposed through a config drive. If the files on mount aren't updated, I don't think there's anything cloud-init can do about that18:58
meenaholmanb, AnhVoMSFT , I would have to spin up a server in Azure to test, and/or read source code19:19
AnhVoMSFTholmanb meena: https://github.com/canonical/cloud-init/pull/185320:50
-ubottu:#cloud-init- Pull 1853 in canonical/cloud-init "net: skip duplicate mac check for netvsc nic and its VF" [Open]20:50
minimala question about network v2, with #1794 merged the docs now say that gateway4 and gateway6 are deprecated. So in a static config how then should a default gateway be specified? via "routes:" ?23:18

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