'openstack allocation candidate list' returns non-compute nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Description
===========
'openstack allocation candidate list ' command returns a list nodes that can meet the resource allocation requests, even some of them are not compute nodes.
For example, user requests to create a VM with 50G mem, 60G disk and 6 CPUs, placement API returns two nodes:
$ openstack allocation candidate list --resource MEMORY_MB=51200 --resource DISK_GB=60 --resource VCPU=6 --os-placement-
+---+--
| # | allocation | resource provider | inventory used/capacity |
+---+--
| 1 | VCPU=6,
| 2 | VCPU=6,
+---+--
$ openstack resource provider list |grep -E "6eccd190-
| 6eccd190-
| 27073646-
But openstack-4 and openstack-5 are not compute nodes. Since VM can only be hosted on compute node, I think 'allocation candidate list ' should only return the schedulable compute nodes.
Steps to reproduce
==================
see above
Expected result
===============
'allocation candidate list ' should only return the schedulable compute nodes.
Actual result
=============
'allocation candidate list ' returns non-compute nodes.
Environment
===========
1. Exact version of OpenStack:
$ dpkg -l | grep nova
ii nova-api-os-compute 2:17.0.
ii nova-common 2:17.0.
ii nova-conductor 2:17.0.
ii nova-consoleauth 2:17.0.
ii nova-novncproxy 2:17.0.
ii nova-placement-api 2:17.0.
ii nova-scheduler 2:17.0.
summary: |
- openstack allocation candidate list shows non-compute nodes + 'openstack allocation candidate list' shows non-compute nodes |
summary: |
- 'openstack allocation candidate list' shows non-compute nodes + 'openstack allocation candidate list' returns non-compute nodes |
description: | updated |
Placement has no concept of compute nodes, it operates in terms of the resource provider abstraction. If a resource provider has the available inventory for the requested resources (and the traits match), it can be returned as an allocation candidate.
Can I ask what openstack-4.maas and openstack-5.maas are, and how did they end up in Placement if they're not compute nodes?