the resource count for os-host show is incorrect

Bug #1699936 reported by wangxiyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
TommyLike

Bug Description

os-host show API is used to query the resouce in the specified host. So the resource count for each project should be limit in the specified host as well.

But now, Cinder querys all the resources belong to the project even the the resource is not in the specified host.

So there is a strange behavior that every project's resource count can be bigger than the total resource count.

wangxiyuan (wangxiyuan)
Changed in cinder:
assignee: nobody → wangxiyuan (wangxiyuan)
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/476750

Changed in cinder:
status: New → In Progress
Changed in cinder:
assignee: wangxiyuan (wangxiyuan) → TommyLike (hu-husheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/476750
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=f50b3555773a1559e29c75ac48857b50cea8dfe5
Submitter: Zuul
Branch: master

commit f50b3555773a1559e29c75ac48857b50cea8dfe5
Author: wangxiyuan <email address hidden>
Date: Fri Jun 23 10:41:08 2017 +0800

    Fix resource count for os-host show

    os-host show API should only return the resouce count on the
    specified host.
    The logic in Cinder which counts the project's resouce on all host
    is wrong.

    Change-Id: I96cd285a82b44af8818514692818e739443dcc45
    Closes-bug: #1699936

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 12.0.0.0b2

This issue was fixed in the openstack/cinder 12.0.0.0b2 development milestone.

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.