Skip to content

feat(python): introduce Python ONTAP REST API automation scripts#10

Merged
57388sp merged 1 commit intomainfrom
add-workflow-files
May 7, 2026
Merged

feat(python): introduce Python ONTAP REST API automation scripts#10
57388sp merged 1 commit intomainfrom
add-workflow-files

Conversation

@57388sp
Copy link
Copy Markdown
Collaborator

@57388sp 57388sp commented Apr 14, 2026

Add Python automation scripts covering the full ONTAP lifecycle —
cluster setup, NFS and CIFS provisioning, SnapMirror replication,
test failover, and cleanup.

All scripts follow a consistent structure with an INPUTS/ENV dict
for inline configuration, step-by-step logger output, actionable
error messages, and no hardcoded credentials. Passes ruff lint and
format checks out of the box.

@57388sp 57388sp requested a review from hvinn as a code owner April 14, 2026 12:04
@57388sp 57388sp force-pushed the add-workflow-files branch 2 times, most recently from b1b21b2 to 2c4c442 Compare May 7, 2026 05:18
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Test Report missing or unfilled.

This PR touches python/, ansible/, or terraform/, so a populated Test Report section is required in the PR body. See TESTING.md for what to capture (environment, ONTAP version, first-run output, idempotency check, teardown).

This is a soft gate - your CI checks are unaffected - but reviewers will not approve until the report is filled in.

Add Python automation scripts covering the full ONTAP lifecycle:
- cluster_info.py: retrieve cluster version and node list
- cluster_setup_basic.py: initial cluster setup
- nfs_provision.py: NFS volume and export policy provisioning
- cifs_provision.py: CIFS share provisioning
- ontap_client.py: shared REST client (OntapClient)
- snapmirror_provision_src_managed.py: SnapMirror source-managed setup
- snapmirror_provision_dest_managed.py: SnapMirror destination-managed setup
- snapmirror_test_failover.py: test failover workflow
- snapmirror_cleanup_test_failover.py: cleanup after test failover

All scripts use OntapClient.from_env(), no hardcoded credentials,
idempotent steps, structured logging, and pass ruff lint checks.
@57388sp 57388sp force-pushed the add-workflow-files branch from 2c4c442 to d5f29ab Compare May 7, 2026 05:25
@57388sp 57388sp merged commit c2fc10a into main May 7, 2026
10 of 12 checks passed
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.

2 participants