yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74506
[Bug 1789824] [NEW] One single ip is allocated for a port in the network with multiple subnets
Public bug reported:
Steps:
1.Create a network with multiple subnets.
2.Create a port with the network above.
3.Port is created, but only one ip is allocated for the port.
The problem is as follows in [1]:
def _allocate_ips_for_port(self, context, port):
..............
..............
..............
.............
else:
ips = []
version_subnets = [v4, v6_stateful]
for subnets in version_subnets:
if subnets:
ips.append([{'subnet_id': s['id']}#"extend"should be used instead of "append"
for s in subnets])
[1]https://github.com/openstack/neutron/blob/master/neutron/db/ipam_pluggable_backend.py#L223
** Affects: neutron
Importance: Undecided
Assignee: sunzuohua (zuohuasun)
Status: New
** Changed in: neutron
Assignee: (unassigned) => sunzuohua (zuohuasun)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1789824
Title:
One single ip is allocated for a port in the network with multiple
subnets
Status in neutron:
New
Bug description:
Steps:
1.Create a network with multiple subnets.
2.Create a port with the network above.
3.Port is created, but only one ip is allocated for the port.
The problem is as follows in [1]:
def _allocate_ips_for_port(self, context, port):
..............
..............
..............
.............
else:
ips = []
version_subnets = [v4, v6_stateful]
for subnets in version_subnets:
if subnets:
ips.append([{'subnet_id': s['id']}#"extend"should be used instead of "append"
for s in subnets])
[1]https://github.com/openstack/neutron/blob/master/neutron/db/ipam_pluggable_backend.py#L223
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1789824/+subscriptions
Follow ups