Skip to content

Update SCS-Spec.MandatoryFlavors.verbose.yaml according to scs-0103-v1 - #341

Merged
mbuechse merged 7 commits into
mainfrom
issue/340
Sep 13, 2023
Merged

mbuechse merged 7 commits into
mainfrom
issue/340

Conversation

@mbuechse

@mbuechse mbuechse commented Sep 6, 2023

Copy link
Copy Markdown
Contributor

Resolves #340

@mbuechse
mbuechse requested a review from gndrmnn September 6, 2023 11:45
@mbuechse

mbuechse commented Sep 6, 2023

Copy link
Copy Markdown
Contributor Author

@gndrmnn Can you please check the new yaml file from this branch?
Are the types correct now?
Are the additional fields (scs:name-v1 etc.) problematic?
I will also have to adjust the GitHub action to use the correct script.

@gndrmnn

gndrmnn commented Sep 6, 2023

Copy link
Copy Markdown

Are the additional fields (scs:name-v1 etc.) problematic?

No thats fine we dont parse extra specs as per osism/openstack-flavor-manager#19 just yet

Are the types correct now?

Yup, changing 'true' to true should do the trick

However, whats the difference between flavor-naming/flavor-manager-input.py and standard-flavors/flavor-manager-input.py

The former still includes

        ref = [{"field": "name", "mandatory_prefix": "SCS-"},
               {"field": "public", "default": "true"},
               {"field": "disabled", "default": "false"}]

which is problematic. Did you use the other script to build the yaml files or did you change them by hand?

@mbuechse

mbuechse commented Sep 6, 2023

Copy link
Copy Markdown
Contributor Author

@gndrmnn I used the other script, because that will be the state of the art with the standard scs-0103-v1-standard-flavors in place. However, I shall correct the former script as well. As noted, the Github action should also be changed to use the new one.

@mbuechse
mbuechse marked this pull request as ready for review September 7, 2023 08:41
@mbuechse
mbuechse requested a review from garloff September 7, 2023 08:45
@mbuechse

mbuechse commented Sep 7, 2023

Copy link
Copy Markdown
Contributor Author

@gndrmnn @garloff I think this is ready for review now. In this case, it's advised to look at the total change rather than the individual commits, because the total change is in fact smaller than the intermediate versions (the order of some fields was shuffled, which is only a cosmetic issue, and I corrected that).

@mbuechse
mbuechse requested a review from gndrmnn September 7, 2023 11:18

@gndrmnn gndrmnn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but someone with better knowledge of the actual standard in question should have a look on this, too

@anjastrunk
anjastrunk self-requested a review September 11, 2023 09:52
@mbuechse

Copy link
Copy Markdown
Contributor Author

@garloff @anjastrunk I think this is good to be merged. Please have a look and feel free to merge yourself (after rebasing onto main).

@anjastrunk anjastrunk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mbuechse
mbuechse merged commit 8b2df9d into main Sep 13, 2023
@mbuechse
mbuechse deleted the issue/340 branch September 13, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants