[OVSDB-255] Fixed IPs of dhcp_port are not updated when a new subnet is added to the network. Created: 11/Jan/16  Updated: 14/Feb/16  Resolved: 14/Feb/16

Status: Resolved
Project: ovsdb
Component/s: Neutron
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Sridhar Gaddam Assignee: Oded Shvartz
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4924

 Description   

Observations:
Create a Neutron tenant network (n1).
Create an IPv4 subnet with 10.0.0.0/24 CIDR in network (n1).
Create one more IPv4 subnet with 20.0.0.0/24 subnet in the same network
(n1).
DHCP port in Neutron db has two fixed ips (i.e., 10.0.0.2 and 20.0.0.2),
whereas md-sal db has only one fixed_ip (i.e., 10.0.0.2).

Fixed_ips of dhcp_port are not updated when multiple subnets are added to a network.



 Comments   
Comment by Oded Shvartz [ 14/Jan/16 ]

This bug caused by a networking-odl bug as described at : https://bugs.launchpad.net/networking-odl/+bug/1533720

Comment by Sam Hague [ 19/Jan/16 ]

Oded, can you verify if this is fixed now with the networking-odl patch?

Comment by Sridhar Gaddam [ 25/Jan/16 ]

Along with the fix in networking-odl we also need the following fix in Neutron for the usecase mentioned below.
https://review.openstack.org/#/c/271223/

UseCase:
1. Start fresh (i.e., no routers/networks/subnets/ports).
2. Create a neutron tenant network (say t1)
3. Create an IPv4 subnet (say s1 with CIDR 10.0.0.0/24) on the network t1.
4. Create an IPv6 SLAAC subnet (say s2 with 2001:db8::/64) on the network t1.

After step 3 above when we query port info from mdsal, we can see a port with device_owner: "network:dhcp" and fixed_ip

{ip_address: "10.0.0.2"}

Step 4 does not trigger any port update event from Neutron eventhough Neutron db updates the fixed_ips of the dhcp port with an IPv6 address from S2 CIDR.
Patch https://review.openstack.org/#/c/271223/ triggers a port_update event in Neutron for IPv6 auto-address subnets.

Comment by Sridhar Gaddam [ 07/Feb/16 ]

OpenStack Neutron patch https://review.openstack.org/#/c/271223/ is merged in Master branch. Proposed a cherry-pick to stable/liberty https://review.openstack.org/#/c/277084/

Comment by Sridhar Gaddam [ 10/Feb/16 ]

Since the issue is present in networking-odl and neutron and both are merged upstream. Closing this bug.

Comment by Sridhar Gaddam [ 10/Feb/16 ]

For info, patches for stable/liberty are currently under review.
Networking-odl: https://review.openstack.org/#/c/272451/
Neutron: https://review.openstack.org/#/c/277084/

Comment by Sridhar Gaddam [ 14/Feb/16 ]

Stable/liberty patchsets are merged.

Generated at Wed Feb 07 20:35:54 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.