NFS drivers should implemented "get_volume_stats"

Bug #1152501 reported by Mehdi Abaakouk
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Mehdi Abaakouk

Bug Description

NFS drivers driver doesn't implement "get_volume_stats" method which means no capabilities will be notified to the scheduler.

So the scheduler cannot find valid hosts to create the volume.

The method should return capabilities with attributes: total_space, total_avail, total_capacity_gb, free_capacity_gb, etc.

Mehdi Abaakouk (sileht)
Changed in cinder:
assignee: nobody → Mehdi Abaakouk (sileht)
Mehdi Abaakouk (sileht)
Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/23916

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/23916
Committed: http://github.com/openstack/cinder/commit/c47bf9bc3835d4399185376ac07920ef903d79e8
Submitter: Jenkins
Branch: master

commit c47bf9bc3835d4399185376ac07920ef903d79e8
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Mar 8 13:01:57 2013 +0100

    Implement get_volume_stats in NFS driver

    Use the already existing code (ie: _get_available_capacity) to
    implement get_volume_stats in the nfs driver

    Change the netapp nfs driver to use this new implementation
    instead of the dumb one.

    Fixes bug #1152501

    Change-Id: Ie16d9628ba4b096c60966b4aa6192fbdcb9a4f20

Changed in cinder:
status: In Progress → Fix Committed
Changed in cinder:
milestone: none → grizzly-rc2
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/25104

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (milestone-proposed)

Reviewed: https://review.openstack.org/25104
Committed: http://github.com/openstack/cinder/commit/d0757d1568c5e6b75aa32c43a10df6232b946c04
Submitter: Jenkins
Branch: milestone-proposed

commit d0757d1568c5e6b75aa32c43a10df6232b946c04
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Mar 8 13:01:57 2013 +0100

    Implement get_volume_stats in NFS driver

    Use the already existing code (ie: _get_available_capacity) to
    implement get_volume_stats in the nfs driver

    Change the netapp nfs driver to use this new implementation
    instead of the dumb one.

    Fixes bug #1152501

    Change-Id: Ie16d9628ba4b096c60966b4aa6192fbdcb9a4f20
    (cherry picked from commit c47bf9bc3835d4399185376ac07920ef903d79e8)

Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: grizzly-rc2 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.