We could do a better job of displaying the error conditions, when rpc.py is unable to
connect because no SPDK application is running.
https://review.spdk.io/gerrit/c/spdk/spdk/+/6754 should make it better.
-Jim
On 3/3/21, 1:47 AM, "Zawadzki, Tomasz" <tomasz.zawadzki(a)intel.com>
wrote:
Hi,
JSON RPC is an interface to configure a running SPDK application.
Please make sure one (ex. ./build/bin/spdk_tgt) is started before issuing any RPC.
Thanks,
Tomek
-----Original Message-----
From: omchavan6699(a)gmail.com <omchavan6699(a)gmail.com>
Sent: Wednesday, March 3, 2021 9:24 AM
To: spdk(a)lists.01.org
Subject: [SPDK] Installation of Spdk and running bdev command
I installed Spdk
git clone
https://github.com/spdk/spdk
cd spdk
git submodule update --init
sudo scripts/pkgdep.sh --all
./configure
make
/test/unit/unittest.sh
But not able to run
RPC.py bdev_aio_create /dev/sda aio
It is not running
scripts/rpc.py bdev_aio_create /dev/sda aio ev/sda Traceback (most recent
call last): File "/root/spdk/scripts/rpc/client.py", line 71, in connect
device self.sock.connect ( (addr, port)) socket.gaierror: [Errno -2] Name or
service not known
mp/fil, During handling of the above exception, another exception occurred:
e deviceTraceback (most recent call last): File "scripts/rpc.py", line 2693,
in
<module>
odev_aid conn_retries=args.conn_retries) File
"7root/spdk/scripts/rpc/client.py", line 47, in init
ioe
self. connect (addr, port)
File "/root/spdk/scripts/rpc/client.py", line 76, in _connect. "Error
details:
%s" (addr, ex))
rpc.client..JSONRPCException: Error while connecting to /var/tmp/spdk.sock
ev Error details: [Errno -2] Name or service not known [root@d1560g9-12-
vm20 spdk] #
ased on Open CAS Framework - a high performance block storage cachina
meta-librar
3/
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org