ovs: quote external-ids and other-config values (LP: #2070318)#512
ovs: quote external-ids and other-config values (LP: #2070318)#512daniloegea merged 1 commit intocanonical:mainfrom
Conversation
For complex values, ovs-vsctl requires that they are quoted or it will error out. LP: #2070318 While here, add some debugging information so we can see the ovs-vsctl command executed by "netplan apply" with --debug.
9191b49 to
824380e
Compare
slyon
left a comment
There was a problem hiding this comment.
This seems like a straight forward fix, LGTM!
Thank you very much for integrating the regression case form LP#2070318 into our autopkgtests. That makes me feel much more confident about the fix!
I also see we still have test values with colons, covering the removal of the _escape_colon method, e.g.:
ExecStart=/usr/bin/ovs-vsctl set Bridge br0 external-ids:netplan/global/set-controller="ptcp:,ptcp:1337,ptcp:1337:[fe80::1234%eth0],pssl:1337:[fe80::1],ssl:10.10.10.1,tcp:127.0.0.1:1337,tcp:[fe80::1234%eth0],tcp:[fe80::1]:1337,unix:/some/path,punix:other/path"
I guess we can give @dshcherb some time to confirm the fix, using your PPA. But IMO we don't necessarily need to block on his feedback, as we have a clear reproducer as part of the integration tests.
|
Thanks, Lukas. I'll go ahead and merge it then. |
|
@slyon @daniloegea Apologies, didn't notice a notification. I'll give it a try - should be easy to check in a VM. Thanks! |
|
It works correctly with the build in the PPA: https://bugs.launchpad.net/netplan/+bug/2070318/comments/2 Thanks again! |
For complex values, ovs-vsctl requires that they are quoted or it will error out. LP: #2070318
Interestingly, it seems to work from systemd units. But I added quotes there too.
I added a new test case to the integration test
test_settings_tag_cleanupthat will fail without quotes. It's based on the example provided in the bug report.While here, add some debugging information so we can see the ovs-vsctl command executed by "netplan apply" with --debug.
I created a PPA for Noble with this patch: https://launchpad.net/~danilogondolfo/+archive/ubuntu/netplan.io/
Description
Checklist
make checksuccessfully.make check-coverage).