Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hpe 3par add host mapping view #798

Merged
merged 31 commits into from
May 6, 2022

Conversation

yuanyu-ghca
Copy link
Contributor

What this PR does / why we need it:
1 add host mapping view

Which issue this PR fixes (optional, in fixes #(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

@codecov
Copy link

codecov bot commented Jan 11, 2022

Codecov Report

Merging #798 (dfe1d35) into master (21d151c) will increase coverage by 0.23%.
The diff coverage is 87.33%.

@@            Coverage Diff             @@
##           master     #798      +/-   ##
==========================================
+ Coverage   70.57%   70.80%   +0.23%     
==========================================
  Files         181      181              
  Lines       19324    19547     +223     
  Branches     2868     2921      +53     
==========================================
+ Hits        13637    13840     +203     
- Misses       4793     4795       +2     
- Partials      894      912      +18     
Impacted Files Coverage Δ
delfin/drivers/hpe/hpe_3par/ssh_handler.py 78.86% <85.18%> (+1.29%) ⬆️
delfin/drivers/hpe/hpe_3par/component_handler.py 78.46% <86.45%> (+4.97%) ⬆️
delfin/drivers/hpe/hpe_3par/consts.py 100.00% <100.00%> (ø)
delfin/drivers/hpe/hpe_3par/hpe_3parstor.py 86.56% <100.00%> (+6.23%) ⬆️
delfin/drivers/hpe/hpe_3par/rest_handler.py 36.20% <100.00%> (+2.27%) ⬆️
delfin/drivers/fake_storage/__init__.py 95.16% <0.00%> (+1.52%) ⬆️

@yuanyu-ghca yuanyu-ghca force-pushed the hpe_3par_hostmap branch 2 times, most recently from a173acf to e4b0270 Compare January 19, 2022 03:08
'native_port_group_id': native_port_group_id,
"storage_id": storage_id
}
if 'set:' in vv_name:
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to validate mandatory fields are set in masking view.

From file <>/delfin/drivers/driver.py, function list_masking_views() comments, mandatory fields:

From host side: Mandatorily one of the (native_storage_host_group_id | native_storage_host_id)
From volume side: Mandatorily one of the (native_volume_group_id | native_volume_id)
From port side: Optionally (native_port_group_id)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified

host_name = view.get('hostname')
if vv_name and host_name:
port = view.get('port', '').replace('-', '')
id = view.get('lun')
Copy link
Contributor

Choose a reason for hiding this comment

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

id is a built-in name, please use another name instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified

Copy link
Collaborator

@joseph-v joseph-v left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@wisererik wisererik left a comment

Choose a reason for hiding this comment

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

LGTM

@wisererik wisererik merged commit 3d0c190 into sodafoundation:master May 6, 2022
@yuanyu-ghca yuanyu-ghca deleted the hpe_3par_hostmap branch July 27, 2022 02:13
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.

5 participants