Skip to content

ONTAP: Support for Compute + Volume migration and Volume migration - #14736

Open
sandeeplocharla wants to merge 11 commits into
apache:mainfrom
NetApp:compute-with-ontap-storage-migration-support
Open

sandeeplocharla wants to merge 11 commits into
apache:mainfrom
NetApp:compute-with-ontap-storage-migration-support

Conversation

@sandeeplocharla

@sandeeplocharla sandeeplocharla commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR has code to support the following migration flows:

  1. Live VM with storage
  2. Storage migration with and without VM (Offline) attached

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)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial
Use case Suite Tests Result
Live VM migration with volumes migration_live 22 Pass
Stopped VM storage migration migration_stopped 15 Pass
Volume migration (detached or stopped-attached) migration_volume 23 Pass
iSCSI pool lifecycle iscsi_pool_lifecycle 8 Pass
iSCSI pool with volumes iscsi_pool_volumes 7 Pass
iSCSI zone-scoped pool iscsi_zone_pool 4 Pass
iSCSI volume lifecycle iscsi_volume 5 Pass
iSCSI VM volume attach iscsi_instance 8 Pass
NFS3 pool lifecycle nfs3_pool_lifecycle 8 Pass
NFS3 pool with volumes nfs3_pool_volumes 7 Pass
NFS3 zone-scoped pool nfs3_zone_pool 4 Pass
NFS3 volume lifecycle nfs3_volume 5 Pass
NFS3 VM volume attach nfs3_instance 8 Pass

Live VM with volumes (migrateVirtualMachineWithVolume)

Test What it covers Status
test_01_nfs3_default_primary_to_cluster DefaultPrimary root and data volumes to NFS3 C1a Pass
test_02_nfs3_cluster_to_cluster NFS3 C1a to C1b Pass
test_03_nfs3_cluster_to_zone NFS3 C1b to zone-wide Z1 Pass
test_04_nfs3_zone_to_zone NFS3 Z1 to Z2 Pass
test_05_nfs3_zone_to_cluster NFS3 Z2 back to C1a Pass
test_06_iscsi_default_primary_to_cluster DefaultPrimary root and data volumes to iSCSI C1a Pass
test_07_iscsi_cluster_to_cluster iSCSI C1a to C1b Pass
test_08_iscsi_cluster_to_zone iSCSI C1b to Z1 Pass
test_09_iscsi_zone_to_zone iSCSI Z1 to Z2 Pass
test_10_iscsi_zone_to_cluster iSCSI Z2 back to C1a Pass
test_11_reject_nfs3_to_iscsi Live NFS3-to-iSCSI mapping is rejected Pass
test_12_reject_iscsi_to_nfs3 Live iSCSI-to-NFS3 mapping is rejected Pass
test_13_reject_live_volume_only migrateVolume with livemigrate on a running volume is rejected Pass
test_14_nfs3_cluster_to_cluster After host split, NFS3 C1a to C2 Pass
test_15_nfs3_cluster_to_zone NFS3 C1a to Z1 onto a C2 host Pass
test_16_nfs3_zone_to_cluster NFS3 Z1 to C2 Pass
test_17_nfs3_zone_to_zone NFS3 Z1 to Z2 onto a C2 host Pass
test_18_iscsi_cluster_to_cluster iSCSI C1a to C2 onto a C2 host Pass
test_19_iscsi_cluster_to_zone iSCSI C1a to Z1 onto a C2 host Pass
test_20_iscsi_zone_to_cluster iSCSI Z1 to C2 Pass
test_21_iscsi_zone_to_zone iSCSI Z1 to Z2 onto a C2 host Pass
test_22_reject_pool_not_reachable_from_destination_host Cluster-1 pool mapped to a cluster-2 host is rejected Pass

Stopped VM storage migration (migrateVirtualMachineWithVolume, no destination host)

Test What it covers Status
test_01_nfs3_default_primary_to_cluster DefaultPrimary to NFS3 C1a Pass
test_02_nfs3_cluster_to_cluster_same_cluster NFS3 between cluster pools in the same cluster Pass
test_03_nfs3_cluster_to_cluster_across_clusters NFS3 to a pool in the second cluster Pass
test_04_nfs3_cluster_to_zone NFS3 cluster pool to zone-wide Pass
test_05_nfs3_zone_to_zone NFS3 between two zone-wide pools Pass
test_06_nfs3_zone_to_cluster NFS3 zone-wide back to C1a Pass
test_07_iscsi_default_primary_to_cluster DefaultPrimary to iSCSI C1a Pass
test_08_iscsi_cluster_to_cluster_same_cluster iSCSI between cluster pools in the same cluster Pass
test_09_iscsi_cluster_to_cluster_across_clusters iSCSI to a pool in the second cluster Pass
test_10_iscsi_cluster_to_zone iSCSI cluster pool to zone-wide Pass
test_11_iscsi_zone_to_zone iSCSI between two zone-wide pools Pass
test_12_iscsi_zone_to_cluster iSCSI zone-wide back to C1a Pass
test_13_reject_nfs3_to_iscsi Stopped-VM NFS3-to-iSCSI is rejected Pass
test_14_reject_iscsi_to_nfs3 Stopped-VM iSCSI-to-NFS3 is rejected Pass
test_15_reject_running_vm Stopped-VM API form is rejected once the VM is running Pass

Volume migration (migrateVolume)

