log error when create neutron port with wrong subnet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
zhengyong |
Bug Description
With Neutron Newton version
There are two networks named share_net and test1 in my env, each with one subnet. When I create port in share_net, but specify subnet_id of the test1's subnet, not the subnet of share_net. Create port failed, but log is "Failed to create port on network 8fd6c0d1-
Here we can see network 8fd6c0d1-
()[root@
+------
| id | name | subnets |
+------
| 311a12a8-
| 8fd6c0d1-
+------
()[root@
Invalid input for operation: Failed to create port on network 8fd6c0d1-
Neutron server returns request_ids: ['req-e32df57b-
after inspect code, I found the function code is:
def _get_subnet_
# Subnets are all the subnets belonging to the same network.
if not subnets:
msg = _('IP allocation requires subnets for network')
raise exc.InvalidInpu
if 'subnet_id' in fixed:
def get_matching_
for subnet in subnets:
subnet = get_matching_
if not subnet:
msg = (_("Failed to create port on network %(network_id)s"
this function, it use “'network_id': subnet[
master branch also have this problem: https:/
Changed in neutron: | |
assignee: | nobody → zhengyong (zhengy23) |
description: | updated |
tags: | added: l3-ipam-dhcp |
Changed in neutron: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in neutron: | |
status: | Fix Released → In Progress |
Fix proposed to branch: master /review. opendev. org/683273
Review: https:/