-
Notifications
You must be signed in to change notification settings - Fork 44
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
Create "ceph-nvmeof" CLI command to use nvmeof-cli #752
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 🖖
Add "ceph-nvmeof" cli command to use it as a CLI instead of containers. Signed-off-by: Vallari Agrawal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, Vallari! Now I see the new CLI usage, it'd probably make sense to enable fetching the server address/port from a global env. var too (that will save a lot of repetitive input).
CEPH_NVMEOF_SERVER_ADDRESS=192.168.1.20
CEPH_NVMEOF_SERVER_PORT=5500
ceph-nvmeof gateway info
@epuertat I have merged the workflows into one - it looks much better now! Thank you! Let me know if my solution of reading default server-address/port in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, @VallariAg ! Thank you for addressing my comments.
Just left a few more comments that might improve the PR.
Official releases would be published to https://pypi.org/project/ceph-nvmeof/ on every tag releases on github. Dev releases would be published to https://test.pypi.org/project/ceph-nvmeof/ on every merge to "devel" branch. Package will override if the version already exists. For example, if "1.2.15" already exists on test.pypi and the new commit also has same version (in pyproject.toml), then that package would be overwritten (by using a bigger build number). Signed-off-by: Vallari Agrawal <[email protected]>
Signed-off-by: Vallari Agrawal <[email protected]>
"--server-address" defaults to env variable CEPH_NVMEOF_SERVER_ADDRESS (otherwise "localhost"). "--server-port" defaults to env variable CEPH_NVMEOF_SERVER_PORT (otherwise 5500). This is to avoid repetitive inputs. If these environment variables are set, we can just do: `ceph-nvmeof gw info`. (instead of current `ceph-nvmeof --server-address / $NVMEOF_SERVER_ADDRESS --server-port / $NVMEOF_SERVER_PORT gw info`) Signed-off-by: Vallari Agrawal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT! Great work @VallariAg !
Add "ceph-nvmeof" cli command to package this as python cli tool instead of using via containers.
How to build it:
Usage:
Package: https://pypi.org/project/ceph-nvmeof/