Test What it covers Status
test_01_nfs3_detached_default_primary_to_cluster Detached NFS3, DefaultPrimary to C1a Pass
test_02_nfs3_detached_cluster_to_cluster_same_cluster Detached NFS3, C1a to C1b Pass
test_03_nfs3_detached_cluster_to_cluster_across_clusters Detached NFS3, C1b to C2 Pass
test_04_nfs3_detached_cluster_to_zone Detached NFS3, C2 to Z1 Pass
test_05_nfs3_detached_zone_to_zone Detached NFS3, Z1 to Z2 Pass
test_06_nfs3_detached_zone_to_cluster Detached NFS3, Z2 back to C1a Pass
test_07_iscsi_detached_default_primary_to_cluster Detached iSCSI, DefaultPrimary to C1a Pass
test_08_iscsi_detached_cluster_to_cluster_same_cluster Detached iSCSI, C1a to C1b Pass
test_09_iscsi_detached_cluster_to_cluster_across_clusters Detached iSCSI, C1b to C2 Pass
test_10_iscsi_detached_cluster_to_zone Detached iSCSI, C2 to Z1 Pass
test_11_iscsi_detached_zone_to_zone Detached iSCSI, Z1 to Z2 Pass
test_12_iscsi_detached_zone_to_cluster Detached iSCSI, Z2 back to C1a Pass
test_13_nfs3_attached_stopped_vm_cluster_to_zone Stopped-attached NFS3 data, C1a to Z1; root stays Pass
test_14_iscsi_attached_stopped_vm_cluster_to_zone Stopped-attached iSCSI data, C1a to Z1; root stays Pass
test_15_nfs3_attached_stopped_vm_default_to_ontap Stopped-attached non-ONTAP data to ONTAP NFS3 Pass
test_16_iscsi_attached_stopped_vm_default_to_ontap Stopped-attached non-ONTAP data to ONTAP iSCSI Pass
test_17_reject_detached_nfs3_to_iscsi Detached NFS3-to-iSCSI is rejected Pass
test_18_reject_detached_iscsi_to_nfs3 Detached iSCSI-to-NFS3 is rejected Pass
test_19_reject_stopped_attached_nfs3_to_iscsi Stopped-attached NFS3-to-iSCSI is rejected Pass
test_20_reject_stopped_attached_iscsi_to_nfs3 Stopped-attached iSCSI-to-NFS3 is rejected Pass
test_21_reject_attached_running_vm_without_livemigrate Running-attached NFS3 without livemigrate is rejected Pass
test_22_reject_attached_running_vm_with_livemigrate Live volume-only migration is rejected Pass
test_23_reject_same_pool Migration to the volume's current pool is rejected Pass

@RosiKyu

RosiKyu commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

@rajiv-jain-netapp , @piyush5netapp , @sathvikaragi , @sp16743 could you please review this PR?

@RosiKyu

RosiKyu commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@RosiKyu a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

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

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 3.86%. Comparing base (6a0fcd6) to head (2c4d1f0).
⚠️ Report is 7 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (6a0fcd6) and HEAD (2c4d1f0). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (6a0fcd6) HEAD (2c4d1f0)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               main   #14736       +/-   ##
=============================================
- Coverage     20.81%    3.86%   -16.95%     
=============================================
  Files          6053      494     -5559     
  Lines        548451    42888   -505563     
  Branches      73279     8141    -65138     
=============================================
- Hits         114138     1657   -112481     
+ Misses       420948    40999   -379949     
+ Partials      13365      232    -13133     
Flag Coverage Δ
uitests 3.86% <ø> (ø)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown

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

@weizhouapache weizhouapache changed the title Support for Compute + Volume migration and Volume migration ONTAP: Support for Compute + Volume migration and Volume migration Nov 24, 2026
@RosiKyu

RosiKyu commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

@sandeeplocharla could you please resolve the confilcts? Thank you!

rajiv-jain-netapp and others added 11 commits November 30, 2026 15:18
The ONTAP plugin supports local template caching on the primary storage pool during the creation of the first VM or instance when a template is selected from secondary storage. As part of this process, the template is copied and cached locally on the primary storage pool.

For subsequent VM provisioning requests that use the same template and primary storage pool combination, a full template copy from secondary storage is no longer required. Instead, the ONTAP plugin leverages local cloning of the cached template within the primary storage pool, significantly reducing provisioning time and minimizing data transfer overhead.
### Description

This PR...
ASUP Implementation

### 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)
- [x] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)

### Feature/Enhancement Scale or Bug Severity

#### Feature/Enhancement Scale

- [x] Major
- [ ] Minor

#### Bug Severity

- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial

### Screenshots (if appropriate):
This is a testing screen shot, the min frequency is 4 hours, not 1 hour
<img width="1723" height="790" alt="image"
src="https://github.com/user-attachments/assets/f2351e08-6ce3-4925-a1e7-391dfd17cfc3"
/>

<img width="1584" height="523" alt="image"
src="https://github.com/user-attachments/assets/a4313ac9-de68-400a-81dc-1298e9b0a13b"
/>

Smart Solve Data

SmartSolve_EMS-LOG-FILEGZ_Asupid_2026091501340005.html

