Repository navigation
Description
Currently, the flavor-manager-input.py produces yaml files which contain strings instead of booleans for certain default values. Namely public and disabled:
standards/Tests/iaas/flavor-naming/flavor-manager-input.py
Lines 41 to 49 in 92b3e8c
| 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:
standards/Tests/iaas/SCS-Spec.MandatoryFlavors.verbose.yaml
Lines 1 to 13 in 92b3e8c
| 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
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
mbuechse commentedon Sep 6, 2023
@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.
gndrmnn commentedon Sep 6, 2023
Noted, I dont know the procedures just yet :)