numam-spdk/scripts/rpc
Michal Berger 6c1a1a3dca scripts/rpc: Make sure address argument is properly interpreted
In case the addr argument was not an existing unix socket file the rpc
client would consider it to be an actual ip address. As a result
connect() would be called with improper set of arguments. This could
cause the rpc.py to block for undesired amount of time until connect()
finally decided to return (seen on some fedora33 builds).

This was affecting sh wrapper functions like waitforlisten() which
use rpc.py to determine if given app is ready to be talk to blocking
execution of the tests for way too long then intendent.

To avoid such a scenario determine the format of the address and use
routines proper for given address family.

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: Iaac701d72c772629fa7c6478ff4781b0c5d485d5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7777
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
2021-05-24 10:11:05 +00:00
..
__init__.py scripts/rpc: allow methods without params in load_config/load_subsystem_config RPC 2021-01-15 08:28:57 +00:00
app.py spdk_top: add rpc for scheduler and governor 2021-01-22 18:33:13 +00:00
bdev.py bdev/rbd: Revise bdev_rbd_create rpc function. 2021-05-19 08:08:39 +00:00
blobfs.py rpc/blobfs: add cache size setting rpc 2019-11-07 00:33:25 +00:00
client.py scripts/rpc: Make sure address argument is properly interpreted 2021-05-24 10:11:05 +00:00
cmd_parser.py rpc: add a command parser 2021-05-11 12:02:00 +00:00
env_dpdk.py env_dpdk/rpc: add rpc to get memory stats. 2019-12-13 11:05:57 +00:00
helpers.py rpc.py: add framework for detecting deprecated aliases 2019-05-09 04:37:08 +00:00
idxd.py scripts/rpc: addd RPC support to enable idxd 2020-04-23 15:48:32 +00:00
ioat.py ioat: remove whitelist/blacklist functionality 2020-12-03 09:41:07 +00:00
iscsi.py lib/iscsi: Add wait parameter to iscsi_create_portal_group RPC 2020-11-24 08:20:37 +00:00
log.py RPC: rename get_log_flags to log_get_flags 2019-09-24 16:42:41 +00:00
lvol.py RPC: rename rpc construct_lvol_store to bdev_lvol_create_lvstore 2019-08-30 16:40:44 +00:00
nbd.py rpc: Rename get_nbd_disks to nbd_get_disks 2019-09-19 20:56:35 +00:00
net.py rpc: Rename get_interfaces to net_get_interfaces 2019-09-21 23:30:37 +00:00
notify.py RPC: rename get_notifications to notify_get_notifications 2019-09-24 16:42:41 +00:00
nvme.py bdev/opal: Add rpc for init, revert and get info 2019-10-24 17:09:57 +00:00
nvmf.py nvmf: Allow configurable controller ID range 2021-05-12 09:18:48 +00:00
pmem.py rpc: Rename delete_pmem_pool to bdev_pmem_delete_pool 2019-09-05 07:04:17 +00:00
sock.py sock: Deprecate enable_zerocopy_send in sock_impl_set_options RPC 2021-04-27 08:13:32 +00:00
subsystem.py RPC: rename get_subsystem_config to framework_get_config 2019-10-01 13:57:36 +00:00
trace.py rpc: Rename get_tpoint_group_mask trace_get_tpoint_group_mask 2019-10-01 13:59:37 +00:00
vhost.py virtio-blk: add hotplug rpc 2021-04-16 19:21:13 +00:00
vmd.py event/subsystem/vmd: RPC support 2019-07-26 18:27:40 +00:00