Description of problem: SD becomes inaccessible while adding a new lun to it, while the DC is active. Version-Release number of selected component (if applicable): IS33 How reproducible: 100% Steps to Reproduce: 1. Choose an active DC 2. Create a script that adds in a loop disks to a VM (example attached) 3. Edit the SD, and add a new lun to it 4. See that the script fails with this error: Adding disk to 'vm_test_disks' failed: status: 409 reason: Conflict detail: Cannot add Virtual Machine Disk. The relevant Storage Domain is inaccessible. -Please handle Storage Domain issues and retry the operation. Actual results: SD becomes inaccessible Expected results: SD should stay accessible Additional info: The script can be found here http://pastebin.test.redhat.com/189091
Meital, can you also attach the engine+VDSM logs?
Created attachment 858441 [details] logs
According to the logs [1], it seems that disk add operation failed while extending the storage domain - which is the correct behavior. Can the issue be reproduced without extending the domain? [1] 2014-02-03 10:17:48,182 INFO [org.ovirt.engine.core.bll.storage.ExtendSANStorageDomainCommand] (ajp-/127.0.0.1:8702-2) [1eec2af4] Running command: ExtendSANStorageDomainCommand internal: false. Entities affected : ID: 4a3b80d4-7236-4b9a-a4c8-8a1bfe317e6a Type: Storage 2014-02-03 10:17:48,185 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.ExtendStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-2) [1eec2af4] START, ExtendStorageDomainVDSCommand( storagePoolId = 5849b030-626e-47cb-ad90-3ce782d831b3, ignoreFailoverLimit = false, storageDomainId = 4a3b80d4-7236-4b9a-a4c8-8a1bfe317e6a, deviceList = [3514f0c59af400016]), log id: 1ecf41b 2014-02-03 10:17:48,655 INFO [org.ovirt.engine.core.bll.AddDiskCommand] (ajp-/127.0.0.1:8702-6) [18bedac2] Lock Acquired to object EngineLock [exclusiveLocks= key: c3c5f78f-c627-450e-89e3-3fdef53406df value: VM_DISK_BOOT , sharedLocks= key: c3c5f78f-c627-450e-89e3-3fdef53406df value: VM ] 2014-02-03 10:17:48,663 WARN [org.ovirt.engine.core.bll.AddDiskCommand] (ajp-/127.0.0.1:8702-6) [18bedac2] CanDoAction of action AddDisk failed. Reasons:VAR__ACTION__ADD,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL 2014-02-03 10:17:48,663 INFO [org.ovirt.engine.core.bll.AddDiskCommand] (ajp-/127.0.0.1:8702-6) [18bedac2] Lock freed to object EngineLock [exclusiveLocks= key: c3c5f78f-c627-450e-89e3-3fdef53406df value: VM_DISK_BOOT , sharedLocks= key: c3c5f78f-c627-450e-89e3-3fdef53406df value: VM ] 2014-02-03 10:17:48,669 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp-/127.0.0.1:8702-6) Operation Failed: [Cannot add Virtual Machine Disk. The relevant Storage Domain is inaccessible. -Please handle Storage Domain issues and retry the operation.]
The bug is about adding a disk while extending the SD, so it doesn't make scense to reproduce it in a different scenario :)
Changed CanDo message to "The relevant Storage Domain's status is Locked"
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA
Verified on ovirt-engine-3.4.0-beta3 using the script attached in the bug itself.
Closing as part of 3.4.0