Revision tags: v24.05, v24.09-pre, v24.05-rc1, LTS, v24.01, v24.05-pre, v24.01-rc1, v23.09, v24.01-pre, v23.09-rc1, v23.05, v23.09-pre, v23.01.1, v23.01, v23.05-pre, v23.01-rc1, v22.01.2 |
|
#
17538bdc |
| 02-Nov-2022 |
paul luse <paul.e.luse@intel.com> |
add (c) and SPDX header to python files as needed
per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices.
git log --follow -C90% --for
add (c) and SPDX header to python files as needed
per Intel policy to include file commit date using git cmd below. The policy does not apply to non-Intel (C) notices.
git log --follow -C90% --format=%ad --date default <file> | tail -1
and then pull just the year from the result.
Intel copyrights were not added to files where Intel either had no contribution ot the contribution lacked substance (ie license header updates, formatting changes, etc)
Note that several files in this patch didn't end the license/(c) block with a blank comment line so these were added as the vast majority of files do have this last blank line. Simply there for consistency.
Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I6cd3f18d1b469d5ef249d26ddb2923ca6b970bd4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15208 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
Revision tags: v22.09, v23.01-pre, v22.09-rc1, v22.05, v22.09-pre, v22.05-rc1, v22.01.1, v22.01, v22.01-rc1, v21.10, v21.10-rc1 |
|
#
7610bc38 |
| 21-Sep-2021 |
Konrad Sztyber <konrad.sztyber@intel.com> |
scripts: move python modules to python directory
Up until now, importing an SPDK RPC python module was just a matter of `import rpc`. It's fine until there's another module called `rpc` installed o
scripts: move python modules to python directory
Up until now, importing an SPDK RPC python module was just a matter of `import rpc`. It's fine until there's another module called `rpc` installed on the system, in which case it's impossible to import both of them. Therefore, to avoid this problem, all of the modules were moved to a separate directory under the "spdk" namespace.
The decision to move to a location under a separate directory was motivated by the fact that a directory called scripts/spdk would look pretty confusing. Moreover, it should make it also easier to package these scripts as a python package.
Other than moving the packages, all of the imports were updated to reflect these changes. Files under python now use relative imports, while those under scripts/ use the "spdk" namespace and have their PYTHONPATH extended with python directory.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Ib43dee73921d590a551dd83885e22870e72451cf Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9692 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
Revision tags: v21.07, v21.07-rc1, v21.04, v21.04-rc1, v21.01.1, v21.01, v21.01-rc1, v20.10, v20.10-rc1, v20.07, v20.07-rc1 |
|
#
8c883b97 |
| 15-Jun-2020 |
yidong0635 <dongx.yi@intel.com> |
scripts/spdkcli: Stay on command input.
It will except in the middle of creation if an error command inputted. usrs hope it could stay on consle. So change this.
For example: ''' SPDK CLI v0.1
/>
scripts/spdkcli: Stay on command input.
It will except in the middle of creation if an error command inputted. usrs hope it could stay on consle. So change this.
For example: ''' SPDK CLI v0.1
/> lsss Command not found lsss /> '''
Signed-off-by: yidong0635 <dongx.yi@intel.com> Change-Id: Ib8d38b5d3f6db1bae965c56e3b78ff715a574189 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2886 Community-CI: Mellanox Build Bot Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
Revision tags: v20.04.1, v20.01.2, v20.04, v20.04-rc1, v20.01.1, v20.01, v20.01-rc1, v19.10.1, v19.10, v19.10-rc1 |
|
#
2f05fbb6 |
| 16-Oct-2019 |
Karol Latecki <karol.latecki@intel.com> |
spdkcli: fix pylint warnings
Fix Python code for warning produced by pylint.
- C1801: Do not use `len(SEQUENCE)` to determine if a sequence is empty (len-as-condition) - W0611: Unused import * (un
spdkcli: fix pylint warnings
Fix Python code for warning produced by pylint.
- C1801: Do not use `len(SEQUENCE)` to determine if a sequence is empty (len-as-condition) - W0611: Unused import * (unused-import) - C0411: standard import should be placed before X (wrong-import-order) - C0411: third party import X should be placed before X (wrong-import-order) - C0412: Imports from package X are not grouped (ungrouped-imports) - W0212: Access to a protected member _exit of a client class (protected-access)
Change-Id: I2c0e8379f962eb2957b428617836867b2e725aeb Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471482 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
Revision tags: v19.07.1 |
|
#
390542a3 |
| 09-Sep-2019 |
Mike Carlin <mikefcarlin@protonmail.com> |
spdkcli: Add support for TCP connection
Adds an option to spdkcli.py to allow connection over a tcp via a host address and port. These options match the format that exists in rpc.py
Signed-off-by:
spdkcli: Add support for TCP connection
Adds an option to spdkcli.py to allow connection over a tcp via a host address and port. These options match the format that exists in rpc.py
Signed-off-by: Mike Carlin <mikefcarlin@protonmail.com> Change-Id: I7e9e1c376546dd765ffd6f4f4db88e193e9aa0ef Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467844 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
Revision tags: v19.07 |
|
#
9fd7f219 |
| 12-Jul-2019 |
Vitaliy Mysak <vitaliy.mysak@intel.com> |
spdkcli: handle BrokenPipeError
Catch BrokenPipeError to display meaningful error message.
Withouth this change, user gets stacktrace when e.g. SPDK application was closed.
Change-Id: Ia7d8edb92
spdkcli: handle BrokenPipeError
Catch BrokenPipeError to display meaningful error message.
Withouth this change, user gets stacktrace when e.g. SPDK application was closed.
Change-Id: Ia7d8edb92a70b4c4b9e71a7d4ce38e265769936a Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/461571 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
#
6ef78fe6 |
| 15-Jul-2019 |
Vitaliy Mysak <vitaliy.mysak@intel.com> |
spdkcli: handle intialiazation error
Catch exceptions during RPC client initialization to display meaningful error message.
Withouth this change, user gets stacktrace when e.g. SPDK application
spdkcli: handle intialiazation error
Catch exceptions during RPC client initialization to display meaningful error message.
Withouth this change, user gets stacktrace when e.g. SPDK application is not running.
Before: ``` Traceback (most recent call last): File "scripts/rpc/client.py", line 53, in __init__ raise socket.error("Unix socket '%s' does not exist" % addr) OSError: Unix socket '/var/tmp/spdk.sock' does not exist
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "scripts/spdkcli.py", line 74, in <module> main() File "scripts/spdkcli.py", line 47, in main with rpc.client.JSONRPCClient(args.socket) as client: File "scripts/rpc/client.py", line 56, in __init__ "Error details: %s" % (addr, ex)) rpc.client.JSONRPCException: Error while connecting to /var/tmp/spdk.sock Error details: Unix socket '/var/tmp/spdk.sock' does not exist ```
After: ``` Error while connecting to /var/tmp/spdk.sock Error details: Unix socket '/var/tmp/spdk.sock' does not exist. SPDK not running? ```
Change-Id: I65862965b68acf3bd4709de598f04de49da27de2 Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/462020 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
Revision tags: v19.04.1, v19.04, v18.10.2, v19.01.1 |
|
#
5c6ca5b6 |
| 14-Feb-2019 |
Pawel Wodkowski <pawelx.wodkowski@intel.com> |
jsonrpc: add Python with statement support
The JSONRPCClient class now support the with statement. From now on the __del__() method is changed to close() and user need to call it manually at object
jsonrpc: add Python with statement support
The JSONRPCClient class now support the with statement. From now on the __del__() method is changed to close() and user need to call it manually at object disposal or use the 'with' Python statement.
Change-Id: I74afd93d411b9596ab8f9523c54a4a7523eec5e5 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/444686 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Pawel Kaminski <pawelx.kaminski@intel.com>
show more ...
|
#
6a35d0fd |
| 16-Feb-2019 |
Pawel Kaminski <pawelx.kaminski@intel.com> |
spdkcli: Skip refreshing node if spdkcli is run noninteractive
Change-Id: I38662ce05acbf02092b1f02c72800aaf8f448136 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://rev
spdkcli: Skip refreshing node if spdkcli is run noninteractive
Change-Id: I38662ce05acbf02092b1f02c72800aaf8f448136 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/445012 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
show more ...
|
#
53e25260 |
| 08-Feb-2019 |
Pawel Kaminski <pawelx.kaminski@intel.com> |
spdkcli: Exit with 1 when rpc throws JSONRPCException
Fixes #593
Change-Id: Ib9eebdc1c74b82e8d193708b57afea7fefa7aa98 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://
spdkcli: Exit with 1 when rpc throws JSONRPCException
Fixes #593
Change-Id: Ib9eebdc1c74b82e8d193708b57afea7fefa7aa98 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/443887 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
show more ...
|
#
0c93fc73 |
| 08-Feb-2019 |
James Bergsten <jamesx.bergsten@intel.com> |
scripts:Fix Python errors in checking scripts
Python3 (3.6.7) gives W605 errors in regular expressions, causing the SPDK style checks to fail on the Python scripts doing the style checking.
This fi
scripts:Fix Python errors in checking scripts
Python3 (3.6.7) gives W605 errors in regular expressions, causing the SPDK style checks to fail on the Python scripts doing the style checking.
This fix allows these Python scripts to run without errors.
This is a known issue - see https://github.com/PyCQA/pycodestyle/issues/814
Change-Id: I71cdff5d6c89e19b200c989f3d9da35bb4f7189d Signed-off-by: James Bergsten <jamesx.bergsten@intel.com> Reviewed-on: https://review.gerrithub.io/c/443955 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
Revision tags: v19.01 |
|
#
223810e9 |
| 28-Jan-2019 |
Pawel Kaminski <pawelx.kaminski@intel.com> |
spdkcli: Fix: catch exceptions for spdkcli commands.
Fixes: #582
Change-Id: Ief6f4a52f410ff3dc06c9c1551c2c6d464cac598 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://
spdkcli: Fix: catch exceptions for spdkcli commands.
Fixes: #582
Change-Id: Ief6f4a52f410ff3dc06c9c1551c2c6d464cac598 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/442323 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
show more ...
|
Revision tags: v18.10.1, v18.10 |
|
#
ad06d03a |
| 19-Sep-2018 |
Karol Latecki <karol.latecki@intel.com> |
scripts/spdkcli: override configshell init
Override configshell constructor to allow command paramaters to use whitespaces and quotes.
"This patch will be obsolete once https://github.com/open-iscs
scripts/spdkcli: override configshell init
Override configshell constructor to allow command paramaters to use whitespaces and quotes.
"This patch will be obsolete once https://github.com/open-iscsi/configshell-fb/issues/46 is fixed."
Change-Id: Ia5f883991b031901be7dadf61cbe7ebdcf5a9cb7 Signed-off-by: Karol Latecki <karol.latecki@intel.com> Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/426037 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
show more ...
|
#
b96f97cf |
| 11-Sep-2018 |
Pawel Wodkowski <pawelx.wodkowski@intel.com> |
scripts: use python3 in all scripts
This it to prepare for RPM package. Also lower number of dependencies needed by SPDK tools.
Update changelog to deprecate Python 2 and explicit interpeter invoki
scripts: use python3 in all scripts
This it to prepare for RPM package. Also lower number of dependencies needed by SPDK tools.
Update changelog to deprecate Python 2 and explicit interpeter invoking in scripts.
Change-Id: I2497cca721cbcbadc1c99c675f8b8b7f682d5efa Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/425233 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
Revision tags: v18.07.1, v18.07 |
|
#
bfae2c7e |
| 13-Jul-2018 |
Karol Latecki <karol.latecki@intel.com> |
spdkcli: add verbose mode
Use "-v" option to show request/response dumps for configuration commands (construct, delete, etc.; get_* calls won't be verbose as it produces too much output)
Change-Id:
spdkcli: add verbose mode
Use "-v" option to show request/response dumps for configuration commands (construct, delete, etc.; get_* calls won't be verbose as it produces too much output)
Change-Id: Ib034a38e07689477c78029db5e612ddd2553d0bd Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.gerrithub.io/419234 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
show more ...
|
#
b7322649 |
| 21-Jun-2018 |
John Meneghini <johnm@netapp.com> |
pkgdep: support pycodestyle in check_format.sh
- install py27-pycodestyle on Freebsd - conditionally use pycodestyle in check_format.sh - fix various E722 do not use bare except errors caught by
pkgdep: support pycodestyle in check_format.sh
- install py27-pycodestyle on Freebsd - conditionally use pycodestyle in check_format.sh - fix various E722 do not use bare except errors caught by pycodestyle - see: https://github.com/PyCQA/pycodestyle/issues/466
Change-Id: I64ecf3f204a456134d891d1339f3aa1db281965a Signed-off-by: John Meneghini <johnm@netapp.com> Signed-off-by: Ed Rodriguez <ed.rodriguez@netapp.com> Reviewed-on: https://review.gerrithub.io/416460 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
show more ...
|
Revision tags: v18.04.1, v18.04, v18.01.1 |
|
#
83795a16 |
| 23-Mar-2018 |
Karol Latecki <karol.latecki@intel.com> |
spdkcli: initial version with bdev management
Initial version for SPDKCli Possible basic management of: - Bdevs: malloc, nvme, aio, lvol create / delete operations. - Lvol stores: create / delete
spdkcli: initial version with bdev management
Initial version for SPDKCli Possible basic management of: - Bdevs: malloc, nvme, aio, lvol create / delete operations. - Lvol stores: create / delete operations.
Adding dependency to pkgdep.sh.
Change-Id: I1a03d7660dad0335e25734b8ffb90592a5b337c2 Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.gerrithub.io/405039 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
show more ...
|