Skip to content

Dynamic SCS flavor selection #287

Open

Description

@jschoone

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

Definition of Done:

  • All acceptance criteria are met
  • Changes have been reviewed
  • CI tests have run successfully
  • Documentation has been updated
  • Release Notes have been updated

Activity

  1. added
    IaaS
    Container
    on Feb 23, 2023
  2. garloff commented on Mar 3, 2023

    @garloff
    Member

    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.

  3. fkr commented on Mar 3, 2023

    @fkr
    Member

    (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.

    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

  4. artificial-intelligence commented on Apr 28, 2023

    @artificial-intelligence
  5. jschoone commented on Apr 28, 2023

    @jschoone
    Author

    upstream Issue regarding terraform: terraform-provider-openstack/terraform-provider-openstack#1081

    As of the date it seems like we are the only ones who still interested in it

  6. removed
    Container
    on Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

IaaS

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions