sheepdog driver doesn't report capabilities to the scheduler

Bug #1140162 reported by Wenhao Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Wenhao Xu

Bug Description

branch: master
commit: e9978269901658f5b463f5096661afde5ce8bb58

Sheepdog 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.

Err msg is shown in the following:

2013-03-02 22:51:23,439.439 WARNING cinder.scheduler.filters.capacity_filter [req-dd173c0c-3ecf-41a2-b659-6cf9145987d7 6c7e3a114d3a4df19d73e38a14869b38 618ce001837c4e9aa42a7bf191eea240] Free capacity not s
et;volume node info collection broken.
2013-03-02 22:51:23,440.440 WARNING cinder.scheduler.manager [req-dd173c0c-3ecf-41a2-b659-6cf9145987d7 6c7e3a114d3a4df19d73e38a14869b38 618ce001837c4e9aa42a7bf191eea240] Failed to schedule_create_volume: N
o valid host was found.

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

Wenhao Xu (wenhao-x)
summary: - sheepdog driver is broken when capacity filter is used
+ sheepdog driver doesn't report capabilities to the scheduler
Wenhao Xu (wenhao-x)
Changed in cinder:
assignee: nobody → Wenhao Xu (wenhao-x)
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/23346

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

Reviewed: https://review.openstack.org/23346
Committed: http://github.com/openstack/cinder/commit/1867b89a53e3e46394e9db80e0dc82471661068c
Submitter: Jenkins
Branch: master

commit 1867b89a53e3e46394e9db80e0dc82471661068c
Author: Wenhao Xu <email address hidden>
Date: Sun Mar 3 01:19:08 2013 +0800

    Add get_volume_stats in the sheepdog driver.

    1. Allow sheepdog driver to report capabilities to the scheduler.
    2. add the initial test_sheepdog.py

    Fixes Bug #1140162

    Change-Id: I6fb1fb6714ab4ae9878b593e6eee0a94d95ef29f

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: grizzly-rc1 → 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.