numam-spdk/scripts/rpc
Vitaliy Mysak 9b81498be8 rpc.py: check if port is None during client init
RPC client constructor accepts optional port,
  but does not check if it's None in case of
  remote connection.
This patch adds the check and new error message
  related to it.

Case where port is unexpectedly None
  can be reproduced by starting spdkcli
  when SPDK socket does not exist.

Change-Id: I46e0b99547204c6fdeac421e5de9d6991387e207
Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460974
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2019-07-22 02:24:11 +00:00
..
__init__.py rpc: rename RPC get_rpc_methods to rpc_get_methods 2019-05-27 12:52:53 +00:00
app.py rpc: Add thread_get_stats RPC method 2019-07-10 04:28:14 +00:00
bdev.py bdev/ftl: construct_ftl_bdev respects default ftl config 2019-07-01 14:46:26 +00:00
client.py rpc.py: check if port is None during client init 2019-07-22 02:24:11 +00:00
helpers.py rpc.py: add framework for detecting deprecated aliases 2019-05-09 04:37:08 +00:00
ioat.py copy/ioat: Add scan_ioat_copy_engine RPC 2018-06-14 03:54:42 +00:00
iscsi.py iscsi: Deprecate MinConnectionsPerCore 2019-05-06 17:10:48 +00:00
log.py log: use new framework for marking deprecated RPCs 2019-05-09 04:37:08 +00:00
lvol.py lvol: add option to change clear method for lvol store creation 2019-02-28 20:50:27 +00:00
nbd.py nbd: optional nbd_device in start_nbd_disk 2019-04-04 08:35:50 +00:00
net.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
notify.py rpc/notifications: add notification support to RPC client and SPDK host. 2019-04-09 23:01:52 +00:00
nvme.py scripts/rpc.py: add method "get_nvme_controllers" 2018-10-25 17:26:25 +00:00
nvmf.py nvmf/tcp: Add a feature to allow set the sock priority of the connection. 2019-07-19 06:30:19 +00:00
pmem.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
subsystem.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
trace.py lib/trace: add 3 RPC method for tpoint_group_mask 2018-12-14 21:29:12 +00:00
vhost.py bdev/virtio: Remove deprecated remove_virtio_scsi_bdev rpc 2019-01-28 22:18:53 +00:00