Subnet update with the subnet's current segment_id fail with: NoUpdateSubnetWhenMultipleSegmentsOnNetwork
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Harald Jensås |
Bug Description
When the update request contains segment_id and the provided segment_id is equal to the id currently on the subnet, the update request will fail if any of the checks in _validate_segment fail with NoUpdateSubnetW
[stack@
+------
| ID | Name | Network | Network Type | Segment |
+------
| 14ec1077-
| 884c98bb-
+------
[stack@
+------
| ID | Name | Network | Subnet |
+------
| f21edda9-
+------
[stack@
+------
| Field | Value |
+------
| allocation_pools | 10.100.
| cidr | 10.100.100.0/24 |
| created_at | 2018-09-
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.100.100.1 |
| host_routes | |
| id | f21edda9-
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | subnet1 |
| network_id | 51394a06-
| project_id | fee5807fd59146b
| revision_number | 2 |
| segment_id | 14ec1077-
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2018-09-
+------
Actual result:
--------------
[stack@
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 277
X-Openstack-
Date: Wed, 19 Sep 2018 20:43:27 GMT
{"NeutronError": {"message": "The network '51394a06-
Expected result:
----------------
[stack@
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 670
X-Openstack-
Date: Wed, 19 Sep 2018 21:07:08 GMT
{"subnet"
Changed in neutron: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/603921
Review: https:/