Bug 1939601 - IPv6 slaac subnet creation causes FixedIpsSubnetsNotOnSameSegment error
Summary: IPv6 slaac subnet creation causes FixedIpsSubnetsNotOnSameSegment error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z2
: 16.2 (Train on RHEL 8.4)
Assignee: Elvira
QA Contact: Alex Katz
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-16 17:01 UTC by Alex Katz
Modified: 2022-03-23 22:10 UTC (History)
8 users (show)

Fixed In Version: openstack-neutron-15.3.5-2.20220113150030.94e4cbb.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-23 22:10:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 813457 0 None MERGED [OVN] Allow IP allocation with different segments for OVN service ports 2021-10-18 14:24:36 UTC
Red Hat Issue Tracker OSP-535 0 None Closed VM provisioning still failing due to lack of provider refresh 2022-05-11 09:06:37 UTC
Red Hat Product Errata RHBA-2022:1001 0 None None None 2022-03-23 22:10:32 UTC

Description Alex Katz 2021-03-16 17:01:33 UTC
Description of problem:
When tries to create IPv6 SLAAC subnet in multisegment network it raises the FixedIpsSubnetsNotOnSameSegment error. But the subnet is actually created.


Version-Release number of selected component (if applicable):
RHOS-16.2-RHEL-8-20210216.n.2


How reproducible:
The issue is replicated in the multisegment environment (OVN).
The issue is NOT replicated if there is only one segment has been created for the multisegment network.
The issue is NOT replicated if there are no ipv4 subnets created in BOTH available segments.



Steps to Reproduce:
openstack network create --share --provider-physical-network leaf0 --provider-network-type vlan --provider-segment 777 test_net
SEGMENT=`openstack network segment list --network test_net | awk '/777/ {print $2}'`
openstack network segment set --name segment777 $SEGMENT
openstack network segment create --physical-network leaf1 --network-type vlan --segment 778 --network test_net segment778
openstack subnet create --network test_net --network-segment segment777 --ip-version 4 --subnet-range 10.77.7.0/24 --dhcp segment777-v4
openstack subnet create --network test_net --network-segment segment778 --ip-version 4 --subnet-range 10.77.8.0/24 --dhcp segment778-v4
openstack subnet create --network test_net --network-segment segment777 --ip-version 6 --subnet-range 2001:10:77:7::/64 --dhcp --ipv6-address-mode slaac segment777-v6


Actual results:

REQ: curl -g -i -X POST http://10.10.10.147:9696/v2.0/subnets -H "Content-Type: application/json" -H "User-Agent: openstacksdk/0.36.4 keystoneauth1/3.17.3 python-requests/2.20.0 CPython/3.6.8" -H "X-Auth-Token:
{SHA256}3b20e2e77647bb4d2a8e3a1de7fe7591a966d2d6d5fdc598ac9f640bf359bf02" -d '{"subnet": {"ip_version": 6, "ipv6_address_mode": "slaac", "cidr": "2001:10:77:7::/64", "segment_id": "34a289c0-2d5f-46ab-a469-353c7e
1a998d", "enable_dhcp": true, "network_id": "e646f378-0ad1-47ff-bb49-60543874b53f", "name": "segment777-v6"}}'

          
RESP: [400] Content-Length: 140 Content-Type: application/json Date: Tue, 16 Mar 2021 16:31:56 GMT X-Openstack-Request-Id: req-b6c10a3b-d1f1-4441-9db4-7172452bebc7
RESP BODY: {"NeutronError": {"type": "FixedIpsSubnetsNotOnSameSegment", "message": "Cannot allocate addresses from different segments.", "detail": ""}}

Comment 7 Elvira 2021-10-18 14:24:37 UTC
The upstream change has been automatically merged.

Comment 22 errata-xmlrpc 2022-03-23 22:10:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 16.2.2), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:1001


Note You need to log in before you can comment on or make changes to this bug.