Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP/RFC] Extract generic methods from WorkerNode and Cluster classes. #175

Closed
wants to merge 7 commits into from

Conversation

fnordahl
Copy link
Member

Note that this PR depends on and includes commits from #173

raise NotImplemented


class WorkerNode(ChassisNode):
Copy link
Member Author

@fnordahl fnordahl Sep 14, 2023

Choose a reason for hiding this comment

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

@dceara it is this inheritance that made me think of ChassisNode as Compute does not really fit with Kubernetes. Or what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

It could also serve as a base for a NetworkNode

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm ok with both; if ChassisNode makes more sense to you let's go with that. :)

@fnordahl fnordahl force-pushed the ovn-workload-extract-generic branch 2 times, most recently from 8df917e to bf42c9c Compare September 15, 2023 08:17
@fnordahl
Copy link
Member Author

To better understand how this could be used I've also created a OpenStack CMS plugin and test skeleton here: fnordahl@9e254e9

To ensure contributors make use of the projects formatting
preferences we create a top level `pyproject.toml` file with
configuration for the black Python code formatter.

Signed-off-by: Frode Nordahl <[email protected]>
The explicit reference to type in calls to super() are no longer
necessary as of Python 3 [0].

0: https://docs.python.org/3/library/functions.html#super

Signed-off-by: Frode Nordahl <[email protected]>
Move CMS specific test bringup code out of `ovn_tester` module.

Introduce `cms_name` global config.

Load cms specific module and class on the back of name from
configuration.

Convert the `base_cluster_bringup` step to a regular test step.

Signed-off-by: Frode Nordahl <[email protected]>
The test cases in `ovn-tester/tests` are all CMS specific.  Now
that we have CMS plugins, relocate the test code along with them.

Signed-off-by: Frode Nordahl <[email protected]>
@fnordahl fnordahl force-pushed the ovn-workload-extract-generic branch 3 times, most recently from bf7cf15 to d66ea2f Compare September 21, 2023 08:10
@fnordahl fnordahl force-pushed the ovn-workload-extract-generic branch from d66ea2f to ad28530 Compare September 21, 2023 09:44
@mkalcok mkalcok mentioned this pull request Sep 22, 2023
@fnordahl
Copy link
Member Author

The patches from this PR has been carried over to #179, let's review them there.

@fnordahl fnordahl closed this Sep 28, 2023
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.

2 participants