← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1718212] [NEW] Compute resource tracker does not report correct information for drivers such as vSphere

 

Public bug reported:

The compute resource tracker is ignoring values coming from compute
drivers such as vSphere. Specifically, the resource tracker is accepting
disk_total from the driver, but not disk_available and disk_used.

We've checked the vSphere driver, and the driver is indeed reporting the
correct values for this.

<snip>
        data["vcpus"] = stats['vcpus']
        data["disk_total"] = capacity / units.Gi
        data["disk_available"] = freespace / units.Gi
        data["disk_used"] = data["disk_total"] - data["disk_available"]
        data["host_memory_total"] = stats['mem']['total']
        data["host_memory_free"] = stats['mem']['free']
        data["hypervisor_type"] = about_info.name
        data["hypervisor_version"] = versionutils.convert_version_to_int(
                str(about_info.version))
        data["hypervisor_hostname"] = self._host_name
        data["supported_instances"] = [
            (arch.I686, hv_type.VMWARE, vm_mode.HVM),
            (arch.X86_64, hv_type.VMWARE, vm_mode.HVM)]
</snip>

It looks like a patch was made to the resource tracker @
https://review.openstack.org/#/c/126237/ but the change was voted down
and not approved.

Since vSphere is reporting the correct data, maybe someone can tell us
why Nova is ignoring these values and provide us with some guidance on
correcting the problem in the driver, if that's where the change is
needed.

This is affecting our production environment because I use upstream code
and I have clusters that get overcommitted as a direct result of the
scheduler seeing that no disk is "used"

This should get extreme priority since it affects the ability to launch
things!!!

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1718212

Title:
  Compute resource tracker does not report correct information for
  drivers such as vSphere

Status in OpenStack Compute (nova):
  New

Bug description:
  The compute resource tracker is ignoring values coming from compute
  drivers such as vSphere. Specifically, the resource tracker is
  accepting disk_total from the driver, but not disk_available and
  disk_used.

  We've checked the vSphere driver, and the driver is indeed reporting
  the correct values for this.

  <snip>
          data["vcpus"] = stats['vcpus']
          data["disk_total"] = capacity / units.Gi
          data["disk_available"] = freespace / units.Gi
          data["disk_used"] = data["disk_total"] - data["disk_available"]
          data["host_memory_total"] = stats['mem']['total']
          data["host_memory_free"] = stats['mem']['free']
          data["hypervisor_type"] = about_info.name
          data["hypervisor_version"] = versionutils.convert_version_to_int(
                  str(about_info.version))
          data["hypervisor_hostname"] = self._host_name
          data["supported_instances"] = [
              (arch.I686, hv_type.VMWARE, vm_mode.HVM),
              (arch.X86_64, hv_type.VMWARE, vm_mode.HVM)]
  </snip>

  It looks like a patch was made to the resource tracker @
  https://review.openstack.org/#/c/126237/ but the change was voted down
  and not approved.

  Since vSphere is reporting the correct data, maybe someone can tell us
  why Nova is ignoring these values and provide us with some guidance on
  correcting the problem in the driver, if that's where the change is
  needed.

  This is affecting our production environment because I use upstream
  code and I have clusters that get overcommitted as a direct result of
  the scheduler seeing that no disk is "used"

  This should get extreme priority since it affects the ability to
  launch things!!!

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1718212/+subscriptions