[RHV] Sanlock resouce read failure when using `rhv-image-discrepancies`
Issue
-
When running
rhv-image-discrepancies
from the manager, the script fails on an image where the script does not find a lease:Traceback (most recent call last): File "/usr/bin/vdsm-tool", line 220, in main return tool_command[cmd]["command"](*args) File "/usr/lib/python2.7/site-packages/vdsm/tool/dump_volume_chains.py", line 92, in dump_chains volumes_info = _get_volumes_info(cli, parsed_args.sd_uuid) File "/usr/lib/python2.7/site-packages/vdsm/tool/dump_volume_chains.py", line 194, in _get_volumes_info storagedomainID=sd_uuid, imageID=img_uuid) File "/usr/lib/python2.7/site-packages/vdsm/client.py", line 303, in _call method, kwargs, resp.error.code, str(resp.error)) ServerError: Command Volume.getInfo with args {'imageID': u'd317ebf6-1de4-4720-8d80-a98fca4689a1', 'storagepoolID': u'4aea60fa-b913-4766-9572-f62b01dda06c', 'volumeID': u'c3fbcb6f-8041-4d5e-aeca-51040c9539ea', 'storagedomainID': '1f3dbc90-d719-409f-81be-a1b1e7c695ce'} failed: (code=100, message=(-223, 'Sanlock resource read failure', 'Lease does not exist on storage')) Command 'ssh -i /etc/pki/ovirt-engine/keys/engine_id_rsa 10.0.0.1 vdsm-tool dump-volume-chains 1f3dbc90-d719-409f-81be-a1b1e7c695ce -o json' returned non-zero exit status 1
Environment
Red Hat Virtualization 4.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.