This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1467061 - 3.6 DC: startSpm fails on CurrentVersionTooAdvancedError
3.6 DC: startSpm fails on CurrentVersionTooAdvancedError
Status: NEW
Product: vdsm
Classification: oVirt
Component: Core (Show other bugs)
x86_64 Unspecified
unspecified Severity high (vote)
: ovirt-4.3.0
: ---
Assigned To: Fred Rolland
Raz Tamir
: Automation, Regression
Depends On:
  Show dependency treegraph
Reported: 2017-07-02 06:56 EDT by Elad
Modified: 2017-10-18 07:02 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
rule-engine: ovirt‑4.3+
rule-engine: blocker+

Attachments (Terms of Use)
logs from hypervisor and engine and db dump (2.94 MB, application/x-gzip)
2017-07-02 06:56 EDT, Elad
no flags Details

  None (edit)
Description Elad 2017-07-02 06:56:13 EDT
Created attachment 1293601 [details]
logs from hypervisor and engine and db dump

Description of problem:
oVirt 4.2, 3.6 DC:
Had the master domain in status Unknown, it was the last domain in DC, so in order to clean the DC, I created an unattached domain and re-initialized successfully the DC using it. Then, I destroyed the domain that was Unknown and right after, the new master domain, which was active, moved to Unknown. The failure is on vdsm on startSpm with CurrentVersionTooAdvancedError:

2017-07-02 12:02:40,199+0300 DEBUG (tasks/4) [storage.SamplingMethod] Returning last result (misc:403)
2017-07-02 12:02:40,199+0300 ERROR (tasks/4) [storage.TaskManager.Task] (Task='a145513d-bc53-4af8-9984-03bae2854b8e') Unexpected error (task:870)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/storage/", line 877, in _run
    return fn(*args, **kargs)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/", line 333, in run
    return self.cmd(*self.argslist, **self.argsdict)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/", line 304, in startSpm
CurrentVersionTooAdvancedError: Current domain `522e419a-ae04-4f52-be68-486795dc7c90` version is too advanced, expected `3` and found `4`: ''
2017-07-02 12:02:40,199+0300 DEBUG (tasks/4) [storage.TaskManager.Task] (Task='a145513d-bc53-4af8-9984-03bae2854b8e') Task._run: a145513d-bc53-4af8-9984-03bae2854b8e () {} failed - stopping
 task (task:889)

Version-Release number of selected component (if applicable):

How reproducible:
Encountered it twice in RHV automation after domain became Unkown during [1] execution.


Steps to Reproduce:
oVirt 4.2:
1. In 3.6 DC, have the last domain, which is master, in Unkown state
2. Create an unattached domain and re-initialize the DC using it
3. Destroy the Unknwon domain

Actual results:
The master domain, which was active, changed it state to Unknown. startSpm failed with the mentioned exception in vdsm.log


2017-07-02 12:14:46,404+03 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand] (DefaultQuartzScheduler3) [2e10eac2] Start SPM Task failed - result: 'cleanSuccess', message:
 VDSGenericException: VDSErrorException: Failed in vdscommand to HSMGetTaskStatusVDS, error = Current domain `522e419a-ae04-4f52-be68-486795dc7c90` version is too advanced, expected `3` and
 found `4`

Expected results:
startSpm should succeed.

Additional info:
logs from hypervisor and engine and db dump
Comment 1 Red Hat Bugzilla Rules Engine 2017-07-02 16:24:27 EDT
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

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