NFS not finding shares to use

Bug #1190094 reported by Joshua Harlow on 2013-06-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Joshua Harlow

Bug Description

It appears there is a problem with NFS share calculation.

Some outputs from the corresponding section. _find_share /usr/lib/python2.6/site-packages/cinder/volume/drivers/
total_size = 105689645056.0 _find_share /usr/lib/python2.6/site-packages/cinder/volume/drivers/
total_available = 97756643328.0 _find_share /usr/lib/python2.6/site-packages/cinder/volume/drivers/
total_allocated = 4096.0 _find_share /usr/lib/python2.6/site-packages/cinder/volume/drivers/
used = 0.0750594036322 _find_share /usr/lib/python2.6/site-packages/cinder/volume/drivers/
oversub_ratio 1.0
used_ratio 0.95
Requested 5368709120

Error that occurs.

2013-06-11 23:46:52.200 31656 DEBUG cinder.volume.drivers.nfs [req-07b4a6b6-c63d-40e3-b51b-fdae9415c854 65a550087e0142179b6fef8fa60f65de 22b050a7c3c24ce6affee2abc7b63d7d] is above nfs_oversub_ratio _find_share /usr/lib/python2.6/site-packages/cinder/volume/drivers/

It appears the logic around the following is incorrect.

(total_allocated * oversub_ratio) < requested_volume_size

if oversub_ratio >= 1.0:
    # NOTE(morganfainberg): If we are setup for oversubscription
    # we need to calculate the apparent available space instead
    # of just using the _actual_ available space.
    if (total_allocated * oversub_ratio) < requested_volume_size:
        LOG.debug(_('%s is above nfs_oversub_ratio'), nfs_share)

I am not quite sure how 'total_allocated' is connected to the apparent available space. Thats probably not right.

Fix proposed to branch: master

Changed in cinder:
assignee: nobody → Joshua Harlow (harlowja)
status: New → In Progress

Submitter: Jenkins
Branch: master

commit 05f409e747477a12bc701d304bc6dabe6939a3a4
Author: Joshua Harlow <email address hidden>
Date: Tue Jun 11 17:50:37 2013 -0700

    Fix the after subscription size checks.

    It seems like the calculation was incorrect previously.

    Fixes bug: #1190094

    Change-Id: Iaec3c2ece6fc80e6bb87fde0a408608825212b49

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2013-07-17
Changed in cinder:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2013-10-17
Changed in cinder:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers