Bug 1111743

Summary: Incorrect storage statistics reported for RBD ephmeral disks
Product: Red Hat OpenStack Reporter: Pádraig Brady <pbrady>
Component: openstack-novaAssignee: Pádraig Brady <pbrady>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0 (RHEL 7)CC: ddomingo, jdonohue, jkleinpe, mrussell, ndipanov, pbrady, sclewis, scohen, yeylon, yrabl
Target Milestone: z3Keywords: ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-2014.1.3-9.el6ost openstack-nova-2014.1.3-9.el7ost Doc Type: Bug Fix
Doc Text:
Previously, the Compute service only queried local disk statistics on Compute nodes, which are irrelevant when ephemeral disks are stored in RBD. This made it possible for the scheduler to prevent an instance from being scheduled when the total disk usage of instances already running on the node exceeded the total disk capacity as reported by the hypervisor driver. With this update, the Compute service now correctly queries Ceph for actual disk usage statistics.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-02 15:14:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1166033    
Bug Blocks: 1111295, 1152637    

Description Pádraig Brady 2014-06-20 22:11:07 UTC
The storage stats of the local compute node is used, rather than that of the RBD ephemeral

Comment 1 Pádraig Brady 2014-10-30 13:07:59 UTC
*** Bug 1158201 has been marked as a duplicate of this bug. ***

Comment 2 Yogev Rabl 2014-11-02 08:42:25 UTC
Can you please add steps about how to see these stats?

Comment 3 Pádraig Brady 2014-11-11 14:26:23 UTC
*** Bug 1160408 has been marked as a duplicate of this bug. ***

Comment 4 Pádraig Brady 2014-11-12 22:36:35 UTC
Look for the "disk_gb" column from `nova host-describe $hostname`
and ensure it's appropriate for the rbd volume rather than the local disk.

Comment 7 Yogev Rabl 2014-11-20 14:28:35 UTC
failed verification in version: 
python-nova-2014.1.3-8.el7ost.noarch
python-novaclient-2.17.0-2.el7ost.noarch
openstack-nova-common-2014.1.3-8.el7ost.noarch
openstack-nova-compute-2014.1.3-8.el7ost.noarch

Comment 9 Yogev Rabl 2014-11-23 13:33:18 UTC
verified in nova version: 
openstack-nova-cert-2014.1.3-9.el7ost.noarch
openstack-nova-novncproxy-2014.1.3-9.el7ost.noarch
python-nova-2014.1.3-9.el7ost.noarch
openstack-nova-console-2014.1.3-9.el7ost.noarch
openstack-nova-network-2014.1.3-9.el7ost.noarch
openstack-nova-common-2014.1.3-9.el7ost.noarch
openstack-nova-compute-2014.1.3-9.el7ost.noarch
openstack-nova-conductor-2014.1.3-9.el7ost.noarch
openstack-nova-scheduler-2014.1.3-9.el7ost.noarch
openstack-nova-api-2014.1.3-9.el7ost.noarch
python-novaclient-2.17.0-2.el7ost.noarch

Comment 12 errata-xmlrpc 2014-12-02 15:14:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2014-1932.html