My Oracle Support Banner

OLVM: Not Able to Attach ISO File from a NFS Storage Domain to A VM with "Permission denied" Error (Doc ID 2756335.1)

Last updated on OCTOBER 01, 2021

Applies to:

Linux OS - Version Oracle Linux 7.9 with Unbreakable Enterprise Kernel [5.4.17] and later
x86_64

Symptoms

When trying to attach an ISO file on NFS storage domain to a VM, you get below error, 

"Error while executing action Change CD: Drive image file could not be found"

In VDSM log file, below error message can be observed, 

 

2021-02-26 14:44:07,831-0600 INFO  (jsonrpc/7) [api.virt] START changeCD(driveSpec={u'path': u'/rhev/data-center/mnt/tpc4avnfs01.stsad.sts.dir.texas.gov:_nfsshare_iso/77877112-030f-4711-b062-9aca93d56fcd/images/11111111-1111-1111-1111-111111111111/ovirt-tools-setup.iso', u'iface': u'sata', u'index': u'2'}) from=::ffff:168.44.245.160,53242, flow_id=bfbd07f2-dc61-40ee-8fbb-242c69bb31fe, vmId=408c7428-53f1-4f65-b8c4-3036567916cc (api:48)
2021-02-26 14:44:07,832-0600 INFO  (jsonrpc/7) [vds] prepared volume path: /rhev/data-center/mnt/tpc4avnfs01.stsad.sts.dir.texas.gov:_nfsshare_iso/77877112-030f-4711-b062-9aca93d56fcd/images/11111111-1111-1111-1111-111111111111/ovirt-tools-setup.iso (clientIF:510)
2021-02-26 14:44:07,832-0600 INFO  (jsonrpc/7) [virt.vm] (vmId='408c7428-53f1-4f65-b8c4-3036567916cc') changeBlockDev: using disk XML: <?xml version='1.0' encoding='utf-8'?>
<disk device="cdrom" type="file"><source file="/rhev/data-center/mnt/tpc4avnfs01.stsad.sts.dir.texas.gov:_nfsshare_iso/77877112-030f-4711-b062-9aca93d56fcd/images/11111111-1111-1111-1111-111111111111/ovirt-tools-setup.iso"
/><target bus="sata" dev="sdc" /></disk> (vm:4964)
2021-02-26 14:44:07,858-0600 ERROR (jsonrpc/7) [virt.vm] (vmId='408c7428-53f1-4f65-b8c4-3036567916cc') forceful updateDeviceFlags failed (vm:4981)
Traceback (most recent call last):
 File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 4978, in _changeBlockDev
   diskelem_xml, libvirt.VIR_DOMAIN_DEVICE_MODIFY_FORCE
 File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", line 100, in f
   ret = attr(*args, **kwargs)
 File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py", line 131, in wrapper
   ret = f(*args, **kwargs)
 File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line 94, in wrapper
   return func(inst, *args, **kwargs)
 File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2774, in updateDeviceFlags
   if ret == -1: raise libvirtError ('virDomainUpdateDeviceFlags() failed', dom=self)
libvirtError: internal error: child reported (status=125): unable to open /rhev/data-center/mnt/tpc4avnfs01.stsad.sts.dir.texas.gov:_nfsshare_iso/77877112-030f-4711-b062-9aca93d56fcd/images/11111111-1111-1111-1111-111111111111/ovirt-tools-setup.iso: Permission denied
2021-02-26 14:44:07,858-0600 ERROR (jsonrpc/7) [api] FINISH changeCD error=Failed to change disk image (api:131)
Traceback (most recent call last):
 File "/usr/lib/python2.7/site-packages/vdsm/common/api.py", line 124, in method
   ret = func(*args, **kwargs)
 File "/usr/lib/python2.7/site-packages/vdsm/API.py", line 151, in changeCD
   return self.vm.changeCD(driveSpec)
 File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 4942, in changeCD
   force=bool(drivespec))
 File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 4983, in _changeBlockDev
   raise exception.ChangeDiskFailed()
ChangeDiskFailed: Failed to change disk image
2021-02-26 14:44:07,858-0600 INFO  (jsonrpc/7) [api.virt] FINISH changeCD return={'status': {'message': 'Failed to change disk image', 'code': 41}} from=::ffff:168.44.245.160,53242, flow_id=bfbd07f2-dc61-40ee-8fbb-242c69bb31fe, vmId=408c7428-53f1-4f65-b8c4-3036567916cc (api:54)

Changes

Attach ISO file on NFS SD to a VM. 

Cause

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
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.