
yes, it should indeed defer to DetachManagedBlockStorageVolumeVDSCommand which is what does the unmapping, do you have an earlier log that shows the XML (for example, when it was attached)? On Mon, Aug 23, 2021 at 10:59 AM <ssarang520@gmail.com> wrote:
There were no error logs in vdsm and supervdsm.
And I found that the [org.ovirt.engine.core.bll.storage.disk.managedblock.DisconnectManagedBlockStorageDeviceCommand] and [org.ovirt.engine.core.vdsbroker.vdsbroker.DetachManagedBlockStorageVolumeVDSCommand] functions are being called when the disk is detached from ovirt vm.
However, in the log I gave first, there is no part where the correspoding functions are called, isn't it a bug?
Here is the engine log where detaching the disk:
2021-08-23 10:29:43,972+09 INFO [org.ovirt.engine.core.bll.storage.disk.HotUnPlugDiskFromVmCommand] (default task-176) [2538ba78-6916-431c-b3bc-b98b26515842] Lock Acquired to object 'EngineLock:{exclusiveLocks='[f17702e4-ba97-4f95-a6d4-b89de003bd26=DISK]', sharedLocks='[59a7461c-72fe-4e01-86a7-c70243f31596=VM]'}' 2021-08-23 10:29:44,054+09 INFO [org.ovirt.engine.core.bll.storage.disk.HotUnPlugDiskFromVmCommand] (EE-ManagedThreadFactory-engine-Thread-149928) [2538ba78-6916-431c-b3bc-b98b26515842] Running command: HotUnPlugDiskFromVmCommand internal: false. Entities affected : ID: 59a7461c-72fe-4e01-86a7-c70243f31596 Type: VMAction group CONFIGURE_VM_STORAGE with role type USER 2021-08-23 10:29:44,076+09 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-149928) [2538ba78-6916-431c-b3bc-b98b26515842] START, HotUnPlugDiskVDSCommand(HostName = host, HotPlugDiskVDSParameters:{hostId='29dc5d53-7ec5-4a38-aaf1-c6eaf32b0094', vmId='59a7461c-72fe-4e01-86a7-c70243f31596', diskId='f17702e4-ba97-4f95-a6d4-b89de003bd26'}), log id: 1c39f09a 2021-08-23 10:29:44,078+09 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-149928) [2538ba78-6916-431c-b3bc-b98b26515842] Disk hot-unplug: <?xml version="1.0" encoding="UTF-8"?><hotunplug> <devices> <disk> <alias name="ua-f17702e4-ba97-4f95-a6d4-b89de003bd26"/> </disk> </devices> </hotunplug>
2021-08-23 10:29:44,218+09 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotUnPlugDiskVDSCommand] (EE-ManagedThreadFactory-engine-Thread-149928) [2538ba78-6916-431c-b3bc-b98b26515842] FINISH, HotUnPlugDiskVDSCommand, return: , log id: 1c39f09a 2021-08-23 10:29:44,471+09 INFO [org.ovirt.engine.core.bll.storage.disk.managedblock.DisconnectManagedBlockStorageDeviceCommand] (EE-ManagedThreadFactory-engine-Thread-149928) [2a452b04] Running command: DisconnectManagedBlockStorageDeviceCommand internal: true. 2021-08-23 10:29:44,514+09 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.DetachManagedBlockStorageVolumeVDSCommand] (EE-ManagedThreadFactory-engine-Thread-149928) [2a452b04] START, DetachManagedBlockStorageVolumeVDSCommand(HostName = host, AttachManagedBlockStorageVolumeVDSCommandParameters:{hostId='29dc5d53-7ec5-4a38-aaf1-c6eaf32b0094', vds='Host[host,29dc5d53-7ec5-4a38-aaf1-c6eaf32b0094]'}), log id: 2d6874a5 2021-08-23 10:29:46,683+09 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.DetachManagedBlockStorageVolumeVDSCommand] (EE-ManagedThreadFactory-engine-Thread-149928) [2a452b04] FINISH, DetachManagedBlockStorageVolumeVDSCommand, return: StatusOnlyReturn [status=Status [code=0, message=Done]], log id: 2d6874a5 _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/LL4WSFNCV6EW6D...