Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1976035

Summary: qemu-img convert failed with "error while writing sector 0: Permission denied" when writing to Windows NFSServer
Product: Red Hat Enterprise Linux 9 Reporter: Meiyan Zheng <mzheng>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
qemu-kvm sub component: Storage QA Contact: Tingting Mao <timao>
Status: CLOSED CANTFIX Docs Contact:
Severity: low    
Priority: low CC: coli, jferlan, jinzhao, juzhang, kkiwi, kwolf, ofamera, timao, virt-maint, xuwei
Version: unspecifiedKeywords: Triaged
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1985249 (view as bug list) Environment:
Last Closed: 2022-01-19 14:02:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1985249    

Description Meiyan Zheng 2021-06-25 02:44:32 UTC
Description of problem:

qemu-img convert will be failed with "qemu-img: error while writing sector 0: Permission denied" when writing to Windows NFSServer. 


Version-Release number of selected component (if applicable):
qemu-img-4.2.0-48.module+el8.4.0+10368+630e803b.x86_64


How reproducible:

Steps to Reproduce:
1. Mount directory exported by NFSServer on Windows Server 2016 Standard
# mount -o rw,sync,vers=3 NFSServer_IP_ADDR:/TEST /mnt/

2.
# qemu-img convert -O raw -f qcow2 /root/cirros-0.5.2-x86_64-disk.img /mnt/test8.img
qemu-img: error while writing sector 0: Permission denied



Actual results:
qemu-img failed with "qemu-img: error while writing sector 0: Permission denied"

Expected results:
qemu-img should work fine without the error


Additional info:
When using RHEL7.9 client, qemu-img convert will completed without error 

  # mount -o rw,sync,vers=3 NFSServer_IP_ADDR:/TEST /mnt/
  # qemu-img convert -O raw -f qcow2 /root/cirros-0.5.2-x86_64-disk.img /mnt/test7.img


When mount with nolock on RHEL8.4 client, qemu-img convert will completed without error 

  # mount -o rw,sync,vers=3,nolock NFSServer_IP_ADDR:/TEST /mnt/
  # qemu-img convert -O raw -f qcow2 /root/cirros-0.5.2-x86_64-disk.img /mnt/test8.img

Comment 33 Klaus Heinrich Kiwi 2021-08-10 18:27:21 UTC
*** Bug 1985249 has been marked as a duplicate of this bug. ***

Comment 35 Klaus Heinrich Kiwi 2021-08-24 17:48:19 UTC
With the customer-facing issue worked around, I'll move this to the backlog at low priority.

Comment 36 John Ferlan 2021-09-17 14:02:31 UTC
Bulk update: Move RHEL8 bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release.

Comment 38 Klaus Heinrich Kiwi 2022-01-19 14:02:29 UTC
As we discussed this on a recent meeting, the issue is really on the NFS server, and the KB article (https://access.redhat.com/solutions/6231411) is accurate in working around it.