Bug 1178022 - RHEV: Faulty storage allocation checks when running VM with unplugged disks as stateless
Summary: RHEV: Faulty storage allocation checks when running VM with unplugged disks a...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.5.0
Assignee: Vered Volansky
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard: storage
Depends On: 1149809
Blocks: 960934 1054175
TreeView+ depends on / blocked
 
Reported: 2015-01-01 13:44 UTC by Allon Mureinik
Modified: 2016-02-10 17:28 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1149809
Environment:
Last Closed: 2015-01-12 12:57:56 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine vdsm and server logs (1.72 MB, application/x-gzip)
2015-01-07 16:11 UTC, Kevin Alon Goldblatt
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 33800 0 None None None Never
oVirt gerrit 33876 0 None None None Never

Description Allon Mureinik 2015-01-01 13:44:32 UTC
+++ This bug was initially created as a clone of Bug #1149809 +++

Description of problem:
Looking into the code, this verification was done with all disks, while it should have been done with only plugged disks.

Run a VM as stateless with and without plugged disks, and with and without storage space for new disks.

No plugged disks - CDA should pass - even when there's low storage space.
plugged disks - CDA should fail when there's not enough space for the plugged disks only.

      | File Domain                             | Block Domain
 -----|-----------------------------------------|-------------
 qcow | 1M (header size)                        | 1G
 -----|-----------------------------------------|-------------
 raw  | preallocated: disk capacity (getSize()) | disk capacity
      | thin (sparse): 1M                       | (there is no raw sparse on 
                                                   block domains)
-------------------------------------------------------------------------------
This bug is a RHEV tracker for the QE team to verify against RHEVM 3.5.0

Comment 1 Kevin Alon Goldblatt 2015-01-07 16:09:30 UTC
As per description:

No plugged disks - CDA should pass - even when there's low storage space.
plugged disks - CDA should fail when there's not enough space for the plugged disks only.

Using nfs thin and preallocated disks.
 >>>> The CDA did not pass with unplugged disks and low space. 

Moving to Assigned.

Tested on:

rhevm-3.5.0-0.27.el6ev.noarch
vdsm-4.16.8.1-4.1.el6ev.x86_64


2015-01-07 15:58:16,542 WARN  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp-/127.0.0.1:8702-12) CanDoAction of action CreateAllSnapshotsFromVm failed. Reasons:VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN,$storageName nfs
2015-01-07 16:01:08,698 WARN  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp-/127.0.0.1:8702-17) CanDoAction of action CreateAllSnapshotsFromVm failed. Reasons:VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN,$storageName nfs
[root@kevin-rhevm ~]# Timeout, server not responding.

Comment 2 Kevin Alon Goldblatt 2015-01-07 16:11:12 UTC
Created attachment 977430 [details]
engine vdsm and server logs

Adding logs

Comment 3 Vered Volansky 2015-01-12 12:57:56 UTC
RunVm as stateless validation indeed validate only the plugged disks.
The the commands execute calls CreateAllSnapshotsFromVmCommand, which in turn calls its CDA. In this CDA all the disks, plugged and unplugged, are validated for snapshot-space, as all will later be allocated in the command's execute method.
After further consideration, this is actually the wanted behaviour, since if there are no snapshot for unplugged disks, and any of these disks are later plugged during the stateless running of the VM, data will actually be written to the disk (and not to the snapshot, to be deleted later on).
Closing-not a bug. Will open a new bug to monitor better, non-redundant storage allocation validation in this flow.

Comment 4 Allon Mureinik 2015-01-12 16:14:48 UTC
(In reply to Vered Volansky from comment #3)
> Will open a new bug to monitor better, non-redundant
> storage allocation validation in this flow.

This is bug 1181133, right?

Comment 5 Vered Volansky 2015-01-13 12:30:23 UTC
Opened bz1181133 in order to monitor issue in comment #3.


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