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

nvme_gw: implicitly create transports #18

Merged
merged 2 commits into from
May 30, 2022

Conversation

trociny
Copy link
Contributor

@trociny trociny commented May 19, 2022

Instead of providing create_transport command, implicitly create
transports that are specified in spdk/transports config option
(space separated values).

Additionally one may use spdk/transport_{name}_options to
specify transport specific options (space separated key=val)

Fixes: #12
Signed-off-by: Mykola Golub mykola.golub@clyso.com

@trociny trociny requested a review from idryomov May 19, 2022 07:12
@trociny
Copy link
Contributor Author

trociny commented May 19, 2022

@sskaur @PepperJo

Copy link

@PepperJo PepperJo left a comment

Choose a reason for hiding this comment

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

I suggested this a while ago.

nvme_gw_server.py Outdated Show resolved Hide resolved
nvme_gw.config Show resolved Hide resolved
@trociny
Copy link
Contributor Author

trociny commented May 21, 2022

@PepperJo updated. Right now it includes #21. I will rebase when #21 is merged.

nvme_gw_server.py Outdated Show resolved Hide resolved
nvme_gw_server.py Outdated Show resolved Hide resolved
nvme_gw_config.py Outdated Show resolved Hide resolved
Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
nvme_gw_server.py Outdated Show resolved Hide resolved
nvme_gw_config.py Show resolved Hide resolved
nvme_gw_server.py Outdated Show resolved Hide resolved
@trociny trociny force-pushed the wip-transport-config branch 2 times, most recently from 60f48ed to d9ec721 Compare May 25, 2022 16:32
@trociny
Copy link
Contributor Author

trociny commented May 25, 2022

@PepperJo @idryomov updated.

Just as a curious fact, if you specify an unknown option in the json string, the tgt will just silently ignore it when creating the transport. It will fail though if an option name is correct but its value or type is invalid.

nvme_gw_server.py Outdated Show resolved Hide resolved
nvme_gw.config Outdated Show resolved Hide resolved
nvme_gw_server.py Outdated Show resolved Hide resolved
Instead of providing create_transport command, implicitly create
transports that are specified in spdk/transports config option
(space separated values).

Also support transport_{name}_options config param in spdk section
to specify transport specific options (json encoded string).

Fixes: ceph#12
Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
@trociny
Copy link
Contributor Author

trociny commented May 26, 2022

@idryomov Thanks. Updated.

@idryomov
Copy link
Contributor

Looks good!

@PepperJo I think we are on the same page now, but I'd rather not override your "Changes requested". Please ack and I'll merge.

Copy link

@PepperJo PepperJo left a comment

Choose a reason for hiding this comment

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

Thanks Mykola. LGTM

@idryomov idryomov merged commit 395b02c into ceph:devel May 30, 2022
@epuertat epuertat added this to the Milestone 2 milestone Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

cli: implicitly create transports
4 participants