Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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