/srv/irclogs.ubuntu.com/2021/02/17/#cloud-init.txt

=== ijohnson|lunch is now known as ijohnson
=== apollo13_ is now known as apollo13
slingamni'm thinking about trying to remove python3-requests as a dependency of cloud-init16:57
slingamnwhat's the oldest python supported by cloud-init?16:58
powersjslingamn, saw your conversation in #ubuntu-devel, what is driving the desire to remove it?17:00
powersjftr, python 3.4 per https://lists.launchpad.net/cloud-init/msg00227.html17:00
slingamni don't like that python3-requests has become necessary core infrastructure for linux17:00
slingamnit's too big and too sloppy17:01
slingamnand it's either obsolete or unnecessary for API calls17:01
slingamnshort writeup in this issue comment: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1903605/comments/417:02
ubot5Ubuntu bug 1903605 in apport (Ubuntu) "proposed patch: remove dependency on python3-requests" [Medium,Fix released]17:02
Odd_Blokeslingamn: Unless you can provide very convincing arguments, I don't see us accepting that change upstream: it would represent a major change to cloud-init with limited upside.  As an example of what could break: users can configure cloud-init to include remote configuration via HTTP, which could come from any HTTP endpoint whatsoever; your assertion that chardet is not necessary seems less likely to hold17:49
Odd_Blokethere.  Also, your reasoning in the linked comment is at least partially invalid: per the package description of python3-certifi, "The version of certifi in this Debian package is patched to return the location of Debian-provided CA certificates, instead of those packaged by upstream."17:49
slingamnremote configuration?17:49
Odd_Blokeslingamn: https://cloudinit.readthedocs.io/en/latest/topics/format.html#include-file17:50
slingamnthat's a good point about certifi17:51
slingamnsorry, i don't really understand this use case with include files17:52
Odd_Blokeslingamn: So you can provide config to cloud-init via user-data in most clouds: this could be a shell script (which cloud-init will execute) or cloud-config YAML (which cloud-init will handle appropriately).  It could also be an include file, which specifies a list of URLs which cloud-init will fetch and treat as user-data.17:54
Odd_BlokeSo "#include\nhttp://example.com/user-data\nhttp://myproject.example.com/some-specific-data" would fetch those two URLs.17:55
slingamnoh sorry i think i don't even understand the concept of user-data here17:56
Odd_BlokeYou don't really need to: the point is that we need to be able to fetch arbitrary URLs (which therefore cannot be trusted to even be compliant HTTP servers) and unless the requests replacement is bug-compatible, then we may regress users.17:57
slingamnhmm, ok17:57
Odd_BlokeSo we need to weigh the benefit of not using requests (which I am yet to be convinced of :) against the risk of regressing users.17:57
slingamnyeah that's probably a dealbreaker17:58
Odd_BlokeHence the need for very convincing arguments. ;)17:58
Odd_BlokeI appreciate the line of inquiry, I'm always keen to strip out dependencies if we can. :)17:59
slingamnthanks for explaining :-)18:00
Odd_Bloke:)18:02
=== ijohnson is now known as ijohnson|lunch
falcojrOdd_Bloke and blackboxsw: here's my notes on my apply_network_config digging18:34
falcojrhttps://gist.github.com/TheRealFalcon/42083a9062a15ccdfdabe03ff598efa918:34
falcojrI want to refactor it to only apply config at local stage and see if that breaks anything18:35
Odd_Blokefalcojr: Great, thanks!19:22
Odd_BlokeIntegration tests are currently working if I run `pytest` (even in a fresh virtualenv with only the integration requirements installed) but failing if I run `tox -re integration-tests`. ;.;19:29
falcojrI saw a problem like that once...if I was running tox itself from within a virtualenv it did weird things19:33
falcojrdidn't really investigate it though so not sure why that would be the case19:33
blackboxswOdd_Bloke: I think I've gotten  out of the way on Azure UUID case-insensitive comparison now  https://github.com/canonical/cloud-init/pull/79820:29
=== ijohnson|lunch is now known as ijohnson
Odd_Blokeblackboxsw: You mean you've reverted to doing it the way you were doing it before I got in the way? ;)20:39
blackboxswOdd_Bloke: yeaaaaah but we now ping the image serial :). And we now have more context about bionic vs xenial Azure fips/non-fips behavior.21:07
=== powersj changed the topic of #cloud-init to: 20.4 (Nov 24), 21.1 (Feb 22) | file a bug: https://bugs.launchpad.net/cloud-init/+filebug | pull-requests: https://git.io/JeVed | meeting minutes: https://goo.gl/mrHdaj | next office hours: TBD
johnsonshiHey all, this PR has been approved and is ready for merging now: https://github.com/canonical/cloud-init/pull/80022:13
johnsonshiThanks! :)22:14

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