Skip to content

Feature/cstackex 251: New pool type for Netapp iscsi usecase - #95

Open
piyush5netapp wants to merge 6 commits into
mainfrom
feature/CSTACKEX-251
Open

Feature/cstackex 251: New pool type for Netapp iscsi usecase#95
piyush5netapp wants to merge 6 commits into
mainfrom
feature/CSTACKEX-251

Conversation

@piyush5netapp

@piyush5netapp piyush5netapp commented Aug 21, 2026

Copy link
Copy Markdown

Description

This PR...

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

Screenshots (if appropriate):

image image image

How Has This Been Tested?

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

@piyush5netapp

Copy link
Copy Markdown
Author

iscsiAdmStorageAdapter ONTAP relevant code will also be pulled into ontapiSCSIAdapter in next commit.

StorPool(true, true, EncryptionSupport.Hypervisor),
FiberChannel(true, true, EncryptionSupport.Unsupported); // Fiber Channel Pool for KVM hypervisors is used to find the volume by WWN value (/dev/disk/by-id/wwn-<wwnvalue>)
FiberChannel(true, true, EncryptionSupport.Unsupported), // Fiber Channel Pool for KVM hypervisors is used to find the volume by WWN value (/dev/disk/by-id/wwn-<wwnvalue>)
OntapiSCSI(true, false, EncryptionSupport.Unsupported); // NetApp ONTAP iSCSI: one FlexVol per pool, one LUN per volume

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

let's not have this comment 'one FlexVol per pool'? As this is bound to change

* discovers adaptors by a Reflections scan of that package alone, and an unregistered type silently
* falls back to {@link LibvirtStorageAdaptor} rather than failing at startup.
*/
public class OntapIscsiStorageAdaptor extends IscsiAdmStorageAdaptor {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are we planning on changing this to 'implements' with our custom code in the near future?

!(imageFormat == ImageFormat.RAW && (StoragePoolType.PowerFlex == poolType ||
StoragePoolType.FiberChannel == poolType))) {
throw new CloudRuntimeException(String.format("Only the following image types are currently supported: %s, %s, %s, %s (for PowerFlex and FiberChannel)",
StoragePoolType.FiberChannel == poolType || StoragePoolType.OntapiSCSI == poolType))) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like this rejects 'iSCSI' pool type also, so, if we did not need this before, do we need this now?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants