Wei Zhou
							
						 
					 | 
					
						
						
							
							
						
						
						
							
						
						
							09fce75047
							
						
					 | 
					
						
						
							
							OVS/GRE: bug fixes (#5446)
						
						
						
						
						
						
						
						* OVS/GRE: fix failed to fetch cloudbr* info on host
* OVS/GRE: move ovstunnel.py to python3
* OVS: add test_privategw_acl_ovs_gre.py for automatic testing
(1) VR <-> VM should work
(2) Private GW should work
* OVS: fix an issue on xenserver
ovs bridges are deleted by xenserver/ovs automatically
```
[root@ref-trl-1797-x-M7-wei-zhou-xs2 ~]# grep -r xapi7 /var/log/ |grep del-br
/var/log/xensource.log:Sep 15 07:13:44 ref-trl-1797-x-M7-wei-zhou-xs2 xcp-networkd: [ info|localhost|611 |org.xen.xapi.xenops.classic events D:4a3d931cd89f|network_utils] /usr/bin/ovs-vsctl --timeout=20 -- --if-exists del-br xapi7
/var/log/daemon.log:Sep 15 07:13:45 ref-trl-1797-x-M7-wei-zhou-xs2 ovs-vsctl: ovs|00001|vsctl|INFO|Called as /usr/bin/ovs-vsctl --timeout=20 -- --if-exists del-br xapi7
```
which results that xe network exists but bridge does not exist, and operation stuck for 20 minutes at
```
2021-09-15 16:06:56    DEBUG [root] #### VMOPS enter  create_tunnel ####
2021-09-15 16:06:56    DEBUG [root] Creating tunnel from host 2 to host 1 with GRE key 2116
2021-09-15 16:06:56    DEBUG [root] Executing:['/usr/bin/ovs-vsctl', '--timeout=0', 'wait-until', 'bridge', 'xapi7', '--', 'get', 'bridge', 'xapi7', 'name']
2021-09-15 16:26:56    DEBUG [root] bridge xapi7 for creating tunnel - VERIFIED
2021-09-15 16:26:56    DEBUG [root] Executing:['/usr/bin/ovs-vsctl', 'add-port', 'xapi7', 't2116-2-1', '--', 'set', 'interface', 't2116-2-1', 'type=gre', 'options:key=2116', 'options:remote_ip=10.0.34.230']
```
* OVS/GRE: component test test_vpc_distributed_routing_offering.py passes on xenserver
* OVS: support Shared network with GRE protocol
* update #5446: use lang3.StringUtils
* OVS/GRE: VPC with distributed routing on kvm (still not working) 
						
						
					 | 
					
						2021-10-03 14:47:52 +05:30 | 
					
					
						
						
							
							
							
						
					 |