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

Only process subsystems with rdma transport #59

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

velomatt
Copy link
Contributor

When a non-rdma subsystem is encountered, dss_host.py fails silently. As a result the nkv conf json files fail to be generated. As a work-around, only process subsystems with RDMA transport.

This is the same "hack" I put in to place in the
subnet_drive_map function.
This mountpt_to_nqn_addr_map is basically an identical function, but it is called with gen2 config.
This needs to be refactored ASAP.

I see at least one other spot where this blind regex is executed (discover_dist function), but I don't think this is live code. Again this needs to be refactored and cleaned up.

When a non-rdma subsystem is encountered, dss_host.py fails silently.
As a result the nkv conf json files fail to be generated.
As a work-around, only process subsystems with RDMA transport.

This is the same "hack" I put in to place in the
`subnet_drive_map` function.
This `mountpt_to_nqn_addr_map` is basically an identical function,
but it is called with gen2 config.
This needs to be refactored ASAP.

I see at least one other spot where this blind regex is executed
(`discover_dist` function), but I don't think this is live code.
Again this needs to be refactored and cleaned up.
@velomatt velomatt requested a review from a team as a code owner June 20, 2024 21:30
Copy link

sonarcloud bot commented Jun 20, 2024

Copy link

@aaronlee121 aaronlee121 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding this change quickly

@velomatt velomatt merged commit 7b983d3 into master Jun 21, 2024
6 checks passed
@velomatt velomatt deleted the address-gen2-config-file-generation-error branch June 21, 2024 00:22
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