Bug 1895883 - Host deactivation causes vdsm.error Removing VG mapping failed (HE setup with iscsi/FC HostedStorage)
Summary: Host deactivation causes vdsm.error Removing VG mapping failed (HE setup with...
Keywords:
Status: CLOSED DUPLICATE of bug 1895863
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.4.3.8
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Tal Nisan
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-09 10:48 UTC by Polina
Modified: 2020-11-09 12:08 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-11-09 12:08:31 UTC
oVirt Team: Virt
Embargoed:


Attachments (Terms of Use)
engine & vdsm logs (1.07 MB, application/x-tar)
2020-11-09 10:48 UTC, Polina
no flags Details

Description Polina 2020-11-09 10:48:52 UTC
Created attachment 1727732 [details]
engine & vdsm logs

Description of problem:
Every time (each HE setup with blocked HostedStorage (iscsi or FC), I sent host deactivation to any host in HE env I see in vdsm.log error [storage.LVM] Removing VG mapping failed: Could not remove mapping:

Version-Release number of selected component (if applicable):
ovirt-engine-4.4.3.8-0.1.el8ev.noarch
vdsm-4.40.35-1.el8ev.x86_64

How reproducible:100% on HE env with blocked HostedStorage (iscsi or FC)


Steps to Reproduce:

1. 
POST https://{{host}}/ovirt-engine/api/hosts/6c3b8522-8ea8-4e6e-a331-3bcd334db6df/deactivate
<action>
    <async>true</async>
    <grace_period>
        <expiry>10</expiry>
    </grace_period>
</action>

Actual results:
The host is deactivated after this and no errors in engine.log.
Though not sure that such error in vdsm doesn't cause subsequent problem
In the attached log:
2020-11-03 14:31:26,624+02 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-7) [ef370003-50ee-419e-a4e1-6cbb53e7ce76] EVENT_ID: USER_VDS_MAINTENANCE_WITHOUT_REASON(620), Host host_mixed_2 was switched to Maintenance mode by admin@internal-authz.

the error in vdsm.log (attached)
2020-11-03 14:33:46,695+0200 WARN  (monitor/ebdf925) [storage.LVM] All 2 tries have failed: cmd=['/sbin/lvm', 'vgchange', '--config', 'devices {  preferred_names=["^/dev/mapper/"]  ignore_suspended_devices=1  write_cache_state=0  disable_after_error_count=3  filter=["a|^/dev/mapper/3600a09803830447a4f244c4657595063$|^/dev/mapper/3600a09803830447a4f244c4657595064$|^/dev/mapper/3600a09803830447a4f244c4657595065$|^/dev/mapper/3600a09803830447a4f244c4657595066$|^/dev/mapper/3600a09803830447a4f244c4657595067$|^/dev/mapper/3600a09803830447a4f244c4657595068$|^/dev/mapper/3600a09803830447a4f244c4657595069$|^/dev/mapper/3600a09803830447a4f244c46575a6d6d$|", "r|.*|"]  hints="none"  obtain_device_list_from_udev=0 } global {  locking_type=1  prioritise_write_locks=1  wait_for_locks=1  use_lvmetad=0 } backup {  retain_min=50  retain_days=0 }', '--available', 'n', 'ebdf925a-19f7-4254-9458-c283872eded3'] rc=5 err=['  Logical volume ebdf925a-19f7-4254-9458-c283872eded3/9587b2a0-a11a-44bd-a1c3-4edd59cf357d in use.', '  Can\'t deactivate volume group "ebdf925a-19f7-4254-9458-c283872eded3" with 1 open logical volume(s)'] (lvm:538)
2020-11-03 14:33:46,696+0200 INFO  (monitor/ebdf925) [storage.LVM] Error deactivating VG ebdf925a-19f7-4254-9458-c283872eded3: rc=5 out=[] err=['  Logical volume ebdf925a-19f7-4254-9458-c283872eded3/9587b2a0-a11a-44bd-a1c3-4edd59cf357d in use.', '  Can\'t deactivate volume group "ebdf925a-19f7-4254-9458-c283872eded3" with 1 open logical volume(s)'] (lvm:1491)
2020-11-03 14:33:46,773+0200 ERROR (monitor/ebdf925) [storage.LVM] Removing VG mapping failed: Could not remove mapping: Command ['/usr/sbin/dmsetup', 'remove', 'ebdf925a--19f7--4254--9458--c283872eded3-9587b2a0--a11a--44bd--a1c3--4edd59cf357d'] failed with rc=1 out=b'' err=b'device-mapper: remove ioctl on ebdf925a--19f7--4254--9458--c283872eded3-9587b2a0--a11a--44bd--a1c3--4edd59cf357d  failed: Device or resource busy\nCommand failed.\n' (lvm:1167)


Expected results:


Additional info:

Comment 1 Polina 2020-11-09 12:08:31 UTC

*** This bug has been marked as a duplicate of bug 1895863 ***


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