Bug 833335 - [Storage] Error when trying to create snapshot from VM that has only shared disk(s)
Summary: [Storage] Error when trying to create snapshot from VM that has only shared d...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.1.0
Assignee: Allon Mureinik
QA Contact: Leonid Natapov
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-19 09:06 UTC by Leonid Natapov
Modified: 2016-02-10 17:15 UTC (History)
9 users (show)

Fixed In Version: SI13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Leonid Natapov 2012-06-19 09:06:02 UTC
I have VM with shared disk only. When I am trying to create snapshot I get the following error:

Error: A request to the server failed with the following Status Code:500.
------------------------------------------------------------------------

We probably should block the possibility to create a snapshot from shared disk only or at least give an appropriate error message.

Here is the engine.log:
2012-06-19 11:53:24,279 INFO  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp--0.0.0.0-8009-14) [915dc9b] Lock Acquired to object EngineLock [exclusiveLocks= key: e2aec3be-8a15-40a3-ab59-d4b159ed60f9 value: VM
, sharedLocks= ]
2012-06-19 11:53:24,308 INFO  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp--0.0.0.0-8009-14) [915dc9b] Running command: CreateAllSnapshotsFromVmCommand internal: false. Entities affected :  ID: e2aec3be-8a15-40a3-ab59-d4b159ed60f9 Type: VM
2012-06-19 11:53:24,321 INFO  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp--0.0.0.0-8009-14) [915dc9b] Lock freed to object EngineLock [exclusiveLocks= key: e2aec3be-8a15-40a3-ab59-d4b159ed60f9 value: VM
, sharedLocks= ]
2012-06-19 11:53:24,333 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.UpdateVMVDSCommand] (ajp--0.0.0.0-8009-14) [915dc9b] START, UpdateVMVDSCommand(storagePoolId = 347bb22d-598b-44bc-8b05-e1b176d30bef, ignoreFailoverLimit = false, compatabilityVersion = null, storageDomainId = 00000000-0000-0000-0000-000000000000, infoDictionary.size = 1), log id: 18966b81
2012-06-19 11:53:24,354 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.UpdateVMVDSCommand] (ajp--0.0.0.0-8009-14) [915dc9b] FINISH, UpdateVMVDSCommand, log id: 18966b81
2012-06-19 11:53:24,357 ERROR [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp--0.0.0.0-8009-14) [915dc9b] Transaction rolled-back for command: org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand.
2012-06-19 11:53:24,361 INFO  [org.ovirt.engine.core.utils.transaction.TransactionSupport] (ajp--0.0.0.0-8009-14) [915dc9b] transaction rolled back

Comment 1 Andrew Cathrow 2012-06-19 16:23:56 UTC
I'd say that we shouldn't block the UI but give an error message like  "Shared disks do not support snapshots."
Otherwise it'll generate support tickets "Why is the button greyed out?"

Comment 2 Allon Mureinik 2012-07-26 06:59:40 UTC
was solved by commit e522e9e58b01e49caf30c8467c50e665ce528328 (http://gerrit.ovirt.org/#/c/6387/).

Comment 3 Allon Mureinik 2012-07-29 15:19:24 UTC
Comment on the solution: Taking a snapshot is allowed even if the VM does not have any snapable disks (e.g., only shared disks). Actually, taking a snapshot is allowed even the VM has no disks what so ever.

Comment 4 Haim 2012-07-29 15:21:38 UTC
(In reply to comment #3)
> Comment on the solution: Taking a snapshot is allowed even if the VM does
> not have any snapable disks (e.g., only shared disks). Actually, taking a
> snapshot is allowed even the VM has no disks what so ever.

verified on SI12.manage to take a snapshot on vm with share-able disks.


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