MTU too large error presented on create but not update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
In Progress
|
Medium
|
Nate Johnston |
Bug Description
If an MTU is supplied when creating a network it is rejected if it is above global_physnet_mtu. If an MTU is supplied when updating a network it is not rejected even if the value is too large. When global_physnet_mtu is 1500 I can easily set MTU 9000 or even beyond through update. This is not valid.
~~~
w(overcloud) [stack@undercloud-0 ~]$ openstack network show private1
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | nova |
| created_at | 2020-03-
| description | |
| dns_domain | None |
| id | bffac18a-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| mtu | 1500 |
| name | private1 |
| port_security_
| project_id | d69c1c6601c741d
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 8 |
| router:external | External |
| segments | None |
| shared | True |
| status | ACTIVE |
| subnets | 51fc6508-
| tags | |
| updated_at | 2020-03-
+------
(overcloud) [stack@undercloud-0 ~]$ openstack network set private1 --mtu 9000
(overcloud) [stack@undercloud-0 ~]$ openstack network set private1 --mtu 9500
(overcloud) [stack@undercloud-0 ~]$ openstack network show private1
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | nova |
| created_at | 2020-03-
| description | |
| dns_domain | None |
| id | bffac18a-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| mtu | 9500 |
| name | private1 |
| port_security_
| project_id | d69c1c6601c741d
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 12 |
| router:external | External |
| segments | None |
| shared | True |
| status | ACTIVE |
| subnets | 51fc6508-
| tags | |
| updated_at | 2020-03-
+------
~~~
Here we demonstrate that while network set works, network create does not. Network create seems to have the correct behavior.
-------
~~~
overcloud) [stack@undercloud-0 ~]$ openstack network create --mtu 1500 --provider-
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | |
| created_at | 2020-03-
| description | |
| dns_domain | None |
| id | f8b6efda-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| mtu | 1500 |
| name | private10 |
| port_security_
| project_id | d69c1c6601c741d
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 3 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| updated_at | 2020-03-
+------
(overcloud) [stack@undercloud-0 ~]$ openstack network delete private10
~~~
~~~
(overcloud) [stack@undercloud-0 ~]$ openstack network create --mtu 2500 --provider-
Error while executing command: BadRequestExcep
~~~
~~~
(overcloud) [stack@undercloud-0 ~]$ openstack network create --mtu 1500 --provider-
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | |
| created_at | 2020-03-
| description | |
| dns_domain | None |
| id | fb8e96b4-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| mtu | 1500 |
| name | private10 |
| port_security_
| project_id | d69c1c6601c741d
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 3 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| updated_at | 2020-03-
+------
(overcloud) [stack@undercloud-0 ~]$ openstack network set private10 --mtu 2500
(overcloud) [stack@undercloud-0 ~]$ openstack network show private10
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | |
| created_at | 2020-03-
| description | |
| dns_domain | None |
| id | fb8e96b4-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| is_vlan_transparent | None |
| mtu | 2500 |
| name | private10 |
| port_security_
| project_id | d69c1c6601c741d
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 5 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| updated_at | 2020-03-
+------
Changed in neutron: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. opendev. org/712801
Review: https:/