← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1939403] [NEW] [ovn] Tag on localnet port is not changed when proivder segment is updated

 

Public bug reported:

The tag of provnet port is not updated when segmentation id of network
is changed.

$ openstack network create --provider-network-type vlan --provider-physical-network vlan --provider-segment 10 vlan-10
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        |                                      |
| created_at                | 2021-08-10T12:44:07Z                 |
| description               |                                      |
| dns_domain                | None                                 |
| id                        | 59083511-3b37-4708-973e-1645d9007a65 |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| is_default                | False                                |
| is_vlan_transparent       | None                                 |
| mtu                       | 1500                                 |
| name                      | vlan-10                              |
| port_security_enabled     | True                                 |
| project_id                | 95cf58d213104704b76d634101e5efc6     |
| provider:network_type     | vlan                                 |
| provider:physical_network | vlan                                 |
| provider:segmentation_id  | 10                                   |
| qos_policy_id             | None                                 |
| revision_number           | 1                                    |
| router:external           | Internal                             |
| segments                  | None                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tags                      |                                      |
| updated_at                | 2021-08-10T12:44:07Z                 |
+---------------------------+--------------------------------------+
vagrant@devstack:/opt/stack/neutron((HEAD detached at origin/master))
$ sudo ovn-nbctl find logical_switch_port type=localnet
_uuid               : 3f2def0c-fe76-4a16-affd-f96718df8fa0
addresses           : [unknown]
dhcpv4_options      : []
dhcpv6_options      : []
dynamic_addresses   : []
enabled             : []
external_ids        : {}
ha_chassis_group    : []
name                : provnet-ec7bbcdd-2b08-4923-b1ac-5b06497afbf5
options             : {mcast_flood="false", mcast_flood_reports="true", network_name=vlan}
parent_name         : []
port_security       : []
tag                 : 10
tag_request         : []
type                : localnet
up                  : false
vagrant@devstack:/opt/stack/neutron((HEAD detached at origin/master))
$ openstack network set --provider-segment 9 vlan-10
vagrant@devstack:/opt/stack/neutron((HEAD detached at origin/master))
$ sudo ovn-nbctl get logical_switch_p provnet-ec7bbcdd-2b08-4923-b1ac-5b06497afbf5 tag
10

** Affects: neutron
     Importance: Undecided
     Assignee: Jakub Libosvar (libosvar)
         Status: New


** Tags: ovn

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1939403

Title:
  [ovn] Tag on localnet port is not changed when proivder segment is
  updated

Status in neutron:
  New

Bug description:
  The tag of provnet port is not updated when segmentation id of network
  is changed.

  $ openstack network create --provider-network-type vlan --provider-physical-network vlan --provider-segment 10 vlan-10
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | UP                                   |
  | availability_zone_hints   |                                      |
  | availability_zones        |                                      |
  | created_at                | 2021-08-10T12:44:07Z                 |
  | description               |                                      |
  | dns_domain                | None                                 |
  | id                        | 59083511-3b37-4708-973e-1645d9007a65 |
  | ipv4_address_scope        | None                                 |
  | ipv6_address_scope        | None                                 |
  | is_default                | False                                |
  | is_vlan_transparent       | None                                 |
  | mtu                       | 1500                                 |
  | name                      | vlan-10                              |
  | port_security_enabled     | True                                 |
  | project_id                | 95cf58d213104704b76d634101e5efc6     |
  | provider:network_type     | vlan                                 |
  | provider:physical_network | vlan                                 |
  | provider:segmentation_id  | 10                                   |
  | qos_policy_id             | None                                 |
  | revision_number           | 1                                    |
  | router:external           | Internal                             |
  | segments                  | None                                 |
  | shared                    | False                                |
  | status                    | ACTIVE                               |
  | subnets                   |                                      |
  | tags                      |                                      |
  | updated_at                | 2021-08-10T12:44:07Z                 |
  +---------------------------+--------------------------------------+
  vagrant@devstack:/opt/stack/neutron((HEAD detached at origin/master))
  $ sudo ovn-nbctl find logical_switch_port type=localnet
  _uuid               : 3f2def0c-fe76-4a16-affd-f96718df8fa0
  addresses           : [unknown]
  dhcpv4_options      : []
  dhcpv6_options      : []
  dynamic_addresses   : []
  enabled             : []
  external_ids        : {}
  ha_chassis_group    : []
  name                : provnet-ec7bbcdd-2b08-4923-b1ac-5b06497afbf5
  options             : {mcast_flood="false", mcast_flood_reports="true", network_name=vlan}
  parent_name         : []
  port_security       : []
  tag                 : 10
  tag_request         : []
  type                : localnet
  up                  : false
  vagrant@devstack:/opt/stack/neutron((HEAD detached at origin/master))
  $ openstack network set --provider-segment 9 vlan-10
  vagrant@devstack:/opt/stack/neutron((HEAD detached at origin/master))
  $ sudo ovn-nbctl get logical_switch_p provnet-ec7bbcdd-2b08-4923-b1ac-5b06497afbf5 tag
  10

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1939403/+subscriptions