Skip to content

flavor-manager-input.py uses strings instead of real types for default values #340

Closed

Description

@gndrmnn

Currently, the flavor-manager-input.py produces yaml files which contain strings instead of booleans for certain default values. Namely public and disabled:

def spec_dict():
"return dict with syntax specification"
ref = [{"field": "name", "mandatory_prefix": "SCS-"},
{"field": "public", "default": "true"},
{"field": "disabled", "default": "false"}]
for key in SpecSyntax.vocabulary:
if not fnmck.prefer_old:
ref.append({"field": key})
return {"reference": ref}

We are currently working on unifying the type parsing for the osism-flavor-manager and have encountered the problem, that the yaml file in this repo (SCS-Spec.MandatoryFlavors.verbose.yaml), which will be automatically downloaded by the osism-flavor-manager at the users discretion, contains strings instead of booleans because of the python script mentioned above:

reference:
- field: name
mandatory_prefix: SCS-
- field: public
default: 'true'
- field: disabled
default: 'false'
- field: name
- field: cpus
- field: ram
- field: disk
- field: description
mandatory:

We propose changing the flavor-manager-input.py in this repo and regenerating the yaml file with correctly typed values.

For reference, this is how the osism flavor.yaml file looks like: https://raw.githubusercontent.com/osism/openstack-flavor-manager/main/flavors.yaml

Activity

  1. self-assigned this
    on Sep 6, 2023
  2. added this to the R5 (v6.0.0) milestone on Sep 6, 2023
  3. added
    IaaS
    SCS is standardized
    SCS-VP10
    on Sep 6, 2023
  4. mbuechse commented on Sep 6, 2023

    @mbuechse
    Contributor

    @gndrmnn I stumbled upon this issue by coincidence. It would have been good to either assign it to me directly or to mention it in the Team IaaS meeting. At any rate, I will get to work on this soon.

  5. gndrmnn commented on Sep 6, 2023

    @gndrmnn
    Author

    @gndrmnn I stumbled upon this issue by coincidence. It would have been good to either assign it to me directly or to mention it in the Team IaaS meeting. At any rate, I will get to work on this soon.

    Noted, I dont know the procedures just yet :)

  6. moved this from Backlog to Doing in Sovereign Cloud Stackon Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

IaaSSCS is standardizedSCS-VP10

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions