On Tue, Aug 21, 2018 at 4:03 PM Richard W.M. Jones <rjones@redhat.com> wrote:
On Tue, Aug 21, 2018 at 03:55:50PM +0300, Nir Soffer wrote:
> On Tue, Aug 21, 2018 at 2:49 PM Richard W.M. Jones <rjones@redhat.com>
> wrote:
> > It seems more likely that whatever version of nbdkit being used does
> > not include:
> >
> >
> > https://github.com/libguestfs/nbdkit/commit/72c0d64a47db642cafa89884f2ee554bd0b8e822
> >
> > This has now been backported to the 1.2 & 1.4 branches as well.  Do
> > you know what version (of nbdkit) they are testing with?
> >
>
> Tested with:
> $ rpm -qa | grep nbdkit
> nbdkit-plugin-python3-1.4.2-1.fc28.x86_64
> nbdkit-1.4.2-1.fc28.x86_64
> nbdkit-plugin-python-common-1.4.2-1.fc28.x86_64

I think if you upgrade to 1.4.3 (which is still in testing in Fedora)
you should get full tracebacks.

https://bodhi.fedoraproject.org/updates/FEDORA-2018-92ee422873
(see "python" here: https://github.com/libguestfs/nbdkit/commits/stable-1.4 )

After upgrading from update-testing repo:

$ rpm -qa | grep nbdkit
nbdkit-plugin-python3-1.4.3-1.fc28.x86_64
nbdkit-plugin-python-common-1.4.3-1.fc28.x86_64
nbdkit-1.4.3-1.fc28.x86_64

Here is output when simulating expired ticket in verbose mode.

unexpected response from imageio server:
could not write sector offset 1897857024 size 65536
403: Forbidden
b'{"explanation": "Access was denied to this resource.", "code": 403, "detail": "Ticket u\'acdad591-f29e-4d85-bf41-046e250aa015\' expired", "title": "Forbidden"}'
nbdkit: python[1]: error: /home/nsoffer/src/libguestfs/tmp/v2v.ayEM8r/rhv-upload-plugin.py: pwrite: error: ['Traceback (most recent call last):\n', '  File "/home/nsoffer/src/libguestfs/tmp/v2v.ayEM8r/rhv-upload-plugin.py", line 373, in pwrite\n    (offset, count))\n', '  File "/home/nsoffer/src/libguestfs/tmp/v2v.ayEM8r/rhv-upload-plugin.py", line 321, in request_failed\n    raise RuntimeError("%s: %d %s: %r" % (msg, status, reason, body[:200]))\n', 'RuntimeError: could not write sector offset 1897857024 size 65536: 403 Forbidden: b\'{"explanation": "Access was denied to this resource.", "code": 403, "detail": "Ticket u\\\'acdad591-f29e-4d85-bf41-046e250aa015\\\' expired", "title": "Forbidden"}\'\n']
nbdkit: python[1]: debug: sending error reply: Input/output error
qemu-img: error while writing sector 3706752: Input/output error

Nir