yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #80241
[Bug 1846494] [NEW] neutron-openvswitch-agent and IPv6
Public bug reported:
I got two problems connected to IPv6 and neutron-openvswitch-agent
(Queens version of Openstack, Ubuntu 18.04):
The first problem:
The default value of "of_listen_address" is 127.0.0.1
(/etc/neutron/plugins/ml2/openvswitch_agent.ini).
When I changed it to its IPv6 equivalent "::1", it tries to pass that to
ovs-vswitchd as "tcp:::1:6633" which is not valid url according IPv6 and
as result ovs-vswitchd complains about that. When I set value to [::1]
with idea to get valid url "tcp:[::1]:6633, I got an exception:
Traceback (most recent call last):
File "a.py", line 22, in <module>
print(conf.OVS.of_listen_address)
File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 3378, in __getattr__
return self._conf._get(name, self._group)
File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2940, in _get
value = self._do_get(name, group, namespace)
File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2983, in _do_get
% (opt.name, str(ve)))
oslo_config.cfg.ConfigFileValueError: Value for option of_listen_address is not valid: [::1] is not IPv4 or IPv6 address
So the composing of url with of_listen_address with IPv6 and
of_listen_port is not done correctly.
The second problem:
When I try to set "ovsctl set-manager ptcp:6640:127.0.0.1" to be IPv6 to
its equivalent - "ovsctl set-manager ptcp:6640:[::1]", again in
"openvswitch_agent.ini", I got:
ovs-vsctl[1957]: ovs|00001|vsctl|INFO|Called as /usr/bin/ovs-vsctl set-manager ptcp:6640:[::1]
ovs-config.py[1962]: configobj.ParseError: Invalid line ('ovs-vsctl set-manager ptcp:6640:[::1]') (matched as neither section nor keyword) at line 58.
Some times I saw also mismatched value as : "ptcp::1]:6640:[" . But I
lost steps for reproduction.
So again the composing of url with "of_listen_address" with IPv6 and
"of_listen_port" is not done correctly
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1846494
Title:
neutron-openvswitch-agent and IPv6
Status in neutron:
New
Bug description:
I got two problems connected to IPv6 and neutron-openvswitch-agent
(Queens version of Openstack, Ubuntu 18.04):
The first problem:
The default value of "of_listen_address" is 127.0.0.1
(/etc/neutron/plugins/ml2/openvswitch_agent.ini).
When I changed it to its IPv6 equivalent "::1", it tries to pass that
to ovs-vswitchd as "tcp:::1:6633" which is not valid url according
IPv6 and as result ovs-vswitchd complains about that. When I set value
to [::1] with idea to get valid url "tcp:[::1]:6633, I got an
exception:
Traceback (most recent call last):
File "a.py", line 22, in <module>
print(conf.OVS.of_listen_address)
File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 3378, in __getattr__
return self._conf._get(name, self._group)
File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2940, in _get
value = self._do_get(name, group, namespace)
File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2983, in _do_get
% (opt.name, str(ve)))
oslo_config.cfg.ConfigFileValueError: Value for option of_listen_address is not valid: [::1] is not IPv4 or IPv6 address
So the composing of url with of_listen_address with IPv6 and
of_listen_port is not done correctly.
The second problem:
When I try to set "ovsctl set-manager ptcp:6640:127.0.0.1" to be IPv6
to its equivalent - "ovsctl set-manager ptcp:6640:[::1]", again in
"openvswitch_agent.ini", I got:
ovs-vsctl[1957]: ovs|00001|vsctl|INFO|Called as /usr/bin/ovs-vsctl set-manager ptcp:6640:[::1]
ovs-config.py[1962]: configobj.ParseError: Invalid line ('ovs-vsctl set-manager ptcp:6640:[::1]') (matched as neither section nor keyword) at line 58.
Some times I saw also mismatched value as : "ptcp::1]:6640:[" . But I
lost steps for reproduction.
So again the composing of url with "of_listen_address" with IPv6 and
"of_listen_port" is not done correctly
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1846494/+subscriptions
Follow ups