[?] Tue Sep 15 00:47:27 -0400 [sti245-vsim-ocvs032b: kernel:
ems.engine.suppressed:debug]: Event 'netinet6.rtr.high.mtu' suppressed
205 times in last 3634 seconds.
[ [?] ](javascript:void(0)) Tue Sep 15 00:47:27 -0400
[sti245-vsim-ocvs032b: kernel: netinet6.rtr.high.mtu:info]:
nd6_ra_input: MTU option mtu=9214 sent from fe80:3::21c:73ff:fe00:99;
exceeds the maxmtu 1500 on 'e0c'; ignoring.
[ [?] ](javascript:void(0)) Tue Sep 15 00:50:34 -0400
[sti245-vsim-ocvs032b: dense_ads_monitor:
sis.auto.session.change:notice]: ADS: Number of auto sessions changed
from 4 to 1
[?] Tue Sep 15 00:53:09 -0400 [sti245-vsim-ocvs032b: mgwd:
app.log.notice:notice]: **cstack08.rtp.openenglab.netapp.com: CloudStack
ONTAP plugin 4.23.0.0-SNAPSHOT: (0) provisioning: {"message":"CloudStack
connected to Unified ONTAP
cluster","cloudstackVersion":"4.23.0.0-SNAPSHOT","platform":"Linux
6.8.0-136-generic
(amd64)","ontapVersion":"9.17.1","ontapClusterModel":"SIMBOX","ontapPlatformType":"performance","clusterUuid":"7cd7613a-a571-11f1-b6f8-005056bdad8c","managementServerCount":1}
[ [?] ](javascript:void(0)) Tue Sep 15 00:53:09 -0400
[sti245-vsim-ocvs032b: mgwd: app.log.notice:notice]:
cstack08.rtp.openenglab.netapp.com: CloudStack ONTAP plugin
4.23.0.0-SNAPSHOT: (1) provisioning: {"message":"CloudStack storage pool
backed by Unified ONTAP
volume","poolName":"PoolNFS_43","poolStatus":"Up","protocol":"NFS3","clusterUuid":"7cd7613a-a571-11f1-b6f8-005056bdad8c","svm":"vs0","ontapVolumeUuid":"fb8fece4-a576-11f1-b46d-005056bd1333","rootDiskCount":1,"dataDiskCount":1,"totalLogicalSizeBytes":8589934592,"vmSnapshotCount":1,"volumeSnapshotCount":1,"multiPrimaryStoragePoolVm":false}**
[ [?] ](javascript:void(0)) Tue Sep 15 00:53:42 -0400
[sti245-vsim-ocvs032b: dense_ads_monitor:
sis.auto.session.change:notice]: ADS: Number of auto sessions changed
from 1 to 2
[?] Tue Sep 15 00:54:44 -0400 [sti245-vsim-ocvs032b: dense_ads_monitor:
sis.auto.session.change:notice]: ADS: Number of auto sessions changed
from 2 to 3
[?] Tue Sep 15 00:55:47 -0400 [sti245-vsim-ocvs032b: dense_ads_monitor:
sis.auto.session.change:notice]: ADS: Number of auto sessions changed
from 3 to 1
[?] Tue Sep 15 00:56:50 -0400 [sti245-vsim-ocvs032b: dense_ads_monitor:
sis.auto.session.change:notice]: ADS: Number of auto sessions changed
from 1 to 2
[ [?] ](javascript:void(0)) Tue Sep 15 00:57:52 -0400
[sti245-vsim-ocvs032b: dense_ads_monitor:
sis.auto.session.change:notice]: ADS: Number of auto sessions changed
from 2 to 3
[?] Tue Sep 15 00:58:55 -0400 [sti245-vsim-ocvs032b: dense_ads_monitor:
sis.auto.session.change:notice]: ADS: Number of auto sessions changed
from 3 to 1



### How Has This Been Tested?

1- Keep the ASUP disabled by keep value as 0 and check the events on
ONTAP - No events are getting generated
2- Enable the ASUP and check the events and it was getting triggered on
the given frequency on ontap
3- Verified the data on ontap for event 0 and event 1
4- Created the new VM and Snapshots, and VM across pools then required
field on new run took the new values.
5- Keep the ASUP frequency value less than or greater than required,
throw the error on UI
6- Disable the ASUP again by keep value as 0, the data stop getting
pushed to ontap

#### How did you try to break this feature and the system with this
change?

<!-- see how your change affects other areas of the code, etc. -->

<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
document -->

---------

Co-authored-by: Gupta, Surya <Surya.Gupta@netapp.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
#107)

1. CS volume can be created from CS-volume snapshot only, it will not be
supported with VM level snapshot
2. type of CS volume would be data for both Root and Data CS
volume-snapshot.
3. Cloudstack will not create bootable root type of volume with this
usecase support. User is recommended to to use create template from the
root volume and take it forward to create new bootable root volumes.
4. create CS volume would be residing on the same primary storage pool.
cloudstack does not provide any option to user to choose the destination
storage-pool.


<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->

### 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)
- [ ] Build/CI
- [ ] Test (unit or integration test code)

### Feature/Enhancement Scale or Bug Severity

#### Feature/Enhancement Scale

- [ ] Major
- [x] Minor

#### Bug Severity

- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial

### Screenshots (if appropriate):

Test cases
1.  tested by creating volumes for ROOT & DATA volume snapshots
2. tested by creating volumes and attaching them with VM, for ROOT &
DATA volume snapshots
3. Tried creating template as well from Root CS volume snapshot and
working finw reer below 3rd acreenshot

list of snapshot as below

<img width="1440" height="281" alt="image"
src="https://github.com/user-attachments/assets/ab3f6d5f-d6ea-4203-a748-1c46802250f1"
/>

And list of created volumes from those snapshots, refer by the names of
the snapshots

<img width="1433" height="476" alt="image"
src="https://github.com/user-attachments/assets/7cf66c07-4c3d-4347-8efb-605bff3fb4e2"
/>


<img width="1407" height="259" alt="image"
src="https://github.com/user-attachments/assets/daf0f6e7-c161-4c7f-b2b3-d8d2b12964cf"
/>
…Resize Changes for IOPS) (#102)

### Description

QoS Support includes:
1- Capacity IOPS on the pool,
2- Create Disk/Compute offering with QoS
3- Resize changes for QoS

### Types of changes

- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] 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)
- [ ] Build/CI
- [ ] Test (unit or integration test code)

### Feature/Enhancement Scale or Bug Severity

#### Feature/Enhancement Scale

- [x] Major
- [ ] Minor

#### Bug Severity

- [ ] BLOCKER
- [ ] Critical
- [x] Major
- [ ] Minor
- [ ] Trivial

