Bug 690126

Summary: [vdsm][storage]sending attachStorageDomain command to an attached domain with the pool that the domain attached to will fail
Product: Red Hat Enterprise Linux 6 Reporter: Moran Goldboim <mgoldboi>
Component: vdsmAssignee: Eduardo Warszawski <ewarszaw>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, hateya, iheim, ilvovsky, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.9-57.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-19 15:11:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
vdsm log none

Description Moran Goldboim 2011-03-23 12:03:48 UTC
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:

Comment 3 Haim 2011-04-05 17:41:53 UTC
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}}