Had to do the following modifications to make this work:
diff --git a/neutron_vpnaas/services/vpn/device_drivers/strongswan_ipsec.py b/neutron_vpnaas/services/vpn/device_drivers/strongswan_ipsec.py
index 708952a1f..1d073d135 100644
--- a/neutron_vpnaas/services/vpn/device_drivers/strongswan_ipsec.py
+++ b/neutron_vpnaas/services/vpn/device_drivers/strongswan_ipsec.py
@@ -180,7 +180,7 @@ class StrongSwanProcess(ipsec.BaseSwanProcess): ipsec.conf. Currently established connections are not affected by configuration changes.
"""
- self._execute([self.binary, 'reload'])
+ self._execute([self.binary, 'reload'], extra_ok_codes=[7])
def start(self):
"""Start the process for only auto=route mode now.
diff --git a/neutron_vpnaas/services/vpn/device_drivers/template/strongswan/strongswan.conf.template b/neutron_vpnaas/services/vpn/device_drivers/template/strongswan/strongswan.conf.template
index 9cd5fda57..2470cbb5e 100644
--- a/neutron_vpnaas/services/vpn/device_drivers/template/strongswan/strongswan.conf.template
+++ b/neutron_vpnaas/services/vpn/device_drivers/template/strongswan/strongswan.conf.template
@@ -2,6 +2,9 @@ charon { load_modular = yes
plugins { include strongswan.d/charon/*.conf
+ stroke {
+ socket = unix:///var/run/charon.ctl
+ }
}
}
---
The extra_ok_codes=[7] is a bit dodgy, can't see anything about non-zero return codes :/
Also see https:/ /bugs.launchpad .net/neutron/ +bug/1938571 filled with frustration for years..
Had to do the following modifications to make this work: vpnaas/ services/ vpn/device_ drivers/ strongswan_ ipsec.py b/neutron_ vpnaas/ services/ vpn/device_ drivers/ strongswan_ ipsec.py .1d073d135 100644 vpnaas/ services/ vpn/device_ drivers/ strongswan_ ipsec.py vpnaas/ services/ vpn/device_ drivers/ strongswan_ ipsec.py ss(ipsec. BaseSwanProcess ):
ipsec. conf. Currently established connections are not affected by
configuration changes. [self.binary, 'reload']) [self.binary, 'reload'], extra_ok_codes=[7])
diff --git a/neutron_
index 708952a1f.
--- a/neutron_
+++ b/neutron_
@@ -180,7 +180,7 @@ class StrongSwanProce
"""
- self._execute(
+ self._execute(
def start(self): vpnaas/ services/ vpn/device_ drivers/ template/ strongswan/ strongswan. conf.template b/neutron_ vpnaas/ services/ vpn/device_ drivers/ template/ strongswan/ strongswan. conf.template .2470cbb5e 100644 vpnaas/ services/ vpn/device_ drivers/ template/ strongswan/ strongswan. conf.template vpnaas/ services/ vpn/device_ drivers/ template/ strongswan/ strongswan. conf.template
load_ modular = yes
include strongswan. d/charon/ *.conf /var/run/ charon. ctl
"""Start the process for only auto=route mode now.
diff --git a/neutron_
index 9cd5fda57.
--- a/neutron_
+++ b/neutron_
@@ -2,6 +2,9 @@ charon {
plugins {
+ stroke {
+ socket = unix://
+ }
}
}
---
The extra_ok_codes=[7] is a bit dodgy, can't see anything about non-zero return codes :/