Bug 701245

Summary: VDSM - SpmStart command fails for the first time when switching SPM
Product: Red Hat Enterprise Linux 6 Reporter: Ortal <ogvura>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED ERRATA QA Contact: Ortal <ogvura>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, iheim, ilvovsky, sgrinber, syeghiay, ykaul
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: Storage
Fixed In Version: vdsm-4.9-66.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 07:17:22 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
spm-lock.log
none
vdsm2.log none

Description Ortal 2011-05-02 09:29:00 UTC
Description of problem:

VDSM - SpmStart command fails for the first time when switching SPM

Version-Release number of selected component (if applicable):
VDSM Version: vdsm-4.9-63.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. 2 Hosts [RHEL6.1] in the same cluster, 1 is SPM 
2. Attempt to maintenance the SPM Host.
  
Actual results:

SpmStart command fails on SpmParamsMismatch, the react for the User will be:

The second host switch it's status from None to Contending --> SPM --> Contending -->SPM



0e08074f-27c9-4a77-9c15-fc1bea4930df::ERROR::2011-05-02 11:32:04,168::task::855::TaskManager.Task::(_setError) Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 863, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/storage/task.py", line 300, in run
    return self.cmd(*self.argslist, **self.argsdict)
  File "/usr/share/vdsm/storage/spm.py", line 503, in start
    raise se.SpmParamsMismatch(oldlver, oldid, prevLVER, prevID)
SpmParamsMismatch: Pool previous lver/id don't match request: 'expected previd:-1 lver:33 got request for previd:2 lver:33'
0e08074f-27c9-4a77-9c15-fc1bea4930df::DEBUG::2011-05-02 11:32:04,169::task::492::TaskManager.Task::(_debug) Task 0e08074f-27c9-4a77-9c15-fc1bea4930df: Task._run: 0e08074f-27c9-4a77-9c15-fc1bea4930df () {} failed -
 stopping task


Expected results:

SPMStart command should succeeded @ the first time.

Additional info:

** Please see attached VDSM.log

Comment 1 Ortal 2011-05-02 09:29:25 UTC
Created attachment 496198 [details]
VDSM.log

Comment 4 Dan Kenigsberg 2011-05-03 08:10:03 UTC
http://gerrit.usersys.redhat.com/#change,350

Comment 6 Ortal 2011-05-08 09:31:17 UTC
Attached vdsm.log & spm.lock

Comment 7 Ortal 2011-05-08 09:31:40 UTC
Created attachment 497620 [details]
spm-lock.log

Comment 8 Ortal 2011-05-08 09:32:04 UTC
Created attachment 497621 [details]
vdsm2.log

Comment 10 Ortal 2011-05-18 08:58:40 UTC
Verified on vdsm version vdsm-4.9-67.el6.x86_64

Comment 11 errata-xmlrpc 2011-12-06 07:17:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2011-1782.html