Skip to content

feat(storage): add Dell PowerFlex backend support - #923

Open
jproque-dell wants to merge 6 commits into
canonical:mainfrom
jproque-dell:main
Open

jproque-dell wants to merge 6 commits into
canonical:mainfrom
jproque-dell:main

Conversation

@jproque-dell

Copy link
Copy Markdown

Add Dell PowerFlex as a new storage backend for Sunbeam.

This introduces a new dellpowerflex backend that enables deploying
OpenStack Cinder with Dell PowerFlex as the block storage provider.
The backend supports both the ScaleIO (PowerFlexDriver) and NVMe-TCP
(PowerFlexNVMeDriver) protocols.

Key configuration options exposed through the PowerFlexConfig model:

  • Gateway connection (san_ip, san_login, san_password)
  • Storage pool selection (protection_domain:storage_pool format)
  • Protocol selection (scaleio or nvme-tcp)
  • Gateway port, oversubscription ratio, volume rounding
  • Image cache vTree size limits
  • REST API timeouts
  • Replication device configuration
  • SSL certificate, multipath, availability zone

The PowerFlexBackend class integrates with the Sunbeam storage
framework via StorageBackendBase, targeting the
cinder-volume-dellpowerflex charm on the 2026.1/edge channel.

Assisted-By: Devin (Claude)

QA steps

  1. Deploy a Sunbeam environment with Cinder storage enabled
  2. Configure a Dell PowerFlex backend using sunbeam storage add --backend dellpowerflex
  3. Provide the required configuration (san_ip, san_login, san_password, powerflex_storage_pools)
  4. Verify the backend is registered and the cinder-volume-dellpowerflex charm is deployed
  5. Create a Cinder volume and confirm it is provisioned on the PowerFlex storage pool

Links

N/A

@hmlanigan hmlanigan added code freeze merge if approved after the code freeze has been lifted and removed code freeze merge if approved after the code freeze has been lifted labels Oct 6, 2026
@hmlanigan

Copy link
Copy Markdown

@jproque-dell please rebase to resolve the functional test failure.

Signed-off-by: Jean-Pierre Roquesalane <jeanpierre.roquesalane@dell.com>
Signed-off-by: Jean-Pierre Roquesalane <jeanpierre.roquesalane@dell.com>

@ahmad-can ahmad-can left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated review (DeepSeek Pro)
Reviewed by: DeepSeek Pro (openrouter/~deepseek/deepseek-pro-latest)

Summary

This PR adds Dell PowerFlex as a new storage backend for Sunbeam, implementing the PowerFlexBackend class and PowerFlexConfig model. The implementation follows the established pattern for storage backends and correctly marks the backend as generally_available = False. The PR description mentions targeting the cinder-volume-dellpowerflex charm on 2026.1/edge, but the code uses latest/stable which is inconsistent.

CI Status Consulted

  • Check signed commits in PR: pass
  • test / Lint: pass
  • test / Type Check: pass
  • test / Unit tests: pass
  • build / Build snap: pass
  • build / Functional test: fail (unrelated infrastructure timeout during sunbeam-machine bootstrap, not caused by this PR)

Findings Not Anchored in Diff

Medium: Missing unit tests for new backend

No unit test file exists for the new dellpowerflex backend. All other backends have corresponding test files in sunbeam-python/tests/unit/sunbeam/storage/backends/ (e.g., test_dellpowerstore.py, test_solidfire.py). Additionally, the backend fixture is missing from conftest.py.

Suggested fix: Add test_dellpowerflex.py following the pattern of test_dellpowerstore.py, and add a dellpowerflex_backend fixture to conftest.py plus register it in the BACKENDS dictionary.

Low: Commits missing Signed-off-by trailers

Four commits (0132668, 77ccd41, 103e6cb, c4f6732) are missing Signed-off-by trailers. While the CI check passed (commits are GPG-signed), the CONTRIBUTING guidelines recommend including Signed-off-by in commit messages.

Suggested fix: Squash the "Update backend.py" commits and ensure all commits have Signed-off-by trailers, or rebase with git commit --amend -s.

Summary Counts

Critical: 0
High: 0
Medium: 2
Low: 2
Nit: 2


# Protocol selection
protocol: Annotated[
Literal["scaleio", "nvme-tcp"],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this targeting Gazpacho? NVMe-TCP support for PowerFlex was introduced in Hibiscus: https://docs.openstack.org/releasenotes/cinder/2026.2.html

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Targeting Hibiscus

@msmarcal

Copy link
Copy Markdown

Heads-up from a related audit on the charm side (sunbeam-charms): cinder-volume-dellpowerflex declares replication-device as type: secret in charmcraft.yaml, but src/charm.py has no secret_validator override bound to it. As it stands, when this option is set the charm receives an ops.Secret into a plain string Pydantic field and configuration validation fails, so the replication path won't work end to end.

Two things worth aligning while this PR is in flight:

  1. This PR stores the value under the secret key replication-details (SecretDictField(field="replication-details")) while the charm option is replication-device. The charm-side fix will need secret_validator("replication-details") to match - or, if the key name was unintentional, using replication-device for both would be less surprising.
  2. The other secret fields (san-login, san-password) line up with the charm's current schema, so it's only the replication option.

Context: we recently went through a tree-wide audit of CLI/charm schema mismatches after LP#2175782 (netapp-login rendered as an unresolved secret URI) - same defect class. Related: LP#2176030, LP#2176082, LP#2176084, LP#2176086, LP#2176088. Happy to file the charm-side fix once the key name is settled here.

@jproque-dell
jproque-dell force-pushed the main branch 8 times, most recently from ac1fd3f to dff1d68 Compare November 25, 2026 20:44
Signed-off-by: Jean-Pierre Roquesalane <jeanpierre.roquesalane@dell.com>
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.

6 participants