You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 207e4e7
Browse filesBrowse the repository at this point in the historyBrowse files
feature/CSTACKEX-253: automation changes for ontapIscsi pool type int… (#97)
…roduction
### 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)
- [ ] 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)
- [x] 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?
Automation has been run
TEST SUMMARY
[iscsi_workflow] iSCSI pool lifecycle
PASS test_01_create_primary_storage_pool
PASS test_02_disable_storage_pool
PASS test_03_enable_storage_pool
PASS test_04_enter_maintenance_mode
PASS test_05_cancel_maintenance_mode
PASS test_06_enter_maintenance_and_delete_pool
PASS test_07_create_volume_on_pool
PASS test_08_delete_volume_and_pool
[iscsi_with_volumes] iSCSI pool with volumes
PASS test_01_create_pool_and_volume
PASS test_02_disable_pool_volume_survives
PASS test_03_enable_pool_volume_intact
PASS test_04_enter_maintenance_volume_present
PASS test_05_cancel_maintenance_volume_present
PASS test_06_forced_false_delete_rejected
PASS test_07_delete_volume_and_force_delete_pool
[iscsi_volume] iSCSI volume lifecycle
PASS test_01_create_pool_and_volume
PASS test_02_delete_volume
PASS test_03_recreate_volume_for_delete_tests
PASS test_04_forced_false_delete_with_volume_fails
PASS test_05_delete_volume_and_force_delete_pool
[iscsi_zone_pool] iSCSI zone-scoped pool
PASS test_01_create_zone_scoped_pool
PASS test_02_disable_zone_scoped_pool
PASS test_03_enable_zone_scoped_pool
PASS test_04_delete_zone_scoped_pool
[iscsi_vm_workflow] iSCSI VM volume workflow
PASS test_01_create_iscsi_pool
PASS test_02_create_ontap_data_volume
PASS test_03_deploy_vm
PASS test_04_attach_volume_to_vm
PASS test_05_stop_vm_lun_unmapped
PASS test_06_start_vm_lun_remapped
PASS test_07_detach_volume_from_vm
PASS test_08_destroy_vm_and_cleanup
================================================================
TOTAL: 32 passed, 0 failed, 0 skipped (32 tests)
<!-- 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>
| 01 |`test_01_create_primary_storage_pool`| Create a cluster-scoped iSCSI primary storage pool | setUpClass |`pool.state == "Up"`, `pool.type == "Iscsi"`| FlexVol `online`; one igroup per cluster host (named `cs_{svmName}_{hostShortName}`) with host IQN as initiator | positive |
141
+
| 01 |`test_01_create_primary_storage_pool`| Create a cluster-scoped iSCSI primary storage pool | setUpClass |`pool.state == "Up"`, `pool.type == "OntapiSCSI"`| FlexVol `online`; one igroup per cluster host (named `cs_{svmName}_{hostShortName}`) with host IQN as initiator | positive |
142
142
| 02 |`test_02_disable_storage_pool`| Disable the pool | test_01 (`pool`) |`pool.state == "Disabled"`| FlexVol still `online`| positive |
143
143
| 03 |`test_03_enable_storage_pool`| Re-enable the pool | test_02 |`pool.state == "Up"`| FlexVol still `online`| positive |
144
144
| 04 |`test_04_enter_maintenance_mode`| Put pool into maintenance | test_03 |`pool.state == "Maintenance"`| FlexVol still `online`; igroups unchanged | positive |
@@ -210,7 +210,7 @@ Each suite is sequential — tests must run in numbered order; each step builds
210
210
211
211
| # | Test method | Goal | Depends on | CloudStack success criteria | ONTAP success criteria | Type |
| 01 |`test_01_create_iscsi_pool`| Create iSCSI ONTAP primary storage pool | setUpClass |`pool.state == "Up"`, `pool.type == "Iscsi"`| FlexVol `online`; igroup per cluster host with host IQN | positive |
213
+
| 01 |`test_01_create_iscsi_pool`| Create iSCSI ONTAP primary storage pool | setUpClass |`pool.state == "Up"`, `pool.type == "OntapiSCSI"`| FlexVol `online`; igroup per cluster host with host IQN | positive |
214
214
| 02 |`test_02_create_ontap_data_volume`| Allocate a CloudStack data volume (creates a LUN in the FlexVol) | test_01 (`pool`) | Volume non-None | ≥1 LUN in FlexVol | positive |
215
215
| 03 |`test_03_deploy_vm`| Deploy VM using first ready KVM template; verify 0 LUN-maps exist before attach | test_02 (`volume`) |`vm.state == "Running"`; 0 LUN-maps on ONTAP | 0 LUN-maps (`list_lun_maps_for_volume` returns empty) | positive |
216
216
| 04 |`test_04_attach_volume_to_vm`| Hot-attach the ONTAP iSCSI volume to the running VM — a LUN-map is created (TDS SN 27) | test_03 (`vm`, `volume`) |`volume.virtualmachineid == vm.id`| ≥1 LUN-map linking the LUN to the host's igroup | positive |
0 commit comments