Placement API has double the allocation of resources as compared to the utilisation on the compute node

Solution Verified - Updated -

Issue

  • The instance for which the allocation in placement API is 2x the resources specified in the flavor, is consuming the right set of resources i.e ram, vcpus, disk on the compute node which is inline with the defined resources.

  • However, placement API has 2x the resources specified in the flavor associated with that instance.

    (overcloud) [stack@director ~]$ openstack flavor show m1-mid
    +----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Field                      | Value                                                                                                                                                                                                                                                                        |
    +----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | OS-FLV-DISABLED:disabled   | False                                                                                                                                                                                                                                                                        |
    | OS-FLV-EXT-DATA:ephemeral  | 0                                                                                                                                                                                                                                                                            |
    | access_project_ids         | None                                                                                                                                                                                                                                                                         |
    | disk                       | 10                                                                                                                                                                                                                                                                           |
    | id                         | d288fc48-927b-43fa-beed-9a3cca4240f6                                                                                                                                                                                                                                         |
    | name                       | m1-mid                                                                                                                                                                                                                                                                         |
    | os-flavor-access:is_public | True                                                                                                                                                                                                                                                                         |
    | properties                 | aggregate_instance_extra_specs:hostAggr='test-agg', hw:cpu_policy='dedicated', hw:cpu_sockets='2', hw:mem_page_size='large', hw:numa_cpus.0='0,1', hw:numa_cpus.1='2,3', hw:numa_mem.0='8192', hw:numa_mem.1='8192', hw:numa_mempolicy='strict', hw:numa_nodes='2'             |
    | ram                        | 16384                                                                                                                                                                                                                                                                        |
    | rxtx_factor                | 1.0                                                                                                                                                                                                                                                                          |
    | swap                       |                                                                                                                                                                                                                                                                              |
    | vcpus                      | 4                                                                                                                                                                                                                                                                            |
    +----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    
  • Instance UUID: 171e1b31-c826-4348-b685-b16dd771d3e0

  • Placement API Record:

      "171e1b31-c826-4348-b685-b16dd771d3e0": {
        "resources": {
          "DISK_GB": 20,
          "MEMORY_MB": 32768,
          "VCPU": 8
        }
    
  • Resource consumption on the compute node:

    # grep -e '<uuid>' -e cpupin sos_commands/virsh/virsh_-r_dumpxml_instance-00000326
    <uuid>171e1b31-c826-4348-b685-b16dd771d3e0</uuid>
      <vcpupin vcpu='0' cpuset='58'/>
      <vcpupin vcpu='1' cpuset='14'/>
      <vcpupin vcpu='2' cpuset='27'/>
      <vcpupin vcpu='3' cpuset='71'/>
    

Environment

  • Red Hat OpenStack Platform 13.0 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In