L2tp smoketest fails if vyos-configd is running
vyos@vyos:~$ /usr/libexec/vyos/tests/smoke/cli/test_vpn_l2tp.py test_accel_ipv4_pool (__main__.TestVPNL2TPServer.test_accel_ipv4_pool) ... ok test_accel_ipv6_pool (__main__.TestVPNL2TPServer.test_accel_ipv6_pool) ... WARNING: IPv4 Server requires gateway-address to be configured! WARNING: 'default-ipv6-pool' is not defined ok test_accel_limits (__main__.TestVPNL2TPServer.test_accel_limits) ... ok test_accel_local_authentication (__main__.TestVPNL2TPServer.test_accel_local_authentication) ... User "test" has rate-limit configured for only one direction but both upload and download must be given! ok test_accel_name_servers (__main__.TestVPNL2TPServer.test_accel_name_servers) ... ok test_accel_next_pool (__main__.TestVPNL2TPServer.test_accel_next_pool) ... WARNING: 'default-pool' is not defined ok test_accel_ppp_options (__main__.TestVPNL2TPServer.test_accel_ppp_options) ... ok test_accel_radius_authentication (__main__.TestVPNL2TPServer.test_accel_radius_authentication) ... ok test_accel_shaper (__main__.TestVPNL2TPServer.test_accel_shaper) ... ok test_accel_snmp (__main__.TestVPNL2TPServer.test_accel_snmp) ... ok test_accel_wins_server (__main__.TestVPNL2TPServer.test_accel_wins_server) ... ok test_l2tp_server_authentication_protocols (__main__.TestVPNL2TPServer.test_l2tp_server_authentication_protocols) ... ok test_vpn_l2tp_dependence_ipsec_swanctl (__main__.TestVPNL2TPServer.test_vpn_l2tp_dependence_ipsec_swanctl) ... WARNING: 'default-pool' is not defined FAIL test_vpn_l2tp_dependence_ipsec_swanctl (__main__.TestVPNL2TPServer.test_vpn_l2tp_dependence_ipsec_swanctl) ... FAIL ====================================================================== FAIL: test_vpn_l2tp_dependence_ipsec_swanctl (__main__.TestVPNL2TPServer.test_vpn_l2tp_dependence_ipsec_swanctl) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/libexec/vyos/tests/smoke/cli/test_vpn_l2tp.py", line 91, in test_vpn_l2tp_dependence_ipsec_swanctl self.assertEqual('', cmd('echo vyos | sudo -S swanctl -L ')) AssertionError: '' != 'l2tp_remote_access: IKEv1/2, no reauthent[288 chars]amic' + l2tp_remote_access: IKEv1/2, no reauthentication, rekeying every 8600s, dpd delay 15s + local: 203.0.113.1 + remote: %any + local pre-shared key authentication: + remote pre-shared key authentication: + l2tp_remote_access_esp: TRANSPORT, rekeying every 3272s, dpd action is none + local: dynamic[0/l2f] + remote: dynamic ====================================================================== FAIL: test_vpn_l2tp_dependence_ipsec_swanctl (__main__.TestVPNL2TPServer.test_vpn_l2tp_dependence_ipsec_swanctl) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/libexec/vyos/tests/smoke/cli/base_accel_ppp_test.py", line 46, in tearDown self.assertTrue(process_named_running(self._process_name)) AssertionError: None is not true ---------------------------------------------------------------------- Ran 13 tests in 48.244s FAILED (failures=2)
After stopping vyos-configd
vyos@vyos:~$ sudo systemctl stop vyos-configd vyos@vyos:~$ /usr/libexec/vyos/tests/smoke/cli/test_vpn_l2tp.py test_accel_ipv4_pool (__main__.TestVPNL2TPServer.test_accel_ipv4_pool) ... ok test_accel_ipv6_pool (__main__.TestVPNL2TPServer.test_accel_ipv6_pool) ... ok test_accel_limits (__main__.TestVPNL2TPServer.test_accel_limits) ... ok test_accel_local_authentication (__main__.TestVPNL2TPServer.test_accel_local_authentication) ... ok test_accel_name_servers (__main__.TestVPNL2TPServer.test_accel_name_servers) ... ok test_accel_next_pool (__main__.TestVPNL2TPServer.test_accel_next_pool) ... ok test_accel_ppp_options (__main__.TestVPNL2TPServer.test_accel_ppp_options) ... ok test_accel_radius_authentication (__main__.TestVPNL2TPServer.test_accel_radius_authentication) ... ok test_accel_shaper (__main__.TestVPNL2TPServer.test_accel_shaper) ... ok test_accel_snmp (__main__.TestVPNL2TPServer.test_accel_snmp) ... ok test_accel_wins_server (__main__.TestVPNL2TPServer.test_accel_wins_server) ... ok test_l2tp_server_authentication_protocols (__main__.TestVPNL2TPServer.test_l2tp_server_authentication_protocols) ... ok test_vpn_l2tp_dependence_ipsec_swanctl (__main__.TestVPNL2TPServer.test_vpn_l2tp_dependence_ipsec_swanctl) ... ok ---------------------------------------------------------------------- Ran 13 tests in 60.701s OK vyos@vyos:~$
This issue exists only in 1.5. I tested on 1.4.0-epa2 - tests pass.