Bug 1300177
| Summary: | Forbid using relative path or file name only as the destination of drive-mirror | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Yang Yang <yanyang> |
| Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
| Status: | CLOSED ERRATA | QA Contact: | Han Han <hhan> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | crobinso, dyuan, hhan, jdenemar, mzhan, pkrempa, rbalakri, xuzhang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-3.0.0-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 17:09:12 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: | |||
|
Description
Yang Yang
2016-01-20 07:22:42 UTC
I sent a patch upstream, converting a relative path to absolute in the virsh handling http://www.redhat.com/archives/libvir-list/2016-April/msg01342.html (In reply to Cole Robinson from comment #1) > I sent a patch upstream, converting a relative path to absolute in the virsh > handling > > http://www.redhat.com/archives/libvir-list/2016-April/msg01342.html That handling is incorrect. This needs to be fixed in the daemon. I'm picking this up since I'll probably fix it anyways while fixing other aspects of blockcopy. Fixed upstream:
commit 9e9305542eee6700358c6f3c449347cc191eb520
Author: Peter Krempa <pkrempa>
Date: Fri Dec 16 18:30:39 2016 +0100
qemu: block copy: Forbid block copy to relative paths
Similarly to 29bb066915 forbid paths used with blockjobs to be relative.
1. Start a transient VM: # virsh list --all --transient Id Name State ---------------------------------------------------- 3 RHEL running 2. Try to blockcopy with relative path: # virsh blockcopy RHEL sda xx --wait --verbose --pivot error: invalid argument: absolute path must be used as block copy target # virsh blockcopy RHEL sda ../xx --wait --verbose --pivot error: invalid argument: absolute path must be used as block copy target # virsh blockcopy RHEL sda ./xx --wait --verbose --pivot error: invalid argument: absolute path must be used as block copy target Bug fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1846 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1846 |