<div dir="ltr"><div>When trying to connect to nbdkit with imageio nbd client, I get this error:</div><div><br></div><div>$ rm -f /tmp/nbd.sock && nbdkit file file=/var/tmp/fedora-27.img -e export -U /tmp/nbd.sock<br></div><div><br></div><div><div><div>$ python -c "import logging; logging.basicConfig(level=logging.DEBUG); from ovirt_imageio_common import nbd; c = nbd.Client('/tmp/nbd.sock', 'export')"</div><div>INFO:nbd:Connecting to '/tmp/nbd.sock' 'export'</div><div>DEBUG:nbd:Received server flags: 3</div><div>DEBUG:nbd:Sending client flags: 1:</div><div>DEBUG:nbd:Sending option: 'IHAVEOPT\x00\x00\x00\x07\x00\x00\x00\x0c' data: bytearray(b'\x00\x00\x00\x06export\x00\x00')</div><div>DEBUG:nbd:Received reply [magic=3e889045565a9 option=7 type=80000001 len=0]</div><div>Traceback (most recent call last):</div><div>  File "<string>", line 1, in <module></div><div>  File "ovirt_imageio_common/nbd.py", line 126, in __init__</div><div>    self._newstyle_handshake(export_name)</div><div>  File "ovirt_imageio_common/nbd.py", line 181, in _newstyle_handshake</div><div>    self._receive_go_reply()</div><div>  File "ovirt_imageio_common/nbd.py", line 206, in _receive_go_reply</div><div>    .format(ERROR_REPLY[reply], message))</div><div>ovirt_imageio_common.nbd.Error: The option sent by the client is unknown by this server implementation [message=])</div></div></div><div><br></div><div>According to the NBD protocol:<div><br></div><div>    For backwards compatibility, clients SHOULD be prepared to also handle</div><div>    NBD_REP_ERR_UNSUP by falling back to using NBD_OPT_EXPORT_NAME.<br></div><div><br></div></div><div>Should I fall back to sending NBD_OPT_EXPORT_NAME, or nbkit needs</div><div>to implement NBD_OPT_GO?</div><div><br></div><div>The client code is here:</div><div><a href="https://gerrit.ovirt.org/c/93384/">https://gerrit.ovirt.org/c/93384/</a><br></div><div><br></div><div>Nir</div></div>