Bug 823850
Summary: | find-storage-pool-sources/ find-storage-pool-sources-as can't return XML describing of netfs/iscsi pool | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | zhpeng |
Component: | libvirt | Assignee: | Gunannan Ren <gren> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | acathrow, cwei, dallan, dyasny, dyuan, mzhan, rwu, veillard, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.0-0rc1.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 07:15:14 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
zhpeng
2012-05-22 10:10:35 UTC
The --srcSpec should be optional, the code doesn't check the value of it before passing it, so it reports a xml parsing error:(storage_source_specification):1: Document is empty (null). patch sent to upstream https://www.redhat.com/archives/libvir-list/2012-July/msg00659.html commit 4057048891dc853da7793e7978e8c9c38a13934a Author: Guannan Ren <gren> Date: Tue Jul 31 16:56:41 2012 +0800 storage: netfs and iscsi need option srcSpec for resource discovery The option 'srcSpec' to virsh command find-storage-pool-sources is optional for logical type of storage pool, but mandatory for netfs and iscsi type. When missing the option for netfs and iscsi, libvirt reports XML parsing error due to null string option srcSpec. can reproduce this with libvirt-0.10.0-0rc0.el6 verify with libvirt-0.10.0-0rc1.el6 step: 1: prepare netfs & iscsi pool #virsh pool-list --all Name State Autostart ----------------------------------------- A active no ----iscsi default active no mpath inactive no mylvm active yes ----logical nfs active yes ----netfs #virsh find-storage-pool-sources iscsi error: Failed to find any iscsi pool sources error: invalid argument: hostname and device path must be specified for iscsi sources #virsh find-storage-pool-sources iscsi iscsi.xml <sources> <source> <host name='10.66.90.100'/> <device path='iqn.2001-05.com.equallogic:0-8a0906-12a1f7d03-0daf49b25a84ee02-s3-kyla-131842'/> </source> <source> <host name='10.66.90.100'/> <device path='iqn.2001-05.com.equallogic:0-8a0906-9951f7d03-34cf49b25f04f94b-libvirt-2-150313'/> </source> <source> <host name='10.66.90.100'/> <device path='iqn.2001-05.com.equallogic:0-8a0906-6eb1f7d03-30cf49b25f24f94d-libvirt-1-150313'/> </source> </sources> #virsh find-storage-pool-sources netfs error: Failed to find any netfs pool sources error: invalid argument: hostname must be specified for netfs sources #virsh find-storage-pool-sources netfs nfs.xml <sources> <source> <host name='10.66.6.166'/> <dir path='/common'/> <format type='nfs'/> </source> </sources> 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 |