OLVM: ovirt-upload fails with the message "401 Unauthorized: 'Not authorized (expired ticket)'"
(Doc ID 2770520.1)
Last updated on JANUARY 19, 2022
Applies to:Linux OS - Version Oracle Linux 7.9 with Unbreakable Enterprise Kernel [5.4.17] and later
This problem can occur while running "virt-v2v -o ovirt-upload".
e.g: during migrations from OVM to OLVM as described in How to Migrate Oracle VM to Oracle Linux KVM
nbdkit: python: debug: pwrite count=4096 offset=24765788160 fua=0
nbdkit: python: debug: pwrite count=4096 offset=24765796352 fua=0
nbdkit: python: debug: pwrite count=4096 offset=24765804544 fua=0
unexpected response from imageio server:
could not write sector offset 24765804544 size 4096
Not authorized (expired ticket)
nbdkit: python: error: /var/tmp/v2v.Nt06BL/rhv-upload-plugin.py: pwrite:
error: ['Traceback (most recent call last):\n', ' File "/var/tmp/v2v.Nt06BL/rhv-upload-plugin.py", line 407, in pwrite\n (offset, count))\n', ' File "/var/tmp/v2v.Nt06BL/rhv-upload-plugin.py", line 355, in request_failed\n raise RuntimeError("%s: %d %s: %r" % (msg, status, reason, body[:200]))\n', "RuntimeError: could not write sector offset 24765804544 size 4096:
'Not authorized (expired ticket)'\n"]
nbdkit: python: debug: sending error reply: Input/output error
qemu-img: error while writing sector 48369664: Input/output error
This can also occur during a large image upload in Admin Portal.
The upload will be paused after 10 Hours and the following message is observed in the engine log file:
2021-04-20 03:37:06,679+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-497) [b6d8e6ee-0c3a-4645-93e6-8409a24c0804]
EVENT_ID: UPLOAD_IMAGE_NETWORK_ERROR(1,062), Unable to upload image to disk 2f20fbbd-a379-4780-8ff4-d764da90b3fa due to a network error.
Ensure that ovirt-imageio-proxy service is installed and configured and that ovirt-engine's CA certificate is registered as a trusted CA in the browser.
The certificate can be fetched from https://<FQDN>/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document