Bug 981251
Summary: | Libvirt should stop starting the fs and netfs pool using inexistent/unreachable source device | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Hu Jianwei <jiahu> | |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.0 | CC: | acathrow, bili, cwei, dyuan, jtomko, lsu, mzhan | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | libvirt-1.1.1-1.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 983539 (view as bug list) | Environment: | ||
Last Closed: | 2014-06-13 09:32:52 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 983539 |
Description
Hu Jianwei
2013-07-04 10:11:50 UTC
Upstream patch proposed: https://www.redhat.com/archives/libvir-list/2013-July/msg00678.html Now fixed upstream: commit 13fde7ceab556804dc6cfb3e56938fb948ffe83d Author: Ján Tomko <jtomko> AuthorDate: 2013-07-11 12:36:59 +0200 Commit: Ján Tomko <jtomko> CommitDate: 2013-07-11 12:42:15 +0200 storage: return -1 when fs pool can't be mounted Don't reuse the return value of virStorageBackendFileSystemIsMounted. If it's 0, we'd return it even if the mount command failed. Also, don't report another error if it's -1, since one has already been reported. Introduced by 258e06c. https://bugzilla.redhat.com/show_bug.cgi?id=981251 git describe: v1.1.0-146-g13fde7c Test with libvirt-1.1.1-1.el7.x86_64 qemu-kvm-1.5.2-2.el7.x86_64 1.Prepare two pools # virsh pool-list --all Name State Autostart ----------------------------------------- default active yes fs active yes nfs active yes xml same as comment 0 2. #virsh pool-destroy fs #virsh pool-destroy nfs 3. hotunplug the sdb whose fs's source dev stop the nfs server on the nfs pool source host 4.Try to start those pools #virsh pool-start fs error: Failed to start pool fs error: internal error: Child process (/usr/bin/mount -t auto /dev/sdb /var/lib/libvirt/images/fs) unexpected exit status 32: mount: special device /dev/sdb does not exist # virsh pool-start nfs error: Failed to start pool nfs error: internal error: Child process (/usr/bin/mount 10.66.6.56:/test /var/lib/libvirt/images/nfs) unexpected exit status 32: mount.nfs: Connection timed o 5.Resume the environment , then start these pools again # virsh pool-start fs Pool fs started # virsh pool-start nfs Pool nfs started # virsh pool-list --all Name State Autostart ----------------------------------------- default active yes fs active yes nfs active yes So change the bug to VERIFIED This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |