This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 892724 - engine: java.lang.IndexOutOfB oundsException for undo/commit of preview on snapshot with no disks
engine: java.lang.IndexOutOfB oundsException for undo/commit of preview on sn...
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
x86_64 Linux
unspecified Severity urgent
: ---
: 3.2.0
Assigned To: Liron Aravot
Dafna Ron
: Regression
Depends On:
  Show dependency treegraph
Reported: 2013-01-07 12:04 EST by Dafna Ron
Modified: 2016-02-10 14:39 EST (History)
9 users (show)

See Also:
Fixed In Version: SF6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-10 17:32:09 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:

Attachments (Terms of Use)
log (60.09 KB, application/x-xz)
2013-01-07 12:04 EST, Dafna Ron
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 10871 None None None Never

  None (edit)
Description Dafna Ron 2013-01-07 12:04:49 EST
Created attachment 674173 [details]

Description of problem:

we are getting a java.lang.IndexOutOfBoundsException when trying to commit/undo a snapshot preview for a vm with no disks. 

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


How reproducible:


Steps to Reproduce:
1. create a vm with no disks 
2. create a snapshot -> preview
3. try to commit/undo the snapshot
Actual results:

we get java.lang.IndexOutOfBoundsException

Expected results:

we should be able to commit/undo a snapshot with no disks

Additional info: full log attached

2013-01-07 18:54:28,223 INFO  [org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand] (ajp-/ [41dc8171] Lock Acquired to object EngineLock [exclusiveLocks= key
: e2d743c2-ed23-469e-80e8-de4cffaf581f value: VM
, sharedLocks= ]
2013-01-07 18:54:28,231 ERROR [org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand] (ajp-/ [41dc8171] Error during CanDoActionFailure.: java.lang.IndexOutOfB
oundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck( [rt.jar:1.7.0_09-icedtea]
        at java.util.ArrayList.get( [rt.jar:1.7.0_09-icedtea]
        at org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand.getQuotaStorageConsumptionParameters( [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.getQuotaConsumptionParameters( [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.internalValidateAndSetQuota( [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.internalCanDoAction( [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeAction( [engine-bll.jar:]
        at org.ovirt.engine.core.bll.Backend.runActionImpl( [engine-bll.jar:]
        at org.ovirt.engine.core.bll.Backend.RunAction( [engine-bll.jar:]
        at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source) [:1.7.0_09-icedtea]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke( [rt.jar:1.7.0_09-icedtea]
        at java.lang.reflect.Method.invoke( [rt.jar:1.7.0_09-icedtea]
        at$ManagedReferenceMethodInterceptor.processInvocation( [jboss-as-ee.jar:7.1.3.Final-redhat-4]
        at org.jboss.invocation.InterceptorContext.proceed( [jboss-invocation.jar:1.1.1.Final-redhat-2]
        at org.jboss.invocation.InterceptorContext$Invocation.proceed( [jboss-invocation.jar:1.1.1.Final-redhat-2]
        at org.ovirt.engine.core.utils.ThreadLocalSessionCleanerInterceptor.injectWebContextToThreadLocal( [engine-utils.jar:]
        at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) [:1.7.0_09-icedtea]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke( [rt.jar:1.7.0_09-icedtea]
        at java.lang.reflect.Method.invoke( [rt.jar:1.7.0_09-icedtea]
        at$ManagedReferenceLifecycleMethodInterceptor.processInvocation( [jboss-as-ee.jar:7.1.3.Final-redhat-4]
        at org.jboss.invocation.InterceptorContext.proceed( [jboss-invocation.jar:1.1.1.Final-redhat-2]
Comment 2 Liron Aravot 2013-01-10 10:32:34 EST
Comment 3 Dafna Ron 2013-02-07 11:55:24 EST
verified on sf6
Comment 4 errata-xmlrpc 2013-06-10 17:32:09 EDT
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.

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