cloudstack/plugins
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
..
acl Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
affinity-group-processors Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
alert-handlers Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
api Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
backup backup: Improve Veeam Plugin logs (#5455) 2021-09-24 17:25:27 +05:30
ca/root-ca Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
database Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
dedicated-resources Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
deployment-planners Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
event-bus Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
host-allocators/random Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
hypervisors OVS/GRE: bug fixes (#5446) 2021-10-03 14:47:52 +05:30
integrations Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
metrics Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
network-elements OVS/GRE: bug fixes (#5446) 2021-10-03 14:47:52 +05:30
outofbandmanagement-drivers Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
storage Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
storage-allocators/random Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
user-authenticators Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30
pom.xml Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT 2021-09-17 12:53:29 +05:30