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

Bug 1085935

Summary: vdsm doesn't extend thin provision disks on block domains if pool type was once "file" (and cache hasn't cleared)
Product: Red Hat Enterprise Virtualization Manager Reporter: Ori Gofen <ogofen>
Component: vdsmAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED ERRATA QA Contact: Aharon Canan <acanan>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acanan, amureini, bazulay, cpelland, gklein, iheim, lpeer, scohen, tnisan, yeylon, zdover
Target Milestone: ---Flags: amureini: Triaged+
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, VDSM did not extend thin-provisioned disks on block domains if the pool type had been "file" and the VDSM cache had not been cleared. This resulted in situations in which virtual machines failed to set up, and a "no space error" appeared. Now, VDSM extends thin-provisioned disks on block domains even if the pool type had been "file" and the VDSM cache had not been cleared.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-09 13:30:17 UTC 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:
Attachments:
Description Flags
vdsm+engine logs none

Description Ori Gofen 2014-04-09 16:43:52 UTC
Created attachment 884574 [details]
vdsm+engine logs

Description of problem:

The error seems to results due to something dirty in vdsm's cache.
When creating a DC with pool type,file,restarting vdsm service,and then migrating master domain to block,vdsm won't extend thin provision block disk,an OS installation will pause with error:

** VM NAME has paused due to no Storage space error **

From vdsm logs we see that it keeps looping through extend requests:

Thread-79::INFO::2014-04-09 19:14:19,299::logUtils::47::dispatcher::(wrapper) Run and protect: sendExtendMsg, Return response: None

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

Release:
Red Hat Enterprise Linux Server release 6.5 (Santiago)

Version: 
vdsm-4.14.6-0.1.beta3.el6ev.x86_64
rhevm-3.4.0-0.13.beta3.el6ev.noarch
rhevm-webadmin-portal-3.4.0-0.13.beta3.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1.create shared DC
2.Create NFS SD 
3.restart vdsm service (/etc/init.d/vdsmd restart)
4.Create ISCSI SD
5.disable NFS(master) and activate it
6.create a VM with thin provision ISCSI disk and try to install OS

Actual results:

Installation process stops with "no space error" (2014-Apr-09, 19:01)

Expected results:

Installation should succeed 

Additional info:
**After step 6:
**When restarting vsdm's service the installation process continues and **finishes successfully.

Comment 1 Allon Mureinik 2014-04-10 07:23:15 UTC
Fede, IIUC, your fix for bug 1083476 will cover this usecase too, but please verify it.

Comment 3 Aharon Canan 2014-04-27 12:13:30 UTC
same like https://bugzilla.redhat.com/show_bug.cgi?id=1083476

verified using av7

Comment 4 Allon Mureinik 2014-05-07 11:23:33 UTC
Zac, the doc text added is not accurate.

To quote:
> Previously, VDSM did not extend thin-provisioned disks on block domains if the 
> pool type had been "file" and the VDSM cache had not been cleared. 

This is a bug we encountered during 3.4's development cycle, which was never released to customers/partners, and there's no point in adding a doctext for it.

In 3.3 (and previous versions, AFAIK, since 3.0), the SPM was used to extend thinly provishioned disks on block domains via notifications in the mailbox. The change in 3.4 is that we create and monitor mailboxes on file domains too, since there MIGHT be block domains in the same DC as block domains.

Comment 5 errata-xmlrpc 2014-06-09 13:30:17 UTC
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.

http://rhn.redhat.com/errata/RHBA-2014-0504.html

Comment 6 Zac Dover 2015-08-31 13:02:19 UTC
Comment to remove my needinfo.