Neutron VPNAAS don't update site connections on python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Unassigned |
Bug Description
Tested with StrongSwan but I hope this can cause issues on others drivers too.
On python3 when new connection is created it's stuck in PENDING_CREATE state. Everything is working but connection state is never updated. Main reason is that agent send wrong id to server. On python3 message look like this:
[{'updated_
on python2
[{'status': 'ACTIVE', 'ipsec_
Notice uid in ipsec_site_
We was able to fix this issue via patching netns_wrapper:
diff --git a/neutron_
index 77378dcc7.
--- a/neutron_
+++ b/neutron_
@@ -23,6 +23,7 @@ from neutron.common import utils
from oslo_config import cfg
from oslo_log import log as logging
from oslo_rootwrap import wrapper
+from neutron_lib.utils import helpers
import six
from neutron_
@@ -67,6 +68,8 @@ def execute(cmd):
_stdout, _stderr = obj.communicate()
+ _stdout = helpers.
+ _stderr = helpers.
msg = ('Command: %(cmd)s Exit code: %(returncode)s '
{'cmd': cmd,
Changed in neutron: | |
assignee: | nobody → Viktor Křivák (viktor-krivak) |
Changed in neutron: | |
importance: | Undecided → High |
tags: | added: vpnaas |
Fix proposed to branch: master /review. openstack. org/605783
Review: https:/