### Screenshots (if appropriate):

### How Has This Been Tested?
Performed the below testing for ISCSI and NFS both
1- Created the compute/disk offering with CustomIOPS and Fix IOPS both
(min 2000, max 10000)
2- Created a Storage Pool with Total IOPS 5000 - It will just store the
value in DB
3- Create a VM with Fix IOPS (ROOT + 1 DATA) - Created Lun/File, QoS
policy got created and attached to file/lun
4- Create a VM with Custom IOPS (min 2000, max 5000) (ROOT + 1 DATA) -
Created Lun/File, new QoS policy got created and attached to file/lun
5- Create a VM with Fix IOPS (ROOT + 1 DATA) again - Failed with error
saying there is no more IOPS on a pool
6- Change the Total IOPS on pool - worked and new VM creation also went
fine.
7- Resize the Volume, QoS existing field got populated and changed the
min and max value - that also worked by creating new QoS if not found
and attached to the file/Lun
8- Tested on FAS platform where Min QoS is set 1000 and it throw the
error in logs, not on UI as UI is not using the thrown message from
vendor
9- Tested on FAS platform where Min QoS is set 0 and VM created
successfully.
10- Tested with No QoS - Success


#### How did you try to break this feature and the system with this
change?

<!-- see how your change affects other areas of the code, etc. -->

<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
document -->

---------

Co-authored-by: Gupta, Surya <Surya.Gupta@netapp.com>
…nfs (#100)

### Description
Cloudstack volume resize supports grow for both NFS and Iscsi which on
ontap leads to increase in size for a LUN in case of iscsi and file in
case of NFS.Also consists of UT's for the changes and implementation for
getusedbytes which is called in this flow to check if storagepool has
enough space.
This PR...
<!--- Describe your changes in DETAIL - And how has behaviour
functionally changed. -->

<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to
reproduce. -->

<!-- When "Fixes: #<id>" is specified, the issue/PR will automatically
be closed when this PR gets merged -->
<!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
<!-- Fixes: # -->

<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->

### Types of changes

- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [X] 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)
- [ ] Build/CI
- [ ] Test (unit or integration test code)

### Feature/Enhancement Scale or Bug Severity

#### Feature/Enhancement Scale

- [ ] Major
- [X] Minor

#### Bug Severity

- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial

### Screenshots (if appropriate):

### How Has This Been Tested?
Before resizing volumes:
<img width="1461" height="338" alt="Screenshot 2026-09-24 at 3 25 10 PM"
src="https://github.com/user-attachments/assets/dfdcbf26-df4a-4d5d-b678-275eb804ab6a"
/>

Growing iscsi csvolume to 10GiB:
<img width="1440" height="278" alt="Screenshot 2026-09-24 at 3 32 37 PM"
src="https://github.com/user-attachments/assets/fb02809f-04e4-41ff-8415-d54545131a78"
/>

Lun on Ontap is grown to 10GiB:
<img width="1539" height="638" alt="Screenshot 2026-09-24 at 3 30 02 PM"
src="https://github.com/user-attachments/assets/69fbe426-abaa-439f-95dd-516233b9f2cf"
/>

Growing Nfs volume to 10GiB:
<img width="1470" height="422" alt="Screenshot 2026-09-24 at 3 34 16 PM"
src="https://github.com/user-attachments/assets/5b7bbff6-aae3-41c2-bf86-727eff97a917"
/>

virtual size of file on host side grown to 10GiB:
<img width="1073" height="402" alt="Screenshot 2026-09-24 at 3 34 45 PM"
src="https://github.com/user-attachments/assets/ccb40d12-5b5a-4702-b224-208ce902a192"
/>

maxsize by default is 1024 GiB in cloudstack for volume which is
configurable if size greater than that throws an error:
<img width="1448" height="431" alt="Screenshot 2026-09-24 at 3 37 08 PM"
src="https://github.com/user-attachments/assets/51f2e5ed-d2b1-4c83-b718-a75a1a477fff"
/>

considering the overprovisiong factor, used space and current space,
cloud stack calculates and propagates error in case value is over that:
here get used bytes gets triggered:
ISCSI CS-volume resize and get usedbytes here is triggered.
<img width="1406" height="1039" alt="Screenshot 2026-09-28 at 5 47
46 PM"
src="https://github.com/user-attachments/assets/a75f939b-f10a-4f78-9d08-7214eb23c5b8"
/>

NFS CS-volume resize and get usedbytes here is triggered.
<img width="1409" height="944" alt="Screenshot 2026-09-28 at 5 49 24 PM"
src="https://github.com/user-attachments/assets/21c3d9ab-6ea8-4612-a9ee-247b76bad976"
/>

<img width="1456" height="418" alt="Screenshot 2026-09-24 at 3 38 41 PM"
src="https://github.com/user-attachments/assets/ad58307a-9f80-4a5c-b4fd-9d8d463c79a0"
/>

when Lun is deleted on ontap and cs volume is tried to resize , error is
thrown:
<img width="1463" height="430" alt="Screenshot 2026-09-24 at 3 40 17 PM"
src="https://github.com/user-attachments/assets/be8255e3-d3c1-4ea5-a51f-c02f69dda727"
/>

when file is deleted on ONtap and resize is performed on volume:
<img width="1427" height="410" alt="Screenshot 2026-09-24 at 3 41 40 PM"
src="https://github.com/user-attachments/assets/49a87362-8f20-4e3e-a623-78ab4fbb9ee4"
/>

when shrink is performed on Iscsi volume with shrinkOk as true:
<img width="1462" height="438" alt="Screenshot 2026-09-24 at 3 42 59 PM"
src="https://github.com/user-attachments/assets/d870098e-40ed-4973-87e0-e035f25d1fc4"
/>

