Bug 690126 - [vdsm][storage]sending attachStorageDomain command to an attached domain with the pool that the domain attached to will fail
Summary: [vdsm][storage]sending attachStorageDomain command to an attached domain with...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Eduardo Warszawski
QA Contact: Dafna Ron
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-23 12:03 UTC by Moran Goldboim
Modified: 2011-08-19 15:11 UTC (History)
6 users (show)

Fixed In Version: vdsm-4.9-57.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-19 15:11:20 UTC
Target Upstream Version:


Attachments (Terms of Use)
vdsm log (3.31 MB, application/x-tar)
2011-03-23 12:03 UTC, Moran Goldboim
no flags Details

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}}


Note You need to log in before you can comment on or make changes to this bug.