Scheduler stats reports stale data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Gary W. Smith |
Bug Description
The scheduler stats API reports stale data, despite the fact that it receives updates from the volume drivers.
Steps to reproduce (with a single backend using lvm):
1. Create a volume:
cinder create 1
2. Query the stats and view the timestamp:
curl -s -H "X-Auth-Token: $OS_TOKEN" $CINDER_
It will show the current timestamp
3. Wait for a minute or two (or as long as you want!) to see in the scheduler log that it has "Received volume service update"s from the drivers. During this waiting, avoid creating any volumes.
4. Re-query the stats with the same command as in step 2. Note that the timestamp has not changed
This is due to a problem in the host_manager.py object whereby the scheduler's copy of the stats is only updated as a side-effect of the call to get_all_
Changed in cinder: | |
assignee: | nobody → Gary W. Smith (gary-w-smith) |
Changed in cinder: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in cinder: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | kilo-1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/142361
Review: https:/