Skip to content

feat: clean up scripts for hitachi#73

Open
sanya-pf9 wants to merge 1 commit into
masterfrom
sanya/hitachi-iscsi-audit
Open

feat: clean up scripts for hitachi#73
sanya-pf9 wants to merge 1 commit into
masterfrom
sanya/hitachi-iscsi-audit

Conversation

@sanya-pf9
Copy link
Copy Markdown
Collaborator

pf9-storage-audit-hitachi.py — same flow as the NetApp script, but few changes in the flow:
the left were netapp choices and right is tweak for Hitachi

igroups (global) --> Host groups per port — same name on CL1-A, CL2-A, etc. Script groups by name before classifying

LUN path = /vol/vol1/volume- --> LDEV ID (int) from Cinder's provider_location field; falls back to label search

remove_lun_map(lun_uuid, igroup_uuid) --> remove_lun_path_entry(lun_id="CL1-A,0,0") (one call per port )

add_lun_map(lun_path, igroup) --> add_lun_path_entry(port_id, hg_number, ldev_id) (one call per port )

Synchronous REST --> Handles async jobs (jobId → poll until Completed)

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.

1 participant