when shrink is performed on NFS volume :
<img width="1464" height="396" alt="Screenshot 2026-09-24 at 3 43 56 PM"
src="https://github.com/user-attachments/assets/0a3ad65f-5271-4738-b010-8ba5fe126c60"
/>



<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, and the tests you ran
to -->

#### How did you try to break this feature and the system with this
change?

<!-- see how your change affects other areas of the code, etc. -->

<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
document -->

---------

Co-authored-by: Gupta, Surya <Surya.Gupta@netapp.com>
…l number instead of logical unit number and enabling VM migration within/across cluster (#114)

### Description

This PR...
Netapp ONTAP iscsi provisioning using lun serial number instead of logical unit number and enabling VM migration within/across cluster .

<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to
reproduce. -->

<!-- When "Fixes: #<id>" is specified, the issue/PR will automatically
be closed when this PR gets merged -->
<!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
<!-- Fixes: # -->

<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->

### Types of changes

- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] 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)
- [ ] Build/CI
- [ ] Test (unit or integration test code)

### 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?
All provisioning workflows has been tested. 
<img width="1235" height="146" alt="image"
src="https://github.com/user-attachments/assets/4141e46b-e97f-4ba2-8d9a-d3986ce5cea5"
/>
<img width="1231" height="110" alt="image"
src="https://github.com/user-attachments/assets/3a1054ea-8752-46e7-a8fa-ff95c5d1967d"
/>
<img width="1234" height="228" alt="image"
src="https://github.com/user-attachments/assets/d307fa8d-2495-4847-b1ac-45e5508cb7bd"
/>
virsh domblklist i-2-73-VM
 Target   Source
------------------------------------------------------------------
 vda      /dev/disk/by-id/wwn-0x600a098078304d2d383f2f6b45734c63
 vdb      /dev/disk/by-id/wwn-0x600a098078304d2d383f2f6b45734c64
 hdc      -
 hdd      -
ls -la /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Oct 14 15:56
scsi-3600a098078304d2d383f2f6b45734c63 -> ../../sdc
lrwxrwxrwx 1 root root 10 Oct 14 15:56
scsi-3600a098078304d2d383f2f6b45734c63-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Oct 14 15:56
scsi-3600a098078304d2d383f2f6b45734c63-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 9 Oct 14 15:56
scsi-3600a098078304d2d383f2f6b45734c64 -> ../../sdd
lrwxrwxrwx 1 root root 9 Oct 14 15:56
wwn-0x600a098078304d2d383f2f6b45734c63 -> ../../sdc
lrwxrwxrwx 1 root root 10 Oct 14 15:56
wwn-0x600a098078304d2d383f2f6b45734c63-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Oct 14 15:56
wwn-0x600a098078304d2d383f2f6b45734c63-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 9 Oct 14 15:56
wwn-0x600a098078304d2d383f2f6b45734c64 -> ../../sdd


<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, and the tests you ran
to -->

#### How did you try to break this feature and the system with this
change?

<!-- see how your change affects other areas of the code, etc. -->

<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
document -->

---------

Co-authored-by: Srivastava, Piyush <Piyush.Srivastava@netapp.com>
### Description

Upstream PR : apache#14193

1- This allocates an intermediate list and then traverses it three more
times. Since this runs once per pool per interval, on very large pools
this adds avoidable CPU/GC overhead. Consider computing rootDiskCount,
dataDiskCount, and totalLogicalSizeBytes in a single pass over volumes
(filtering by CS_VOLUME_STATES inline) to reduce allocations and
repeated streaming.
2- This treats a missing/unknown is_all_flash_optimized (null) as false,
which classifies the node as fas and can incorrectly set cluster
platformType when ONTAP doesn’t return these fields (permissions/older
versions/partial responses). Consider returning null (unknown) when the
required flags are absent and only adding non-null classifications to
the rollup set so ASUP doesn’t misreport hardware type.
3- The DAO method is documented as “non-destroyed” volumes, but the SQL
currently includes volumes in transitional/pre-provisioning states
(e.g., Allocated) because it only excludes Destroy/Expunged. That can
incorrectly flip multiPrimaryStoragePoolVm=true for VMs whose data disk
hasn’t actually been created/moved yet. Tighten the state predicates to
align with the intended “physically exists” semantics (e.g., include
only the same stable states you count elsewhere, or explicitly exclude
Allocated/upload-related states).
4- lock.unlock() is executed even when lock.lock(...) returns false
(early return), which can attempt to unlock a lock this thread never
acquired. Additionally, GlobalLock.getInternLock(...) typically requires
releasing the reference (e.g., releaseRef()) to avoid leaking the
interned lock object. Track a boolean locked and only unlock() when
true, and ensure the lock reference is released in finally (even when
not acquired).

fixed the above issues
<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->

### Types of changes

- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] 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)
- [ ] Build/CI
- [ ] Test (unit or integration test code)

### Feature/Enhancement Scale or Bug Severity

#### Feature/Enhancement Scale

- [x] Major
- [ ] Minor

#### Bug Severity

- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial

### Screenshots (if appropriate):

### How Has This Been Tested?

<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, and the tests you ran
to -->

#### How did you try to break this feature and the system with this
change?

<!-- see how your change affects other areas of the code, etc. -->

<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
document -->

---------

Co-authored-by: Gupta, Surya <Surya.Gupta@netapp.com>
### Description
Following changes are included:

1- Change Disk Offering
2- Accept Min as zero in create volume, resize volume and change disk
offering for min iops field
3- Delete QoS
4- Create Volume from Snapshot with QoS

<!--- Describe your changes in DETAIL - And how has behaviour
functionally changed. -->

<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to
reproduce. -->

<!-- When "Fixes: #<id>" is specified, the issue/PR will automatically
be closed when this PR gets merged -->
<!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
<!-- Fixes: # -->

