cloudstack/test/integration/smoke
Nicolas Vazquez 0fbf5006b8 kvm: live storage migration intra cluster from NFS source and destination (#2983)
Feature Specification: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=95653548

Live storage migration on KVM under these conditions:

From source and destination hosts within the same cluster
From NFS primary storage to NFS cluster-wide primary storage
Source NFS and destination NFS storage mounted on hosts
In order to enable this functionality, database should be updated in order to enable live storage capacibilty for KVM, if previous conditions are met. This is due to existing conflicts between qemu and libvirt versions. This has been tested on CentOS 6 hosts.

Additional notes:

To use this feature set the storage_motion_supported=1 in the hypervisor_capability table for KVM. This is done by default as the feature may not work in some environments, read below.
This feature of online storage+VM migration for KVM will only work with CentOS6 and possible Ubuntu as KVM hosts but not with CentOS7 due to:
https://bugs.centos.org/view.php?id=14026
https://bugzilla.redhat.com/show_bug.cgi?id=1219541
On CentOS7 the error we see is: " error: unable to execute QEMU command 'migrate': this feature or command is not currently supported" (reference https://ask.openstack.org/en/question/94186/live-migration-unable-to-execute-qemu-command-migrate/). Reading through various lists looks like the migrate feature with qemu may be available with paid versions of RHEL-EV but not centos7 however this works with CentOS6.
Fix for CentOS 7:

Create repo file on /etc/yum.repos.d/:
[qemu-kvm-rhev]
name=oVirt rebuilds of qemu-kvm-rhev
baseurl=http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7Server/
mirrorlist=http://resources.ovirt.org/pub/yum-repo/mirrorlist-ovirt-3.5-el7Server
enabled=1
skip_if_unavailable=1
gpgcheck=0
yum install qemu-kvm-common-ev-2.3.0-29.1.el7.x86_64 qemu-kvm-ev-2.3.0-29.1.el7.x86_64 qemu-img-ev-2.3.0-29.1.el7.x86_64
Reboot host

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2019-06-10 15:35:26 +05:30
..
misc Adding new test which would verify the fix for issue "The ISO/Template is automatically deleted after URL expires" 2014-10-17 18:04:35 +05:30
__init__.py apply chip childers licensing patches for the test directory 2012-06-26 11:19:58 -04:00
test_accounts.py CLOUDSTACK-3049: Implemented role update for account. (#3058) 2019-01-25 10:02:56 -02:00
test_affinity_groups.py Host Affinity plugin (#2630) 2018-05-21 12:49:08 +05:30
test_affinity_groups_projects.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_async_job.py asyncjobs: add endtime to async jobs (#2739) 2018-07-25 14:48:01 +05:30
test_certauthority_root.py CLOUDSTACK-9993: Securing Agents Communications (#2239) 2017-08-28 12:15:11 +02:00
test_deploy_vgpu_enabled_vm.py Merge branch '4.9' 2016-10-21 10:15:29 +05:30
test_deploy_virtio_scsi_vm.py tests: fix some Marvin smoketests (#2869) 2019-03-26 15:33:40 +05:30
test_deploy_vm_iso.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
test_deploy_vm_root_resize.py CLOUDSTACK-4757: Support OVA files with multiple disks for templates (#2146) 2018-01-10 22:10:41 +05:30
test_deploy_vm_with_userdata.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_deploy_vms_with_varied_deploymentplanners.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_diagnostics.py diagnostics: new diagnostics admin API for system VMs (#2721) 2018-07-13 16:58:45 +05:30
test_direct_download.py KVM: Improvements on upload direct download certificates (#2995) 2019-06-04 03:08:31 -03:00
test_disk_offerings.py feature: add libvirt / qemu io bursting (#3133) 2019-02-04 19:47:44 -02:00
test_dynamicroles.py CLOUDSTACK-9663: updateRole cmd to return updated role as JSON (#2406) 2018-02-10 18:25:25 +01:00
test_global_settings.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_guest_vlan_range.py Re-enabling fixed test cases 2014-06-25 18:02:04 +05:30
test_host_annotations.py CLOUDSTACK-10154: fixing some smoketests failures (#2335) 2017-11-28 09:55:35 +05:30
test_host_maintenance.py KVM: Fix agents dont reconnect post maintenance (#3239) 2019-05-23 14:13:17 +02:00
test_hostha_kvm.py tests: fix some Marvin smoketests (#2869) 2019-03-26 15:33:40 +05:30
test_hostha_simulator.py CLOUDSTACK-10253: JSON response for SuccessResponse as boolean instead of string (#2428) 2018-04-27 21:07:51 -03:00
test_internal_lb.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_iso.py api: Allow password enabled for iso (#2745) (#3042) 2018-11-28 00:09:20 +05:30
test_list_ids_parameter.py CLOUDSTACK-10013: Fix VMware related issues and fix misc tests 2017-12-23 09:22:44 +05:30
test_loadbalance.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_login.py CLOUDSTACK-9369: Restrict default login to ldap/native users 2016-05-27 15:00:05 -04:00
test_metrics_api.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_migration.py test: Skip network migration tests for not supported hypervisors (#3021) 2018-11-14 15:04:08 +05:30
test_multipleips_per_nic.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_nested_virtualization.py CLOUDSTACK-10013: Fix VMware related issues and fix misc tests 2017-12-23 09:22:44 +05:30
test_network.py IP address acquired with associate ip address is marked as source nat (#3125) 2019-01-23 10:05:16 -02:00
test_network_acl.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_nic.py CLOUDSTACK-10107: For VMware VMs add devices without unit number (#2288) 2017-10-25 09:56:44 +05:30
test_nic_adapter_type.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_non_contigiousvlan.py CLOUDSTACK-9522: Check for available attribute in marvin response 2016-10-05 15:11:00 +05:30
test_outofbandmanagement.py CLOUDSTACK-9782: New Background Polling Task Manager (#2218) 2017-08-03 11:53:45 +02:00
test_outofbandmanagement_nestedplugin.py CLOUDSTACK-9782: Nested-oobm CloudStack plugin 2017-08-30 18:06:48 +02:00
test_over_provisioning.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_password_server.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30
test_portable_publicip.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_portforwardingrules.py IP address acquired with associate ip address is marked as source nat (#3125) 2019-01-23 10:05:16 -02:00
test_primary_storage.py Vmware offline migration (#2848) 2019-01-25 10:05:13 -02:00
test_privategw_acl.py vpc: reuse private gateway ip for non redundant VPC (#2712) 2018-06-21 15:06:50 +05:30
test_projects.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_public_ip_range.py Adding zone disablement during deletion of the range plus one more tr… (#3028) 2018-11-19 09:28:15 +01:00
test_pvlan.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_regions.py CLOUDSTACK-9989: Extend smoketests suite (#2219) 2017-11-22 17:06:22 +05:30
test_reset_vm_on_reboot.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_resource_accounting.py CLOUDSTACK-3009: Fix resource calculation CPU, RAM for accounts. (#3012) 2018-11-13 06:29:08 +05:30
test_resource_detail.py CLOUDSTACK-6914: Fixed the mentioned issue 2014-06-17 14:26:44 +05:30
test_router_dhcphosts.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_router_dns.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_router_dnsservice.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_routers.py network: Fix security groups for CentOS (#2590) 2018-04-23 16:54:03 +02:00
test_routers_iptables_default_policy.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_routers_network_ops.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_scale_vm.py tests: Adding a try catch for Xen licensing issue (#3061) 2018-11-28 16:37:14 +05:30
test_secondary_storage.py Extend wait before retry to states other than 'Starting' 2015-06-24 07:34:26 +02:00
test_service_offerings.py feature: add libvirt / qemu io bursting (#3133) 2019-02-04 19:47:44 -02:00
test_snapshots.py kvm: live storage migration intra cluster from NFS source and destination (#2983) 2019-06-10 15:35:26 +05:30
test_ssvm.py CLOUDSTACK-10227: Stabilization fixes for 4.11.0.0 (#2403) 2018-01-15 00:08:36 +05:30
test_staticroles.py CLOUDSTACK-10012: Migrate to Embedded Jetty 2017-11-03 23:57:25 +05:30
test_templates.py CLOUDSTACK-10227: Stabilization fixes for 4.11.0.0 (#2403) 2018-01-15 00:08:36 +05:30
test_usage.py CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate 2017-12-23 09:22:44 +05:30
test_usage_events.py CLOUDSTACK-8314: Add test case to validate VM.DESTROY event is logged when VM deployment fails 2015-03-12 16:43:08 +05:30
test_vm_life_cycle.py kvm: live storage migration intra cluster from NFS source and destination (#2983) 2019-06-10 15:35:26 +05:30
test_vm_snapshots.py CLOUDSTACK-10227: Add delay before reverting VM snapshot (#2407) 2018-01-15 15:57:48 +05:30
test_volumes.py Merge remote-tracking branch 'origin/4.11' into 4.12 2019-05-14 14:26:11 +05:30
test_vpc_redundant.py vpc: reuse private gateway ip for non redundant VPC (#2712) 2018-06-21 15:06:50 +05:30
test_vpc_router_nics.py vpc: reuse private gateway ip for non redundant VPC (#2712) 2018-06-21 15:06:50 +05:30
test_vpc_vpn.py CLOUDSTACK-10013: Fixes based on code review and test failures 2017-12-23 17:51:42 +05:30