nodepool/nodepool/driver
Ian Wienand 46f44b8669
driver/openstack: order flavor results
I hit a situation in a new cloud where I had defined two flavors with
the same amount of RAM "opendev-control" and "opendev".  The config
had min-ram set [1] with a flavor-name of "opendev" -- I expected it
to match the exact name first, but nodepool was choosing
"opendev-control".

I guess the default order returned by the cloud is flavorid [2].  I'd
propose that sorting on a tuple of (ram, name) -- so that we match
names in alphabetical order -- is a more intuitive way to run the
match.

Documentation is updated, and a release note added.

[1] which actually we didn't want, really, because we wanted to
    exactly match the flavor:
     https://review.opendev.org/c/openstack/project-config/+/870677
[2] https://docs.openstack.org/api-ref/compute/?expanded=list-flavors-detail#list-flavors

Change-Id: I268dd598ca9f1b617c5062b41ad27d0305df60b9
2023-01-17 11:57:40 +11:00
..
aws Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
azure Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
example Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
fake Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
gce Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
ibmvpc Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
kubernetes Add support for Kubernetes 1.24+ 2022-12-15 00:25:14 +01:00
metastatic Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
openshift Add idle state to driver providers 2022-10-24 15:30:31 -07:00
openshiftpods Add missing cloud/region/az/host_id info to nodes 2022-08-25 13:41:05 -07:00
openstack driver/openstack: order flavor results 2023-01-17 11:57:40 +11:00
static Correct race in static node reregistration 2022-12-08 10:58:46 -08:00
test Add idle state to driver providers 2022-10-24 15:30:31 -07:00
__init__.py Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
statemachine.py Convert openstack driver to statemachine 2023-01-10 10:30:14 -08:00
utils.py AWS multi quota support 2022-07-25 14:41:07 -07:00
utils_k8s.py kubernetes: handle situation where the configuration is empty 2021-07-08 12:54:16 -07:00