Skip to content

Commit

Permalink
Fix strongSwan configuration file with strongSwan >= version 5.7.0 (a…
Browse files Browse the repository at this point in the history
…ntrea-io#1191)

Starting from version 5.7.0, strongSwan no longer supports specifying a
configuration parameter with the path delimited by dots in a
configuration file. This change breaks ovs-ipsec-monitor which writes
strongSwan configuration parameters with the dotted paths.
This commit applies an ovs-monitor-ipsec patch to fix the issue, as a
workaround before the patch is merged to OVS upstream.
  • Loading branch information
jianjuns authored and antoninbas committed Sep 3, 2020
1 parent 4254e84 commit ea33d94
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build/images/ovs/apply-patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,17 @@ curl https://github.com/openvswitch/ovs/commit/fe175ac17352ceb2dbc9958112b4b1bc1
curl https://github.com/lzhecheng/ovs/commit/869b06356e389079861962160e864df609d033e5.patch | \
git apply

# Starting from version 5.7.0, strongSwan no longer supports specifying a configuration parameter
# with the path delimited by dots in a configuration file. This patch fixes the strongSwan
# configuration parameters that ovs-monitor-ipsec writes, to comply with the new strongSwan format.
# After the patch is merged into OVS upstream, we should update the patch URL with the upstream
# commit. After a new OVS release with the fix is available, we can switch to use that OVS release,
# and remove the workaround to apply the patch here.
curl https://github.com/jianjuns/ovs/commit/714b133ef2b2d8dac0770b78265a8b52c2f00f2f.patch | \
git apply

# OVS hardcodes the installation path to /usr/lib/python3.7/dist-packages/ but this location
# does not seem to be in the Python path in Ubuntu 20.04. There may be a better way to do this,
# but this seems like an acceptable workaround.
sed -i 's/python3\.7/python3\.8/' debian/openvswitch-test.install
sed -i 's/python3\.7/python3\.8/' debian/python3-openvswitch.install
sed -i 's/python3\.7/python3\.8/' debian/python3-openvswitch.install

0 comments on commit ea33d94

Please sign in to comment.