Bug 1618961 - LVM pool unused by VMs can't be stopped
Summary: LVM pool unused by VMs can't be stopped
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-18 21:37 UTC by ricky.tigg
Modified: 2019-06-16 15:45 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-06-16 15:45:53 UTC
Embargoed:


Attachments (Terms of Use)
virt-manager – LVM pool (47.50 KB, image/png)
2018-08-18 21:37 UTC, ricky.tigg
no flags Details

Description ricky.tigg 2018-08-18 21:37:20 UTC
Created attachment 1476820 [details]
virt-manager – LVM pool

Description of problem: LVM pool unused by VMs can't be stopped.
Version-Release number of component: virt-manager-1.5.1-1.fc28

Steps to Reproduce:
1. Unselected 'On boot' at Autostart. No VMs attached to pool;
2. Reboot the system;
3. Attempt to stop LVM pool (attachment).

Actual results: steps 2. – setting in steps 1. does not operate (LVM pool persists to run).
step 3. – error message:

'Error stopping pool 'LVM': internal error: Child process (/usr/sbin/vgchange -aln fedora) unexpected exit status 5:   Logical volume fedora/root contains a filesystem in use.
  Can't deactivate volume group "fedora" with 3 open logical volume(s)

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/storagepool.py", line 175, in stop
    self._backend.destroy()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3224, in destroy
    if ret == -1: raise libvirtError ('virStoragePoolDestroy() failed', pool=self)
libvirtError: internal error: Child process (/usr/sbin/vgchange -aln fedora) unexpected exit status 5:   Logical volume fedora/root contains a filesystem in use.
  Can't deactivate volume group "fedora" with 3 open logical volume(s)'

Expected results: volume group to be stoppable.
Additional info: No virtual machines are running on qemu:///system.

Comment 1 Cole Robinson 2019-06-16 15:45:53 UTC
That usually means your LVM volumes are mounted on the host somewhere independent of any VMs. All libvirt is running here is '/usr/sbin/vgchange -aln fedora'. If that doesn't work there isn't much libvirt/virt-manager can do


Note You need to log in before you can comment on or make changes to this bug.