Skip to content

Conversation

@harikrishna-patnala
Copy link
Contributor

@harikrishna-patnala harikrishna-patnala commented Apr 6, 2023

Description

This feature allows the storage migration for ScaleIO volumes between the ScaleIO storage pools of the same and different ScaleIO storage clusters. Previously this operation was blocked and now we are allowing it from API/UI.

The volume migration within the same storage cluster is performed using ScaleIO’s native V-Tree migration operation where the volume will be live migrated to another storage pool. The volume migration across the different storage cluster is performed using libvirt’s live blockcopy operation which will first copy the volume to the destination storage pool and after a successful copy, the source volume will be deleted. Upon any failures during the block copy, source volume will remain to continue and other blockcopy operations will be reverted.

A document PR is added here apache/cloudstack-documentation#321

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@harikrishna-patnala
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@harikrishna-patnala a Jenkins job has been kicked to build packages. It will be bundled with

SystemVM template(s). I'll keep you posted as I make progress.

@harikrishna-patnala harikrishna-patnala marked this pull request as draft April 6, 2023 08:47
@blueorangutan
Copy link

Packaging result: ✔️ el7 ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 5869

@codecov
Copy link

codecov bot commented Apr 6, 2023

Codecov Report

Merging #7408 (be81092) into 4.18 (1aa4f80) will increase coverage by 0.02%.
The diff coverage is 30.51%.

❗ Current head be81092 differs from pull request most recent head a4d04ab. Consider uploading reports for the commit a4d04ab to get more accurate results

@@             Coverage Diff              @@
##               4.18    #7408      +/-   ##
============================================
+ Coverage     12.98%   13.01%   +0.02%     
- Complexity     8989     9006      +17     
============================================
  Files          2716     2716              
  Lines        256343   256634     +291     
  Branches      39981    40017      +36     
============================================
+ Hits          33291    33403     +112     
- Misses       218886   219047     +161     
- Partials       4166     4184      +18     
Impacted Files Coverage Δ
...e/cloudstack/storage/volume/VolumeServiceImpl.java 2.27% <0.00%> (-0.01%) ⬇️
...oud/hypervisor/kvm/resource/LibvirtConnection.java 0.00% <0.00%> (ø)
...ud/hypervisor/kvm/storage/KVMStorageProcessor.java 4.97% <0.00%> (-0.02%) ⬇️
...age/datastore/client/ScaleIOGatewayClientImpl.java 0.00% <0.00%> (ø)
...atastore/driver/ScaleIOPrimaryDataStoreDriver.java 0.00% <0.00%> (ø)
...n/java/com/cloud/storage/VolumeApiServiceImpl.java 15.05% <0.00%> (+0.02%) ⬆️
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 7.35% <ø> (+<0.01%) ⬆️
...ce/wrapper/LibvirtMigrateVolumeCommandWrapper.java 61.84% <74.40%> (+54.69%) ⬆️
...n/java/com/cloud/vm/VirtualMachineManagerImpl.java 6.23% <100.00%> (ø)

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@weizhouapache
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 6, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 15 Code Smells

8.7% 8.7% Coverage
0.0% 0.0% Duplication

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5874

@borisstoyanov
Copy link
Contributor

@blueorangutan test keepEnv

@blueorangutan
Copy link

@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-6403)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46723 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7408-t6403-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@github-actions
Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@harikrishna-patnala
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@harikrishna-patnala a [SF] Jenkins job has been kicked to build packages. It will be bundled with

SystemVM template(s). I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 6183

@harikrishna-patnala
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@harikrishna-patnala a [SF] Jenkins job has been kicked to build packages. It will be bundled with

SystemVM template(s). I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 6190

@harikrishna-patnala harikrishna-patnala force-pushed the LiveStoragMigrationScaleIOMain branch from 659d062 to c3ff286 Compare June 15, 2023 07:23
@harikrishna-patnala
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@harikrishna-patnala a [SF] Jenkins job has been kicked to build packages. It will be bundled with

SystemVM template(s). I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6236

@harikrishna-patnala
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@harikrishna-patnala a [SF] Jenkins job has been kicked to build packages. It will be bundled with

SystemVM template(s). I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6248

@borisstoyanov
Copy link
Contributor

@blueorangutan test matrix

@blueorangutan
Copy link

@borisstoyanov a [SF] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@harikrishna-patnala
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@harikrishna-patnala a [SF] Jenkins job has been kicked to build packages. It will be bundled with

SystemVM template(s). I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6266

@borisstoyanov
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@borisstoyanov a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-6760)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40579 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7408-t6760-xenserver-71.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan
Copy link

[SF] Trillian test result (tid-6762)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45976 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7408-t6762-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_migrate_VM_and_root_volume Error 78.68 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 57.52 test_vm_life_cycle.py

@blueorangutan
Copy link

[SF] Trillian test result (tid-6761)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 56589 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7408-t6761-vmware-67u3.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_deploy_vm_on_specific_host Error 18.73 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 3605.89 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 40.36 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 3604.32 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 11.55 test_vm_deployment_planner.py

@blueorangutan
Copy link

[SF] Trillian test result (tid-6765)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46162 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7408-t6765-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_migrate_VM_and_root_volume Error 83.95 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 52.30 test_vm_life_cycle.py

@borisstoyanov
Copy link
Contributor

borisstoyanov commented Jun 20, 2023

[SF] Trillian test result (tid-6761) Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8 Total time taken: 56589 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7408-t6761-vmware-67u3.zip Smoke tests completed. 107 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_deploy_vm_on_specific_host Error 18.73 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 3605.89 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 40.36 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 3604.32 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 11.55 test_vm_deployment_planner.py

Manually passed

=== TestName: test_01_deploy_vm_on_specific_host | Status : SUCCESS ===

=== TestName: test_02_deploy_vm_on_specific_cluster | Status : SUCCESS ===

=== TestName: test_03_deploy_vm_on_specific_pod | Status : SUCCESS ===

=== TestName: test_04_deploy_vm_on_host_override_pod_and_cluster | Status : SUCCESS ===

=== TestName: test_05_deploy_vm_on_cluster_override_pod | Status : SUCCESS ===

@borisstoyanov
Copy link
Contributor

[SF] Trillian test result (tid-6765) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 46162 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7408-t6765-kvm-centos7.zip Smoke tests completed. 107 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_migrate_VM_and_root_volume Error 83.95 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 52.30 test_vm_life_cycle.py

This has been seen in other 4.18 PRs as well, it's not related to the changes of this PR

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, manually tested.

@harikrishna-patnala harikrishna-patnala marked this pull request as ready for review June 21, 2023 06:26
@harikrishna-patnala harikrishna-patnala merged commit 40cc10a into apache:4.18 Jun 21, 2023
@borisstoyanov
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@borisstoyanov a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 6493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants