cloudstack/scripts/vm/hypervisor/xenserver
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
..
xcposs Fix XenServer Security Groups 'vmops' script (#3197) 2019-03-06 09:13:40 -03:00
xcpserver CLOUDSTACK-8607 - Changed update script to return exit code based on the result 2015-07-03 14:29:57 +02:00
xenserver56 Rename xapi plugins for s3 and swift to make them work after renaming the calls 2015-10-27 14:07:29 +01:00
xenserver56fp1 Rename xapi plugins for s3 and swift to make them work after renaming the calls 2015-10-27 14:07:29 +01:00
xenserver60 CLOUDSTACK-8906: /var/log/cloud/ doesn't get logrotated on xenserver (#883) 2017-08-03 00:51:16 +02:00
xenserver62 CLOUDSTACK-8906: /var/log/cloud/ doesn't get logrotated on xenserver (#883) 2017-08-03 00:51:16 +02:00
xenserver65 CLOUDSTACK-8906: /var/log/cloud/ doesn't get logrotated on xenserver (#883) 2017-08-03 00:51:16 +02:00
add_to_vcpus_params_live.sh CLOUDSTACK-2085: VM weight on xen remain same as before vmscaleup ;because "Add-To-VCPUs-Params-Live.sh" is not getting copied on xs host 2013-05-15 16:17:21 +05:30
check_heartbeat.sh check_heartbeat and pingtest execute through ssh, not XAPI, because XAPI may hang when master host is downi 2014-03-25 10:44:20 -07:00
cloud-clean-vlan.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
cloud-plugin-storage CLOUDSTACK-8220: Let's have a separate XenServer 6.5 resource 2015-02-06 14:44:10 +05:30
cloud-prepare-upgrade.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
cloud-propagate-vlan.sh Summary: several scripts are not mode executable 2013-01-17 11:21:42 -07:00
cloud-setup-bonding.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
cloudlog Rename xapi plugins for s3 and swift to make them work after renaming the calls 2015-10-27 14:07:29 +01:00
cloudstack_pluginlib.py [CLOUDSTACK-9662] Add support for XenServer 7 2016-12-21 16:58:10 -05:00
cloudstack_plugins.conf license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
copy_vhd_from_secondarystorage.sh use directIO flags when dd'ing template 2014-12-15 16:36:35 +01:00
copy_vhd_to_secondarystorage.sh put shell scripts to a seperate directory in XS 2013-12-03 02:05:34 -08:00
create_privatetemplate_from_snapshot.sh put shell scripts to a seperate directory in XS 2013-12-03 02:05:34 -08:00
kill_copy_process.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
launch_hb.sh CLOUDSTACK-7184: xenheartbeat gets passed timeout and interval 2014-09-18 12:51:10 +02:00
logrotate CLOUDSTACK-8906: /var/log/cloud/ doesn't get logrotated on xenserver (#883) 2017-08-03 00:51:16 +02:00
make_migratable.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
mockxcpplugin.py finaly, finish download template to primary storage 2012-12-20 19:06:02 -08:00
network_info.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
ovs-get-bridge.sh PVLAN: Add network label parameter to PvlanSetupCommand 2013-05-01 13:23:09 -07:00
ovs-get-dhcp-iface.sh PVLAN: PvlanSetupCommand for KVM support 2013-05-01 13:23:09 -07:00
ovs-pvlan put CS/XS plugin log into seperate directory 2013-12-10 01:23:46 -08:00
ovs-vif-flows.py CLOUDSTACK-6749: [OVS] xe network-param-get with 2014-06-13 16:02:31 +05:30
ovstunnel OVS/GRE: bug fixes (#5446) 2021-10-03 14:47:52 +05:30
perfmon.py add Apache Licensed and add check native 2013-12-10 10:37:29 +07:00
s3xenserver CLOUDSTACK-9062: Improve S3 implementation. 2015-11-19 15:29:10 +01:00
setup_heartbeat_file.sh put shell scripts to a seperate directory in XS 2013-12-03 02:05:34 -08:00
setup_heartbeat_sr.sh xenserver: add support for XCP-ng 7/8 to create it's heartbeat LVM properly (#4109) 2020-06-11 17:30:16 +05:30
setup_iscsi.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
setupxenserver.sh CLOUDSTACK-8906: /var/log/cloud/ doesn't get logrotated on xenserver (#883) 2017-08-03 00:51:16 +02:00
storagePlugin put CS/XS plugin log into seperate directory 2013-12-10 01:23:46 -08:00
swift CLOUDSTACK-9677: Adding storage policy support for swift as secondary storage (#2412) 2018-04-26 00:42:15 +02:00
swiftxenserver CLOUDSTACK-10229: improve xenserver swift logging, removed usued code (#2152) 2018-01-12 19:53:35 +05:30
upgrade_snapshot.sh put shell scripts to a seperate directory in XS 2013-12-03 02:05:34 -08:00
upgrade_vnc_config.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
vmops Get Diagnostics: Download logs and diagnostics data from SSVM, CPVM, Router (#3350) 2020-01-15 11:38:33 +01:00
vmopsSnapshot CLOUDSTACK-7345 changed dd blocksize to 128k when using NFS. 2014-08-14 10:10:13 +02:00
vmopspremium CLOUDSTACK-7868: Failed storage.PrimaryStorageDownloadCommand leaves corrupt VDIs in primary storage. 2014-11-08 13:43:56 +05:30
xen-ovs-vif-flows.rules license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00
xenheartbeat.sh CLOUDSTACK-7527 reboot faster by writing to /proc/sysrq-trigger 2014-09-18 12:51:42 +02:00
xs_cleanup.sh license header changes for scripts folder from Chip Childers 2012-06-23 00:58:00 -04:00