[NETVIRT-449] L2GW: remove openstack l2-gateway configuration does not remove from restconf Created: 25/Jan/17  Updated: 05/Apr/18  Resolved: 05/Apr/18

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Boron
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Revital Aronis Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Zip Archive bug_7682.zip     Text File correct_output.txt     Zip Archive dump_files.zip    
External issue ID: 7682

 Description   

when creating HW vtep configuration in openstack:
create vxlan netwotk
neutron l2-gateway-create -device name=<switch_name> interface_names=<vtep port>
neutron l2-gateway-connection-create --default-segmentation-id <the vlan of the vlan network> <l2-gateway name> <vxlan network name>

And then running
ovsdv-client dump <switch-ip>

I can see the the switch ports recieve the currect vlan (<the vlan of the vlan network>), for example:

Physical_Port table
_uuid description name port_fault_status vlan_bindings vlan_stats
------------------------------------ ----------- ----------------------------- ----------------- ------------------------------------------ ----------
e30ba015-c068-41ad-a1fb-41758ee3b092 "" "Ten-GigabitEthernet1/0/25:1" [UP]

{887=6717089a-031d-4020-9cfb-61a9441bc94a}

{}
508fb6af-2ece-498e-b894-82164980e1c2 "" "Ten-GigabitEthernet1/0/5:1" [UP] {} {}
793ecd9d-7588-4384-a7d1-55c19cb1e2d6 "" "Ten-GigabitEthernet1/0/7:2" [UP] {} {}

when I try to re-run this scenario, including trying to configure another switch connected to another vlan network, the vlan column is not configured.
Attaching “good” and “bad” output of ovsdb-client dump.



 Comments   
Comment by Revital Aronis [ 25/Jan/17 ]

Attachment correct_output.txt has been added with description: ovsdb-client dump outputs

Comment by Revital Aronis [ 29/Jan/17 ]

Attachment dump_files.zip has been added with description: dump files after add & remove of l2-gateway

Comment by ofer barber [ 12/Feb/17 ]

include OVS files on controller and on compute after add hw-vtep.
include OVS files on controller and on compute after remove hw-vtep.
include karaf log.
include restconf file for ODL controller.

add hw-vtep at time: 2017-02-12 13:37:44
remove hw-vtep at time: 2017-02-12 13:43:12

Comment by ofer barber [ 12/Feb/17 ]

Attachment bug_7682.zip has been added with description: karaf, ovs, config/operational restconf

Comment by ofer barber [ 13/Feb/17 ]

reproduction commands:
======================

neutron net-create ext-net-887-vtep

neutron subnet-create --name ext-net-887-sub-vtep ext-net-887-vtep 151.87.1.0/24 --allocation-pool start=151.87.1.10,end=151.87.1.200

sleep 3

neutron l2-gateway-create --device name="hp-5930-9-2",interface_names="Ten-GigabitEthernet1/0/25:1" --device name="hp-5930-10-leaf-1",interface_names="Ten-GigabitEthernet1/0/6:1" --device name="hp-5930-9-3",interface_names="Bridge-Aggregation11;Bridge-Aggregation10" ext-net-887-gw

sleep 5

neutron l2-gateway-connection-create --default-segmentation-id 887 ext-net-887-gw ext-net-887-vtep

Comment by ofer barber [ 15/Feb/17 ]

additional reproduction commands:
=================================
neutron l2-gateway-connection-delete <connection-id>
neutron l2-gateway-delete <gateway-id>
neutron net-delete <network-id>

after running those delete commands,
i could see that the HW-vtep configurtation was not deleted from the restconf configuration table.

extract the attaced file: bug_7682.zip

and look for file: network-topology network-topology-[config].xml

the following line still appears in the config restconf table:

<node-id>hwvtep://uuid/f6c03ac3-3b8b-4ada-a675-39a5296e83da/physicalswitch/hp-5930-9-3</node-id>

this line should have been removed/deleted after running the deletion commands, as described above

Generated at Wed Feb 07 20:21:35 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.