[Bug 1264955] [NEW] libvirt: find-storage-pool-sources work unexpected
Royce Lv
lvroyce at linux.vnet.ibm.com
Mon Dec 30 09:14:03 UTC 2013
Public bug reported:
1. how to reproduce:
virsh find-storage-pool-sources-as netfs localhost
2. frequency:
100%
3. expected result:
list export paths of localhost
4. Actul result:
virsh # find-storage-pool-sources-as netfs localhost
error: Failed to find any netfs pool sources
error: Cannot find '' in path: No such file or directory
5. Source code trace:
In src/storage/storage_ backend_fs.c:
if (source->nhost != 1) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("Expected exactly 1 host for the storage pool"));
goto cleanup;
}
state.host = source->hosts[0].name;
cmd = virCommandNewArgList(SHOWMOUNT,
"--no-headers",
"--exports",
source->hosts[0].name,
NULL);
6. diagnose suggestion:
It may because the build machine does not has a nfs-common installed, so SHOWMOUNT during configure, is configured as empty.
So when running find-source cmd, SHOWMOUNT cannot be found so report error.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: libvirt-bin 1.0.2-0ubuntu11.13.04.4
ProcVersionSignature: Ubuntu 3.8.0-32.47-generic 3.8.13.10
Uname: Linux 3.8.0-32-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.5
Architecture: amd64
Date: Mon Dec 30 17:05:07 2013
InstallationDate: Installed on 2013-10-06 (84 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: libvirt (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug raring
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/1264955
Title:
libvirt: find-storage-pool-sources work unexpected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1264955/+subscriptions
More information about the Ubuntu-server-bugs
mailing list