Bug 817219
Summary: | Don't allow to define multiple pools with the same target | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Alex Jia <ajia> |
Component: | libvirt | Assignee: | Osier Yang <jyang> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.3 | CC: | acathrow, dallan, dyasny, dyuan, jyang, mzhan, rwu, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.13-3.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:12:27 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
Alex Jia
2012-04-28 05:49:45 UTC
(In reply to comment #0) > > Additional info: > In addition, I can successfully define a domain with the same source file now, > it probably is a common issues. I'm considering whether we need also to use sanlock to protect the underlying storage just like avoiding 2 domain concurrently access the same source file. However, it seems pool's case is different with domain, libvirt give a judgement for defining the same target pool, indeed, we can see a expected error message "Storage source conflict with pool: 'xxx'", however, if we break this process then insert to define another a pool with different target, libvirt allow to define the same target pool again. Patch posted to upstream: https://www.redhat.com/archives/libvir-list/2012-April/msg01491.html BTW. The bug title should be changed, it sounds like a feature request. (In reply to comment #2) > > BTW. The bug title should be changed, it sounds like a feature request. Yeah, I have changed bug title. thanks. commit 980f12be7221b07e569fed24b372ea00c52d9511 Author: Osier Yang <jyang> Date: Sat Apr 28 16:18:44 2012 +0800 storage: Break out the loop if duplicate pool is found It doesn't break out the "for" loop even if duplicate pool is found, and thus the "matchpool" could be overriden as NULL again if there is different pool afterwards. To address the problem in libvirt-user list: https://www.redhat.com/archives/libvirt-users/2012-April/msg00150.html Commit pushed in upstream. can reproduce this with libvirt-0.9.10-16.el6.x86_64 verify with:libvirt-0.9.13-3.el6.x86_64 step: 1:prepare a.xml b.xml c.xml as bug description 2: #virsh pool-define a.xml Pool A defined from a.xml # virsh pool-define b.xml error: Failed to define pool from b.xml error: operation failed: Storage source conflict with pool: 'A' # virsh pool-define c.xml Pool C defined from c.xml # virsh pool-define b.xml error: Failed to define pool from b.xml error: operation failed: Storage source conflict with pool: 'A' the pool with the same target can't define.verification passed. 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. http://rhn.redhat.com/errata/RHSA-2013-0276.html |