Skip to content

Feat/new flavor scheme - #226

Merged
tibeer merged 12 commits into
mainfrom
feat/new-flavor-scheme
Feb 21, 2023
Merged

tibeer merged 12 commits into
mainfrom
feat/new-flavor-scheme

Conversation

@garloff

@garloff garloff commented Feb 17, 2023

Copy link
Copy Markdown
Member

This is a first version how the new flavor naming v2 could look like to address issue #190, reflecting the considerations from #192.
A document that describes how the transition can be done smoothly still needs to be written.
The check tools which has been updated along with the standard can be run in a mode to accept both old v1 and new v2 flavor names, which hints how a transition might be implemented.
To check for v1 compliance, the tool has an option -1 now, so we don't need to carry an old version of the test tool.

We have changed the naming scheme to avoid ':' in flavor names as
k8s does not like these within a label.
Ignoring the SCS- prefix (which stays the same, we did not add version
and leave the trailing dash as is), we transform:
* v1 '-' becomes v2 '_'
* v1 ':' becomes v2 '-'

The flavor-name-check.py script still understands the old names unless
you pass the "-2" option, which results in old flavor names no longer
being acceptable.

The old names however don't count towards the mandatory flavor list.
So a cloud that offers new and old names would be compliant without
-2, but only the old flavors are insufficient.

Caveats:
* We probably should have a -1 option to allow only old flavors
  (and count them towards the new mandatory list)
* Without -2, we are too liberal in accepting mixed flavor names:
  We accept flavors that start with the v2 scheme and then switch
  to v1. (This is not considered an urgent issue right now, as we
  expect the transition time to be limited.)

Signed-off-by: Kurt Garloff <[email protected]>
Signed-off-by: Kurt Garloff <[email protected]>
* Use parseone() for the common error handling.
* Ensure we raise an exception if the name starts with new v2 format
  and switches to v1 along the way.

Also fix a few flake8 errors.

Signed-off-by: Kurt Garloff <[email protected]>
With this, we pretty much reestablish the old behavior:
- We check for completeness vs. the old flavor names.
- We prefer old flavors and warn from the new.

We don't outright disallow v2 names; embracing the future is OK.

Signed-off-by: Kurt Garloff <[email protected]>
@garloff garloff added work in progress Pull requests that are work in progress, do not merge them IaaS Issues or pull requests relevant for Team1: IaaS standards Issues / ADR / pull requests relevant for standardization & certification labels Feb 17, 2023
Also fixup links due to repository reorganization.
Did a few wording improvments along the way. Editorial stuff only.

Signed-off-by: Kurt Garloff <[email protected]>
fkr
fkr previously approved these changes Feb 18, 2023

@fkr fkr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! left two very minor comments

@tibeer tibeer 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! Just one hint: I have the feeling that the flavor-name-check.py script might become too complex to be easily maintained. That being said, I do not have any good idea on how to solve this.

@wwentland wwentland 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, thank you for addressing my concerns. Much appreciated!

@fkr fkr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@itrich itrich 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

@tibeer
tibeer merged commit f8b8fcc into main Feb 21, 2023
@tibeer
tibeer deleted the feat/new-flavor-scheme branch February 21, 2023 14:05
reqa pushed a commit that referenced this pull request Feb 22, 2023
* Parse and validate new v2 flavor names.

We have changed the naming scheme to avoid ':' in flavor names as
k8s does not like these within a label.
Ignoring the SCS- prefix (which stays the same, we did not add version
and leave the trailing dash as is), we transform:
* v1 '-' becomes v2 '_'
* v1 ':' becomes v2 '-'

The flavor-name-check.py script still understands the old names unless
you pass the "-2" option, which results in old flavor names no longer
being acceptable.

The old names however don't count towards the mandatory flavor list.
So a cloud that offers new and old names would be compliant without
-2, but only the old flavors are insufficient.

Caveats:
* We probably should have a -1 option to allow only old flavors
  (and count them towards the new mandatory list)
* Without -2, we are too liberal in accepting mixed flavor names:
  We accept flavors that start with the v2 scheme and then switch
  to v1. (This is not considered an urgent issue right now, as we
  expect the transition time to be limited.)

* Flavor naming spec v2 with new naming scheme.

* Fix a few typos and adjust header.
* Refactor name parsing: Error handling in function.
* Use parseone() for the common error handling.
* Ensure we raise an exception if the name starts with new v2 format
  and switches to v1 along the way.

Also fix a few flake8 errors.

* Implement option -1 (--v1prefer) to check v1 flavors.

With this, we pretty much reestablish the old behavior:
- We check for completeness vs. the old flavor names.
- We prefer old flavors and warn from the new.

We don't outright disallow v2 names; embracing the future is OK.

* Improve headlines and usage of must, should, must not etc.

* Adjust draft to use new v2 flavor names.

Also fixup links due to repository reorganization.
Did a few wording improvments along the way. Editorial stuff only.

* One ":" had been overlooked.

* Improvements as suggested by @fkr (and flake8).


Signed-off-by: Kurt Garloff <[email protected]>
cah-hbaum added a commit that referenced this pull request Sep 22, 2023
* Anti-affinity for k8s nodes

Adds a standard decision for K8s node anti-affinity. This should lead to a standard, which ensures anti-affinity, and therefore high-availability and fault-tolerance on systems of SCS users.


* Update Anti-affinity for k8s nodes

Some small updates and changes to the Decision Record due to the comments of @matofeder and @anjastrunk.

---------

Signed-off-by: Hannes Baum <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

IaaS Issues or pull requests relevant for Team1: IaaS standards Issues / ADR / pull requests relevant for standardization & certification work in progress Pull requests that are work in progress, do not merge them

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants