Bug 1645229
Summary: | Export as ova fails in oVirt-engine | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | sangeetha <sangeetha.rathinavel> |
Component: | Backend.Core | Assignee: | Shmuel Melamud <smelamud> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nisim Simsolo <nsimsolo> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 4.2.7.1 | CC: | aefrat, ahadas, bugs, fdelorey, michal.skrivanek, nsimsolo, rbarry, smelamud |
Target Milestone: | ovirt-4.3.2 | Flags: | rule-engine:
ovirt-4.3+
|
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-03-26 07:20:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1684140 | ||
Bug Blocks: |
Description
sangeetha
2018-11-01 17:02:06 UTC
isn't it supposed to run as vdsm? I am exporting OVA through UI. After checking the code and added debugger in /usr/share/ovirt-engine/playbooks/roles/ovirt-ova-pack/files/ovirt_ova_pack.py. print ("Printing user %s" % os.getlogin()) fd = os.open(disk_path, os.O_RDONLY | os.O_DIRECT) It is is trying to read the disk as root user and it fails. I did set up the NFS storage permission as per this document https://www.ovirt.org/documentation/admin-guide/chap-Storage/ I am new to the oVirt product. I am just exploring the ova option. Please Let me know, If I miss anything. I think you're share is not writable to root (or rather squashed to nobody:nobody) We should actually - change the user running the ova role to "vdsm" instead of root - create a chroot environment so you cannot overwrite other files by mistake - probably define a vdc_option with a path on hypervisors and document it - e.g. ExportOvaPath=/mnt Re-targeting to 4.3.1 since it is missing a patch, an acked blocker flag, or both This bug seems to be already fixed in 4.3.2 RC2 release, can you please check status of this bug and update target milestone to 4.3.2 if already included? Verified: ovirt-engine-4.4.0-0.0.master.20190318180517.git576124b.el7 vdsm-4.40.0-96.gite291014.el7.x86_64 libvirt-client-4.5.0-10.el7_6.6.x86_64 qemu-kvm-ev-2.12.0-18.el7_6.3.1.x86_64 sanlock-3.6.0-1.el7.x86_64 Verification scenario: 1. Export VM as OVA to NFS share with root_squash option, for example: # cat /etc/exports /root_squash_NFS 1.1.1.1/255.0.0.0(rw,root_squash) 2. Verify VM exported as OVA successfully. Import exported OVA, verify import succeeds, run VM and verify VM is running properly. 3. Export VM as OVA to NFS share with no_root_squash option, for example: # cat /etc/exports /no_root_squash_NFS 1.1.1.1/255.0.0.0(rw,no_root_squash) 4. Verify VM exported as OVA successfully. Import exported OVA, verify import succeeds, run VM and verify VM is running properly. 5. Export VM as OVA to NFS share with no_root_squash option and a folder inside it with nfsnobody:nfsnobody ownership, for example: # cat /etc/exports /no_root_squash_NFS 1.1.1.1/255.0.0.0(rw,no_root_squash) # ls -l /mnt drwxr-xr-x. 9 nfsnobody nfsnobody 4.0K Aug 6 2017 nfs_folder 6. verify VM exported as OVA successfully. Import exported OVA, verify import succeeds, run VM and verify VM is running properly. This bugzilla is included in oVirt 4.3.2 release, published on March 19th 2019. Since the problem described in this bug report should be resolved in oVirt 4.3.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |