Spdk/scripts
Tomasz Zawadzki c5c7de44f3 scripts/rpc: allow methods without params in load_config/load_subsystem_config RPC
JSON-RPC allows for methods that do not contain any params.
Turns out that so far this scenario has not occured for load_config or load_sybsystem_config
RPC, which processes JSON config file saved from previous app run.

Next patch writes out bdev_wait_for_examine to bdev subsystem
configuration. As that methods does not contain any params following
error was seen:
# /home/vagrant/spdk_repo/spdk/scripts/rpc.py load_config
Traceback (most recent call last):
  File "/home/vagrant/spdk_repo/spdk/scripts/rpc.py", line 2671, in <module>
    call_rpc_func(args)
  File "/home/vagrant/spdk_repo/spdk/scripts/rpc.py", line 2601, in call_rpc_func
    args.func(args)
  File "/home/vagrant/spdk_repo/spdk/scripts/rpc.py", line 100, in load_config
    include_aliases=args.include_aliases)
  File "/home/vagrant/spdk_repo/spdk/scripts/rpc/__init__.py", line 143, in load_config
    client.call(elem['method'], elem['params'])
KeyError: 'params'

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I4a56a9d0caa4b752fb9c1fad4ae581aad8a4c2c1
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5860
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: <dongx.yi@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2021-01-15 08:28:57 +00:00
..
bash-completion event: replace master_core with main_core in spdk_app_opts 2020-12-03 09:41:07 +00:00
ceph check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
perf scripts/nvmf: Add scheduler_setting option in NVMe-oF performance scripts 2021-01-05 09:38:00 +00:00
pkgdep pgkdep/freebsd: Use py37-pycodestyle 2021-01-13 10:07:31 +00:00
rpc scripts/rpc: allow methods without params in load_config/load_subsystem_config RPC 2021-01-15 08:28:57 +00:00
spdkcli nvmf: remove usage of "whitelist" 2020-12-03 09:41:07 +00:00
vagrant scripts/vagrant: DRY when handling distro parameter 2020-12-11 10:59:32 +00:00
check_format.sh scripts/check_format: match exact string when moving symbols 2020-10-05 08:23:58 +00:00
common.sh scripts: replace PCI_WHITELIST with PCI_ALLOWED 2020-12-03 09:41:07 +00:00
config_converter.py vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00
core-collector.sh scripts: Use core dump collector 2021-01-06 00:01:05 +00:00
detect_cc.sh check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
dpdk_mem_info.py scripts: add a parser for the dpdk memory stats. 2020-01-24 05:46:43 +00:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py scripts/fio.py: add argparse for command line parameters 2019-06-03 04:34:10 +00:00
gdb_macros.py scripts: Use range instead of xrange 2019-02-13 22:54:15 +00:00
gen_ftl.sh check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
gen_nvme.sh script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
genconfig.py genconfig.py: allow numbers in config option names 2020-02-20 14:40:19 +00:00
histogram.py histograms: add script for parsing histogram data 2019-01-24 14:14:32 +00:00
iostat.py script: add iostat.py to check bdev iostat 2020-01-22 13:51:41 +00:00
pkgdep.sh scripts/pkgdep: Move distro independent parts to a common place 2020-08-10 11:28:20 +00:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
qat_setup.sh scripts/qat_setup: Fix path to igb_uio driver 2020-12-14 14:25:07 +00:00
rpc_http_proxy.py scripts: Add SSL certificate option in rpc_http_proxy 2020-05-05 08:04:00 +00:00
rpc.py lib/bdev: add spdk_bdev_wait_for_examine() 2021-01-15 08:28:57 +00:00
rxe_cfg_small.sh rxe_cfg_small: Align the way how devices are added|removed 2020-08-27 08:36:17 +00:00
setup.sh scripts/setup: [VFIO] Load vfio_iommu_type1 2020-12-04 09:51:26 +00:00
spdkcli.py scripts/spdkcli: Stay on command input. 2020-07-08 07:55:15 +00:00
sync_dev_uevents.sh scripts: Add tool for keeping uevents in sync 2020-09-07 09:27:42 +00:00