-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
ovn-tester/ovn_workload.py
Outdated
raise NotImplemented | ||
|
||
|
||
class WorkerNode(ChassisNode): |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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. :)
8df917e
to
bf42c9c
Compare
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]>
bf7cf15
to
d66ea2f
Compare
Signed-off-by: Frode Nordahl <[email protected]>
Signed-off-by: Frode Nordahl <[email protected]>
Signed-off-by: Frode Nordahl <[email protected]>
d66ea2f
to
ad28530
Compare
The patches from this PR has been carried over to #179, let's review them there. |
Note that this PR depends on and includes commits from #173