Update statistics from computes if RBD ephemeral is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
High
|
MOS Nova | ||
4.1.x |
Won't Fix
|
High
|
MOS Nova | ||
5.0.x |
Fix Released
|
High
|
MOS Nova | ||
5.1.x |
Fix Released
|
High
|
MOS Nova | ||
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Dmitry Borodaenko |
Bug Description
If we use RBD as the backend for ephemeral drives, compute nodes still calculate their available disk size looking back to the local disks.
This is the path how they do it:
* nova/compute/
def update_
"""See driver.
Periodic process that keeps that the compute host's understanding of
resource availability and usage in sync with the underlying hypervisor.
:param context: security context
"""
nodenames = set(self.
for nodename in nodenames:
rt = self._get_
.......
def _get_resource_
rt = self._resource_
if not rt:
if not self.driver.
rt = resource_
return rt
* nova/compute/
def update_
"""Override in-memory calculations of compute node resource usage based
on data audited from the hypervisor layer.
Add in resource claims in progress to account for operations that have
declared a need for resources, but not necessarily retrieved them from
the hypervisor layer yet.
"""
resources = self.driver.
* nova/virt/
def get_local_
"""Get local storage info of the compute node in GB.
:returns: A dict containing:
:free: How much space is free (in gigabytes)
:used: How much space is used (in gigabytes)
"""
if CONF.libvirt_
info = libvirt_
else:
info = libvirt_
for (k, v) in info.iteritems():
info[k] = v / (1024 ** 3)
return info
It would be nice to have something like "libvirt_
Changed in fuel: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Dmitry Borodaenko (dborodaenko) |
milestone: | none → 5.1 |
tags: | added: ceph |
Changed in fuel: | |
status: | Confirmed → Triaged |
summary: |
- Update statistics from computes if RBD is being used + Update statistics from computes if RBD ephmeral is used |
Changed in fuel: | |
status: | Triaged → Confirmed |
status: | Confirmed → Triaged |
Changed in nova: | |
assignee: | nobody → Dmitry Borodaenko (dborodaenko) |
summary: |
- Update statistics from computes if RBD ephmeral is used + Update statistics from computes if RBD ephemeral is used |
Changed in fuel: | |
assignee: | Dmitry Borodaenko (dborodaenko) → MOS Nova (mos-nova) |
Changed in mos: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → MOS Nova (mos-nova) |
milestone: | none → 5.1 |
tags: | added: nova |
no longer affects: | fuel/5.1.x |
Changed in nova: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
no longer affects: | fuel |
no longer affects: | fuel/4.1.x |
no longer affects: | fuel/5.0.x |
Changed in nova: | |
milestone: | juno-3 → 2014.2 |
Changed in mos: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/102064
Review: https:/