← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1848201] [NEW] [neutron-vpnaas] Neutron installed inside venv makes VPNaaS broken

 

Public bug reported:

As location of NS_WRAPPER [1] is not aboslute and relies on $PATH in the
situation when neutron and vpnaas is installed inside virtualenv,
NS_WRAPPER won't be able to launch as it won't be found in $PATH which
will cause a failure:

2019-10-08 17:37:11.619 17205 ERROR neutron.agent.linux.utils [-] Exit
code: 1; Stdin: ; Stdout: ; Stderr: exec of "neutron-vpn-netns-wrapper"
failed: No such file or directory

2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec [-] Failed to enable vpn process on router 19514b2a-95bc-499f-9590-a5014ca04e7f: ProcessExecutionError: Exit code: 1; Stdin: ; Stdout: ; Stderr: exec of "neutron-vpn-netns-wrapper" failed: No such file or directory
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec Traceback (most recent call last):
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron_vpnaas/services/vpn/device_drivers/ipsec.py", line 336, in enable
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     self.ensure_configs()
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron_vpnaas/services/vpn/device_drivers/libreswan_ipsec.py", line 91, in ensure_configs
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     self._ipsec_execute(['_stackmanager', 'start'])
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron_vpnaas/services/vpn/device_drivers/libreswan_ipsec.py", line 52, in _ipsec_execute
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     extra_ok_codes=extra_ok_codes)
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 788, in execute
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     run_as_root=run_as_root)
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 147, in execute
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     returncode=returncode)
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec ProcessExecutionError: Exit code: 1; Stdin: ; Stdout: ; Stderr: exec of "neutron-vpn-netns-wrapper" failed: No such file or directory
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec 
2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec 


[1] https://opendev.org/openstack/neutron-
vpnaas/src/branch/master/neutron_vpnaas/services/vpn/device_drivers/libreswan_ipsec.py#L22

** Affects: neutron
     Importance: Undecided
     Assignee: Dmitriy Rabotyagov (noonedeadpunk)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1848201

Title:
  [neutron-vpnaas] Neutron installed inside venv makes VPNaaS broken

Status in neutron:
  In Progress

Bug description:
  As location of NS_WRAPPER [1] is not aboslute and relies on $PATH in
  the situation when neutron and vpnaas is installed inside virtualenv,
  NS_WRAPPER won't be able to launch as it won't be found in $PATH which
  will cause a failure:

  2019-10-08 17:37:11.619 17205 ERROR neutron.agent.linux.utils [-] Exit
  code: 1; Stdin: ; Stdout: ; Stderr: exec of "neutron-vpn-netns-
  wrapper" failed: No such file or directory

  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec [-] Failed to enable vpn process on router 19514b2a-95bc-499f-9590-a5014ca04e7f: ProcessExecutionError: Exit code: 1; Stdin: ; Stdout: ; Stderr: exec of "neutron-vpn-netns-wrapper" failed: No such file or directory
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec Traceback (most recent call last):
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron_vpnaas/services/vpn/device_drivers/ipsec.py", line 336, in enable
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     self.ensure_configs()
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron_vpnaas/services/vpn/device_drivers/libreswan_ipsec.py", line 91, in ensure_configs
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     self._ipsec_execute(['_stackmanager', 'start'])
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron_vpnaas/services/vpn/device_drivers/libreswan_ipsec.py", line 52, in _ipsec_execute
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     extra_ok_codes=extra_ok_codes)
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 788, in execute
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     run_as_root=run_as_root)
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec   File "/openstack/venvs/neutron-19.0.0.0b2.dev70/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 147, in execute
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec     returncode=returncode)
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec ProcessExecutionError: Exit code: 1; Stdin: ; Stdout: ; Stderr: exec of "neutron-vpn-netns-wrapper" failed: No such file or directory
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec 
  2019-10-08 17:37:11.620 17205 ERROR neutron_vpnaas.services.vpn.device_drivers.ipsec 


  
  [1] https://opendev.org/openstack/neutron-vpnaas/src/branch/master/neutron_vpnaas/services/vpn/device_drivers/libreswan_ipsec.py#L22

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1848201/+subscriptions


Follow ups