/srv/irclogs.ubuntu.com/2023/04/19/#cloud-init.txt

meenait looks like OpenBSD and NetBSD have source selection for routes, but FreeBSD doesn't. 08:01
RaghavendraHello, I'm trying to use the disk_setup commands in cloud-init but is failing with below errors10:03
RaghavendraError: Invalid multi-line string10:03
RaghavendraOn modules/cmx_developer/ldp/main.tf line 113: Quoted strings may not be split over multiple lines. To produce a10:03
Raghavendramulti-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template10:03
Raghavendrasyntax.10:03
RaghavendraError: Invalid multi-line string10:03
RaghavendraOn modules/cmx_developer/ldp/main.tf line 114: Quoted strings may not be split over multiple lines. To produce a10:03
Raghavendramulti-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template10:03
Raghavendrasyntax.10:03
RaghavendraError: Unterminated template string10:03
RaghavendraOn modules/cmx_developer/ldp/main.tf line 104: No closing marker was found for the string.10:03
Raghavendracan somebody please check?10:06
RaghavendraAnd also we are upgrading Terraform version from 0.11.3 to 1.3.710:07
aciba[m]Hello Raghavendra. Could you provide more context, like the user-data you are using? Those files and traces do not belong to cloud-init, so without more info it's hard to know what is going on.12:28
holmanbmeena: good question15:06
holmanbmeena: ip route append is typically for adding multipath routes15:06
holmanbmeena: however that's not what the callsite is supposed to be doing - it's supposed to be adding static routes15:06
holmanbmeena: so I wonder it that is wrong, or not a requirement15:07
holmanblooks like this commit introduced those calls: https://github.com/canonical/cloud-init/commit/07b17236be5665bb552c7460102bcd07bf8f2be815:11
-ubottu:#cloud-init- Commit 07b1723 in canonical/cloud-init "net: add rfc3442 (classless static routes) to EphemeralDHCP"15:11
holmanbmeena: I need to test this out further, but I strongly suspect that we we can replace the route_append() calls with route_add() and get the same functionality.15:16
holmanbmeena: for example -> `sudo ip -4 route append 2.3.4.5/32  dev enp24s0` yields the same routing table entry as `sudo ip -4 route add 2.3.4.5/32 dev enp24s0` does15:17
minimalholmanb: the "ip route" manpage doesn't really say much about "append" beyond "With IPv6, further nexthops may be appended to the same route via the ip route append command."15:56
minimalso its behaviour vs "ip route add" only seems to differ in that scenario15:57
holmanbright - I'm not sure why it was ever used in the first place since it is barely mentioned in the man page, and ip route add does what we want (and is documented to do so).16:08
holmanbGiven the choice I'd chose the subcommand that is documented to do what we want, rather than the one that is documented to do something else, which also happens to also do the right thing.16:09
minimalWWCD? (What would ChatGPT Do?) ;-)16:10
holmanblol16:11
minimalas it seems to have become the authority for so many people these days lol16:11
=== Thargoid is now known as stw
holmanblooks like a pretty minor change: https://github.com/canonical/cloud-init/pull/213017:18
-ubottu:#cloud-init- Pull 2130 in canonical/cloud-init "net: Use `ip route add` to add static routes" [Open]17:18
meenaholmanb: starting to get the distinct feeling that pull requests are an awful technology for your workflow17:30
holmanbheh, how do you mean?17:31
meenasee https://jg.gg/2018/09/29/stacked-diffs-versus-pull-requests/17:35
meenabasically: you often have multiple PRs open, each of which is its own thesis. but some of which builds on other PRs. this is really difficult to represent in GitHub17:37
meenayou can't have me independently review and contribute to one of those PRs that build on top of another, because I'm seeing all of it, not just the relevant diffs17:38
holmanbthat's true17:47
=== terrorjack4 is now known as terrorjack
blackboxswholmanb: I'm good on your dhcp refactor branch. Thanks for the decomposition into separate PRs https://github.com/canonical/cloud-init/pull/212221:31
-ubottu:#cloud-init- Pull 2122 in canonical/cloud-init "[1/2] DHCP: Refactor dhcp client code" [Open]21:31
holmanbblackboxsw: no problem - thanks for the review!22:15
holmanbmeena: I just merged PR #2122 and rebased #2127 on top of it.22:41
holmanbthat PR has a much cleaner git history now22:43
holmanbthough we still have the PR workflow problem you pointed out, since I'd like to land PR #2130 first22:44
meenaheh23:08
meenaI actually really enjoyed working with BitBucket, when Mercurial was their first Tier product23:09
meenayou could open a PR from a single commit23:10

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