Hello all,
I'm rebuilding one of my gluster clusters after it blew up following an unfortunate expired certificate issue.
After I finally remembered to downgrade qemu (grrrr...) and started importing the hold gluster storage domains, one of the export domains failed to import due to "connected to another domain" issue.
How can I force detach it from the previous cluster?
(I remember something about deleting the lease file - but I'm too brain dead to find it in DDG...).
Engine errors:
$ cat engine.log | grep c3abcfe6-1062-48e2-8ca4-924b96b8c497
2022-02-07 13:31:24,729+02 INFO [org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] Lock Acquired to object 'EngineLock:{exclusiveLocks='[22eec6d4-f0be-47db-b5d5-678bd84f47c6=STORAGE]', sharedLocks=''}'
2022-02-07 13:31:24,747+02 INFO [org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] Running command: AttachStorageDomainToPoolCommand internal: false. Entities affected : ID: 22eec6d4-f0be-47db-b5d5-678bd84f47c6 Type: StorageAction group MANIPULATE_STORAGE_DOMAIN with role type ADMIN, ID: 257a27cc-87ec-11ec-bc62-00163e3fe79d Type: StoragePoolAction group MANIPULATE_STORAGE_DOMAIN with role type ADMIN
2022-02-07 13:31:24,782+02 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] START, AttachStorageDomainVDSCommand( AttachStorageDomainVDSCommandParameters:{storagePoolId='257a27cc-87ec-11ec-bc62-00163e3fe79d', ignoreFailoverLimit='false', storageDomainId='22eec6d4-f0be-47db-b5d5-678bd84f47c6'}), log id: 777adb39
2022-02-07 13:31:48,281+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] EVENT_ID: IRS_BROKER_COMMAND_FAILURE(10,803), VDSM command AttachStorageDomainVDS failed: Storage domain already attached to pool: 'domain=22eec6d4-f0be-47db-b5d5-678bd84f47c6, pool=2cb812a0-4a95-11eb-b3bc-00163e6a0a7c'
2022-02-07 13:31:48,281+02 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] Command 'AttachStorageDomainVDSCommand( AttachStorageDomainVDSCommandParameters:{storagePoolId='257a27cc-87ec-11ec-bc62-00163e3fe79d', ignoreFailoverLimit='false', storageDomainId='22eec6d4-f0be-47db-b5d5-678bd84f47c6'})' execution failed: IRSGenericException: IRSErrorException: Storage domain already attached to pool: 'domain=22eec6d4-f0be-47db-b5d5-678bd84f47c6, pool=2cb812a0-4a95-11eb-b3bc-00163e6a0a7c'
2022-02-07 13:31:48,281+02 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.AttachStorageDomainVDSCommand] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] FINISH, AttachStorageDomainVDSCommand, return: , log id: 777adb39
2022-02-07 13:31:48,281+02 ERROR [org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] Command 'org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand' failed: EngineException: org.ovirt.engine.core.vdsbroker.irsbroker.IrsOperationFailedNoFailoverException: IRSGenericException: IRSErrorException: Storage domain already attached to pool: 'domain=22eec6d4-f0be-47db-b5d5-678bd84f47c6, pool=2cb812a0-4a95-11eb-b3bc-00163e6a0a7c' (Failed with error StorageDomainAlreadyAttached and code 380)
2022-02-07 13:31:48,283+02 INFO [org.ovirt.engine.core.bll.CommandCompensator] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] Command [id=ec43c2c1-3441-4d91-9bd2-98280e9c0eaa]: Compensating NEW_ENTITY_ID of org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap; snapshot: StoragePoolIsoMapId:{storagePoolId='257a27cc-87ec-11ec-bc62-00163e3fe79d', storageId='22eec6d4-f0be-47db-b5d5-678bd84f47c6'}.
2022-02-07 13:31:48,290+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] EVENT_ID: USER_ATTACH_STORAGE_DOMAIN_TO_POOL_FAILED(963), Failed to attach Storage Domain local_export_storage_1 to Data Center Default. (User: gilboa@internal-authz)
2022-02-07 13:31:48,294+02 INFO [org.ovirt.engine.core.bll.storage.domain.AttachStorageDomainToPoolCommand] (default task-27) [c3abcfe6-1062-48e2-8ca4-924b96b8c497] Lock freed to object 'EngineLock:{exclusiveLocks='[22eec6d4-f0be-47db-b5d5-678bd84f47c6=STORAGE]', sharedLocks=''}'
Thanks,
Gilboa