<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->

### 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)
- [ ] Build/CI
- [ ] Test (unit or integration test code)

### Feature/Enhancement Scale or Bug Severity

#### Feature/Enhancement Scale

- [x] Major
- [ ] Minor

#### Bug Severity

- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial

### Screenshots (if appropriate):

<img width="624" height="377" alt="image"
src="https://github.com/user-attachments/assets/382fb6b2-736c-42ce-94b1-ffc8c455031e"
/>

<img width="616" height="518" alt="image"
src="https://github.com/user-attachments/assets/16e41110-a299-4dd5-bafe-44a71987aab0"
/>

### How Has This Been Tested?
1- Created a VM with root on AFF with custom IOPS - Success
2- Created a VM with root on FAS with custom IOPS with min 0 and max
1000 - Success
3- Created a VM with root on FAS with custom IOPS with min 100 and max
1000 - Throw error on UI, Expected Behaviour
4- Created a VM with root on AFF with Fix IOPS - Success
5- Created a VM with root on FAS with Fix IOPS with min 100 and max 1000
- Throw error on UI, Expected Behaviour

6- Created a volume with Custom IOPS on AFF with min 200 and max 400 and
attache to VM- success
7- Created a volume with Custom IOPS on FAS with min 0 and max 400 and
attache to VM - success
8- Created a Volume on FAS with Fix IOPS with min 100 and max 1000 -
Throw error on UI, Expected Behaviour

9- Resize the Volume and change the QoS IOPS for AFF- Success 
10- Resize the Volume and change the QoS IOPS for FAS with min 0 -
Success
11- Resize the Volume and change the QoS IOPS for FAS with min 100 -
Throw error on UI, Expected Behaviour

12- Change Disk Offering - Change from Custom to Fix on AFF - Success
13- Change Disk Offering - Change from Custom to Fix on FAS with min > 0
- Throw error on UI, Expected Behaviour
14- Change Disk Offering - Change from Fix to Custom on AFF - Success
15- Change Disk Offering - Change from Custom to Custom on FAS with min
with 0 - Success

16- Delete VM - Delete QoS Policy - Success
17- Delete Volume - Delete QoS Policy - Success

18- Snapshot: Create a Snapshot of a volume which has QoS and created a
volume from snapshot - success

#### How did you try to break this feature and the system with this
change?

<!-- see how your change affects other areas of the code, etc. -->

<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
document -->

---------

Co-authored-by: Gupta, Surya <Surya.Gupta@netapp.com>
…rage volume; Also, the corresponding UT changes (#89)

### Description

This PR has changes to refactor choosing an aggregate and its
corresponding network interface and also creation of storage volume.
Also, with this, volume creation would be done at the end, avoiding
volume creation cleanup if in case there's a chance of failure during
aggregate or network interface selection.

<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->

### Types of changes

- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [X] 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)
- [ ] Build/CI
- [ ] Test (unit or integration test code)

### Feature/Enhancement Scale or Bug Severity

#### Feature/Enhancement Scale

- [ ] Major
- [ ] Minor

#### Bug Severity

- [ ] BLOCKER
- [ ] Critical
- [X] Major
- [ ] Minor
- [ ] Trivial

### Screenshots (if appropriate):

### How Has This Been Tested?
=================================================================
LATEST:

[iSCSI]
<img width="1052" height="361" alt="Screenshot 2026-10-07 at 11 47
36 PM"
src="https://github.com/user-attachments/assets/7e24be99-c0bf-450e-8ef0-de9390a20e76"
/>
<img width="575" height="663" alt="Screenshot 2026-10-07 at 11 48 39 PM"
src="https://github.com/user-attachments/assets/7af15681-9fbd-4f85-8b6a-f683701062c1"
/>
<img width="575" height="389" alt="Screenshot 2026-10-07 at 11 48 59 PM"
src="https://github.com/user-attachments/assets/bf8ca9f6-f245-4530-a172-0fdbd45b9796"
/>
<img width="451" height="666" alt="Screenshot 2026-10-07 at 11 49 25 PM"
src="https://github.com/user-attachments/assets/ca53cddb-1626-481e-acb3-226d74e42352"
/>
<img width="1306" height="71" alt="Screenshot 2026-10-07 at 11 51 14 PM"
src="https://github.com/user-attachments/assets/11609207-fc4b-4b9b-a6f2-aee2b049730c"
/>

[NFS3]
<img width="1042" height="418" alt="Screenshot 2026-10-07 at 11 53
41 PM"
src="https://github.com/user-attachments/assets/632bc4a5-c1fa-4476-b063-66b3221f4640"
/>
<img width="1103" height="354" alt="Screenshot 2026-10-07 at 11 53
57 PM"
src="https://github.com/user-attachments/assets/ff5ba193-2dd2-4a7a-a4ac-791abfc72548"
/>
<img width="580" height="658" alt="Screenshot 2026-10-07 at 11 54 23 PM"
src="https://github.com/user-attachments/assets/2eada67e-a835-4c3a-803c-614e4f7e0a72"
/>
<img width="580" height="373" alt="Screenshot 2026-10-07 at 11 54 39 PM"
src="https://github.com/user-attachments/assets/bada67dd-4c55-4c1d-a7d1-739928c40b80"
/>
<img width="1306" height="39" alt="Screenshot 2026-10-07 at 11 53 22 PM"
src="https://github.com/user-attachments/assets/8650c275-d7e0-4bb3-94d7-4d5fe3e93eba"
/>

