Hide Forgot
Created attachment 487015 [details] vdsm log Description of problem: due to a rollback of transaction of attachStorageDomain of RHEVM, a mismatch in between SD status in vdsm and RHEVM has happened, when trying to reattach it (with the same parameters) command fails: Thread-39186::INFO::2011-03-23 10:43:00,235::dispatcher::94::Storage.Dispatcher.Protect::(run) Run and protect: attachStorageDomain, args: ( sdUUID=43df69c6-130a-4093-b697-54cb73e34e6c spUUID=232e5637-d880-4d7c-bb0a-db62197bfc04) StorageDomainAlreadyAttached: Storage domain already attached to pool: 'domain=43df69c6-130a-4093-b697-54cb73e34e6c, pool=232e5637-d880-4d7c-bb0a-db62197bfc04' Version-Release number of selected component (if applicable): vdsm-4.9-55.el6.x86_64 How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: if the domain is already attached to the same pool it was given in the command, vdsm should return ok code 0. Additional info:
verified on vdsm-4.9-57.el6.x86_64. Had domain already attached to pool. tried the following command from vdsClient: vdsClient -s 0 attachStorageDomain 4fc95249-bda1384c96a5637 9e88ba05-9188-44f2-a6b4-11abca6b4181 command succeeded as vdsm returned status '0'. flow: Thread-1477::INFO::2011-04-05 20:31:32,625::dispatcher::94::Storage.Dispatcher.Protect::(run) Run and protect: attachStorageDomain, args: ( sdUUID=4fc95249-bda 2-4f6c-82bf-1384c96a5637 spUUID=9e88ba05-9188-44f2-a6b4-11abca6b4181) Thread-1477::WARNING::2011-04-05 20:31:52,889::sp::779::Storage.StoragePool::(_attachSD) SD 9e88ba05-9188-44f2-a6b4-11abca6b4181 is already attached to SP 9e88ba05-9188-44f2-a6b4-11abca6b4181 Thread-1477::INFO::2011-04-05 20:31:53,973::dispatcher::100::Storage.Dispatcher.Protect::(run) Run and protect: attachStorageDomain, Return response: {'status': {'message': 'OK', 'code': 0}}