You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a DevOps team (=SCS user), I want to have the ability to dynamically select an SCS flavor by only providing the needed specifications (RAM, VCPUs, Disk) e.g. with IaC tools so that I don't need to know the existing flavors by name.
It should be possible to use terms like min-ram and min-disk to select a proper flavor in case there is no exact match.
Inspiration: There is an existing Terraform Data Source which unfortunately is (currently) not able to deal with multiple responses.
Definition of Ready:
User Story is small enough to be finished within one sprint
User Story is clear and understood by the whole team
Acceptance criteria are defined
Acceptance criteria are clear and understood by the whole team
Maybe reframing this discussion a bit:
If we want to avoid the need to mandate standardized names, we could need three things, IMVHO:
(1) We'd still have to define a set of standard flavors, so finding the correct flavor by properties would reliably yield results
(2) We'd need to make sure that all relevant parameters are expressed in standardized ways in the flavors. (This goes beyond vCPU/RAM/Disk, so we'd need to define some extra_specs properties. See SovereignCloudStack/standards#74)
(3) We'd need to have convenient and robust mechanisms in IaC tools to select a flavor by properties.
@jschoone's observation was about (3) and specifically terraform: We would need a fuzzy matching mechanism, where we could specify what we want and then have a capability in terraform to use the best match in case there are several matches. Would be nice to have some simple logic that would chose the flavor the has the properties that are the closest to the desired min_XXX values and the least unrequested extra capabilities.
(2) We'd need to make sure that all relevant parameters are expressed in standardized ways in the flavors. (This goes beyond vCPU/RAM/Disk, so we'd need to define some extra_specs properties. See SovereignCloudStack/standards#74)
(3) We'd need to have convenient and robust mechanisms in IaC tools to select a flavor by properties.
Activity
garloff commentedon Mar 3, 2023
Maybe reframing this discussion a bit:
If we want to avoid the need to mandate standardized names, we could need three things, IMVHO:
(1) We'd still have to define a set of standard flavors, so finding the correct flavor by properties would reliably yield results
(2) We'd need to make sure that all relevant parameters are expressed in standardized ways in the flavors. (This goes beyond vCPU/RAM/Disk, so we'd need to define some extra_specs properties. See SovereignCloudStack/standards#74)
(3) We'd need to have convenient and robust mechanisms in IaC tools to select a flavor by properties.
@jschoone's observation was about (3) and specifically terraform: We would need a fuzzy matching mechanism, where we could specify what we want and then have a capability in terraform to use the best match in case there are several matches. Would be nice to have some simple logic that would chose the flavor the has the properties that are the closest to the desired min_XXX values and the least unrequested extra capabilities.
fkr commentedon Mar 3, 2023
Imho this aligns very well with the current initiative from the Public Cloud SIG @ OIF where we work on a standardized properties.
See: https://etherpad.opendev.org/p/publiccloud-sig-specs
artificial-intelligence commentedon Apr 28, 2023
upstream Issue regarding terraform: terraform-provider-openstack/terraform-provider-openstack#1081
jschoone commentedon Apr 28, 2023
As of the date it seems like we are the only ones who still interested in it
mbuechse commentedon Aug 9, 2024
AFAICT this is in the works thanks to @gtema: https://review.opendev.org/c/openstack/publiccloud-sig/+/909387