=================================================================
<img width="1042" height="359" alt="Screenshot 2026-08-10 at 7 23 42 AM"
src="https://github.com/user-attachments/assets/c7f08ec8-b84e-471c-af39-5e701973ecf3"
/>
<img width="1098" height="550" alt="Screenshot 2026-08-10 at 7 24 42 AM"
src="https://github.com/user-attachments/assets/be0d77de-be40-4415-b9b0-0870db557b46"
/>
<img width="1098" height="550" alt="Screenshot 2026-08-10 at 7 25 06 AM"
src="https://github.com/user-attachments/assets/347aeb2d-5127-4105-8972-ddc1a029458f"
/>
<img width="1306" height="250" alt="Screenshot 2026-08-10 at 7 27 30 AM"
src="https://github.com/user-attachments/assets/db1c04ba-ede3-4c1e-915b-a7b098040b68"
/>

[ChoosingAggregateRefactorLogs_iSCSi.rtf](https://github.com/user-attachments/files/30884333/ChoosingAggregateRefactorLogs_iSCSi.rtf)
<img width="1035" height="315" alt="Screenshot 2026-08-10 at 7 33 52 AM"
src="https://github.com/user-attachments/assets/7eb12479-b705-4d00-9443-6851e0aa66f4"
/>
<img width="1100" height="668" alt="Screenshot 2026-08-10 at 7 34 48 AM"
src="https://github.com/user-attachments/assets/db760e61-1bfa-47c8-8123-1e2db21971ca"
/>
<img width="1100" height="437" alt="Screenshot 2026-08-10 at 7 35 01 AM"
src="https://github.com/user-attachments/assets/90f259bd-fcae-4073-909f-d74e38537a4f"
/>
<img width="1306" height="255" alt="Screenshot 2026-08-10 at 7 36 07 AM"
src="https://github.com/user-attachments/assets/1d8b677f-8e9a-4597-a921-0e4c77914112"
/>

[choosingAggregateRefactorLogs_NFS3.rtf](https://github.com/user-attachments/files/30884337/choosingAggregateRefactorLogs_NFS3.rtf)


Choosing LIFs and aggregates might need further enhancement and a
backlog story has been created for it
https://netapp.atlassian.net/browse/CSTACKEX-343
CSTACKEX-348 Fix NFS volume from snapshot source path
…tion (#112)

### Description

This PR...
<!--- Describe your changes in DETAIL - And how has behaviour
functionally changed. -->

<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to
reproduce. -->

<!-- When "Fixes: #<id>" is specified, the issue/PR will automatically
be closed when this PR gets merged -->
<!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
<!-- Fixes: # -->

<!---
*******************************************************************************
-->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE
DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!---
*******************************************************************************
-->

### Types of changes

- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [X] 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)
- [ ] Build/CI
- [X] Test (unit or integration test code)

### Feature/Enhancement Scale or Bug Severity

#### Feature/Enhancement Scale

- [X] Major
- [ ] Minor

#### Bug Severity

- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial

| Use case | Suite | Tests | Result |
| --- | --- | --- | --- |
| Live VM migration with volumes | migration_live | 22 | Pass |
| Stopped VM storage migration | migration_stopped | 15 | Pass |
| Volume migration (detached or stopped-attached) | migration_volume |
23 | Pass |
| iSCSI pool lifecycle | iscsi_pool_lifecycle | 8 | Pass |
| iSCSI pool with volumes | iscsi_pool_volumes | 7 | Pass |
| iSCSI zone-scoped pool | iscsi_zone_pool | 4 | Pass |
| iSCSI volume lifecycle | iscsi_volume | 5 | Pass |
| iSCSI VM volume attach | iscsi_instance | 8 | Pass |
| NFS3 pool lifecycle | nfs3_pool_lifecycle | 8 | Pass |
| NFS3 pool with volumes | nfs3_pool_volumes | 7 | Pass |
| NFS3 zone-scoped pool | nfs3_zone_pool | 4 | Pass |
| NFS3 volume lifecycle | nfs3_volume | 5 | Pass |
| NFS3 VM volume attach | nfs3_instance | 8 | Pass |
### Live VM with volumes (`migrateVirtualMachineWithVolume`)
| Test | What it covers | Status |
| --- | --- | --- |
| test_01_nfs3_default_primary_to_cluster | DefaultPrimary root and data
volumes to NFS3 C1a | Pass |
| test_02_nfs3_cluster_to_cluster | NFS3 C1a to C1b | Pass |
| test_03_nfs3_cluster_to_zone | NFS3 C1b to zone-wide Z1 | Pass |
| test_04_nfs3_zone_to_zone | NFS3 Z1 to Z2 | Pass |
| test_05_nfs3_zone_to_cluster | NFS3 Z2 back to C1a | Pass |
| test_06_iscsi_default_primary_to_cluster | DefaultPrimary root and
data volumes to iSCSI C1a | Pass |
| test_07_iscsi_cluster_to_cluster | iSCSI C1a to C1b | Pass |
| test_08_iscsi_cluster_to_zone | iSCSI C1b to Z1 | Pass |
| test_09_iscsi_zone_to_zone | iSCSI Z1 to Z2 | Pass |
| test_10_iscsi_zone_to_cluster | iSCSI Z2 back to C1a | Pass |
| test_11_reject_nfs3_to_iscsi | Live NFS3-to-iSCSI mapping is rejected
| Pass |
| test_12_reject_iscsi_to_nfs3 | Live iSCSI-to-NFS3 mapping is rejected
| Pass |
| test_13_reject_live_volume_only | `migrateVolume` with livemigrate on
a running volume is rejected | Pass |
| test_14_nfs3_cluster_to_cluster | After host split, NFS3 C1a to C2 |
Pass |
| test_15_nfs3_cluster_to_zone | NFS3 C1a to Z1 onto a C2 host | Pass |
| test_16_nfs3_zone_to_cluster | NFS3 Z1 to C2 | Pass |
| test_17_nfs3_zone_to_zone | NFS3 Z1 to Z2 onto a C2 host | Pass |
| test_18_iscsi_cluster_to_cluster | iSCSI C1a to C2 onto a C2 host |
Pass |
| test_19_iscsi_cluster_to_zone | iSCSI C1a to Z1 onto a C2 host | Pass
|
| test_20_iscsi_zone_to_cluster | iSCSI Z1 to C2 | Pass |
| test_21_iscsi_zone_to_zone | iSCSI Z1 to Z2 onto a C2 host | Pass |
| test_22_reject_pool_not_reachable_from_destination_host | Cluster-1
pool mapped to a cluster-2 host is rejected | Pass |
### Stopped VM storage migration (`migrateVirtualMachineWithVolume`, no
destination host)
| Test | What it covers | Status |
| --- | --- | --- |
| test_01_nfs3_default_primary_to_cluster | DefaultPrimary to NFS3 C1a |
Pass |
| test_02_nfs3_cluster_to_cluster_same_cluster | NFS3 between cluster
pools in the same cluster | Pass |
| test_03_nfs3_cluster_to_cluster_across_clusters | NFS3 to a pool in
the second cluster | Pass |
| test_04_nfs3_cluster_to_zone | NFS3 cluster pool to zone-wide | Pass |
| test_05_nfs3_zone_to_zone | NFS3 between two zone-wide pools | Pass |
| test_06_nfs3_zone_to_cluster | NFS3 zone-wide back to C1a | Pass |
| test_07_iscsi_default_primary_to_cluster | DefaultPrimary to iSCSI C1a
| Pass |
| test_08_iscsi_cluster_to_cluster_same_cluster | iSCSI between cluster
pools in the same cluster | Pass |
| test_09_iscsi_cluster_to_cluster_across_clusters | iSCSI to a pool in
the second cluster | Pass |
| test_10_iscsi_cluster_to_zone | iSCSI cluster pool to zone-wide | Pass
|
| test_11_iscsi_zone_to_zone | iSCSI between two zone-wide pools | Pass
|
| test_12_iscsi_zone_to_cluster | iSCSI zone-wide back to C1a | Pass |
| test_13_reject_nfs3_to_iscsi | Stopped-VM NFS3-to-iSCSI is rejected |
Pass |
| test_14_reject_iscsi_to_nfs3 | Stopped-VM iSCSI-to-NFS3 is rejected |
Pass |
| test_15_reject_running_vm | Stopped-VM API form is rejected once the
VM is running | Pass |
### Volume migration (`migrateVolume`)
| Test | What it covers | Status |
| --- | --- | --- |
| test_01_nfs3_detached_default_primary_to_cluster | Detached NFS3,
DefaultPrimary to C1a | Pass |
| test_02_nfs3_detached_cluster_to_cluster_same_cluster | Detached NFS3,
C1a to C1b | Pass |
| test_03_nfs3_detached_cluster_to_cluster_across_clusters | Detached
NFS3, C1b to C2 | Pass |
| test_04_nfs3_detached_cluster_to_zone | Detached NFS3, C2 to Z1 | Pass
|
| test_05_nfs3_detached_zone_to_zone | Detached NFS3, Z1 to Z2 | Pass |
| test_06_nfs3_detached_zone_to_cluster | Detached NFS3, Z2 back to C1a
| Pass |
| test_07_iscsi_detached_default_primary_to_cluster | Detached iSCSI,
DefaultPrimary to C1a | Pass |
| test_08_iscsi_detached_cluster_to_cluster_same_cluster | Detached
iSCSI, C1a to C1b | Pass |
| test_09_iscsi_detached_cluster_to_cluster_across_clusters | Detached
iSCSI, C1b to C2 | Pass |
| test_10_iscsi_detached_cluster_to_zone | Detached iSCSI, C2 to Z1 |
Pass |
| test_11_iscsi_detached_zone_to_zone | Detached iSCSI, Z1 to Z2 | Pass
|
| test_12_iscsi_detached_zone_to_cluster | Detached iSCSI, Z2 back to
C1a | Pass |
| test_13_nfs3_attached_stopped_vm_cluster_to_zone | Stopped-attached
NFS3 data, C1a to Z1; root stays | Pass |
| test_14_iscsi_attached_stopped_vm_cluster_to_zone | Stopped-attached
iSCSI data, C1a to Z1; root stays | Pass |
| test_15_nfs3_attached_stopped_vm_default_to_ontap | Stopped-attached
non-ONTAP data to ONTAP NFS3 | Pass |
| test_16_iscsi_attached_stopped_vm_default_to_ontap | Stopped-attached
non-ONTAP data to ONTAP iSCSI | Pass |
| test_17_reject_detached_nfs3_to_iscsi | Detached NFS3-to-iSCSI is
rejected | Pass |
| test_18_reject_detached_iscsi_to_nfs3 | Detached iSCSI-to-NFS3 is
rejected | Pass |
| test_19_reject_stopped_attached_nfs3_to_iscsi | Stopped-attached
NFS3-to-iSCSI is rejected | Pass |
| test_20_reject_stopped_attached_iscsi_to_nfs3 | Stopped-attached
iSCSI-to-NFS3 is rejected | Pass |
| test_21_reject_attached_running_vm_without_livemigrate |
Running-attached NFS3 without livemigrate is rejected | Pass |
| test_22_reject_attached_running_vm_with_livemigrate | Live volume-only
migration is rejected | Pass |
| test_23_reject_same_pool | Migration to the volume's current pool is
rejected | Pass |
@sandeeplocharla
sandeeplocharla force-pushed the compute-with-ontap-storage-migration-support branch from 2c4d1f0 to fecf3a9 Compare December 1, 2026 01:13

This branch has not been deployed

No deployments
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.

8 participants