Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1182012

Summary: [engine-backend] Null disk size on a newly created disk is interpreted 0. Leave as null and revise usage.
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engineAssignee: Vered Volansky <vered>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, gklein, lpeer, lsurette, rbalakri, Rhev-m-bugs, vered, yeylon, ykaul, ylavi
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-3.6.0_qa1 Doc Type: Bug Fix
Doc Text:
In Some situations, such as a newly created disks or disks on a storage domain that's been re-connected, the free space on the storage domain is not known, until a later time, when it is polled and updated. In this situation, the free space was interpreted as 0, causing a strict reaction from the system, not allowing space consuming operations to be performed, though is doesn't necessarily mean the storage has 0 free space. Now these cases do not assume low (0) space, and allow operations to perform. If there is indeed lack of space, the operations will fail on VDSM.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1176854, 1177147    
Bug Blocks:    
Attachments:
Description Flags
engine log and db_dump none

Description Elad 2015-01-14 10:01:06 UTC
Created attachment 979924 [details]
engine log and db_dump

Description of problem:
Disk creation, on a storage domain, which its availeble size is N/A (null), is blocked in CanDoAction of 'disk space low on domain'. 

Version-Release number of selected component (if applicable):
rhev 3.5 vt13.6

How reproducible:
Always

Steps to Reproduce:
1. Open 'add' disk prompt, pick a domain and don't click 'OK'
2. Block connectivity to the picked storage domain (make sure it's not the master domain). Wait for the domain free space and total space to become 'N/A'
3. Click 'OK' in the disk creation prompt


Actual results:

Storage domain's available_disk_size is null:

# SELECT * from storage_domain_dynamic;

-[ RECORD 5 ]-------+-------------------------------------
id                  | 04efe3a0-555f-4505-a5b6-c343133f63d8
available_disk_size | 
used_disk_size      | 
_update_date        | 2015-01-14 11:47:31.133245+02
-[ RECORD 6 ]-------+-------------------------------------



Disk creation action is blocked on CanDoAction of 'disk space low on domain':

2015-01-14 11:48:08,780 WARN  [org.ovirt.engine.core.bll.AddDiskCommand] (ajp-/127.0.0.1:8702-9) [568b9c3e] CanDoAction of action AddDisk failed. Reasons:VAR__ACTION__ADD,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_DISK_SPACE_LOW_ON_STORAGE_DOMAIN,$storageName vnx-3


Expected results:
Disk creation should proceed when the value is null, as stated here:
https://bugzilla.redhat.com/show_bug.cgi?id=1176854#c3

Additional info:
engine log and db_dump

Comment 1 Yaniv Lavi 2015-01-19 12:56:40 UTC
Doesn't sound like a common issue, so moving to 3.6.0 only unless we get a customer that wants this in 3.5.

Comment 2 Vered Volansky 2015-01-22 08:46:03 UTC
This is the same issue as in bz1177147, which is an ovirt bz. Changing the name for easier monitoring.

Comment 3 Allon Mureinik 2015-03-29 18:21:19 UTC
Vered, please provide some doctext on this BZ.
Thanks!

Comment 4 Elad 2015-04-26 07:12:11 UTC
When disk creation is initialized while the available free space on the storage domain is null, the operation isn't blocked and proceeded (and eventually fails on vdsm).

Verified using ovirt-engine-3.6.0_qa1

Comment 5 Allon Mureinik 2016-03-10 10:39:43 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 6 Allon Mureinik 2016-03-10 10:39:47 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 7 Allon Mureinik 2016-03-10 10:45:24 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 8 Allon Mureinik 2016-03-10 12:02:02 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE