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

Make ovs-vswitchd service 'other_config' option configurable #823

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

e0ne
Copy link
Collaborator

@e0ne e0ne commented Dec 30, 2024

No description provided.

Copy link

Thanks for your PR,
To run vendors CIs, Maintainers can use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs, Maintainers can use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@e0ne e0ne force-pushed the ovs-config branch 3 times, most recently from 2dc7153 to bc320cd Compare December 30, 2024 23:00
@coveralls
Copy link

coveralls commented Dec 30, 2024

Pull Request Test Coverage Report for Build 12559608212

Details

  • 38 of 49 (77.55%) changed or added relevant lines in 8 files are covered.
  • 9 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.02%) to 47.264%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/host/internal/service/service.go 7 9 77.78%
pkg/render/render.go 16 18 88.89%
pkg/plugins/k8s/k8s_plugin.go 8 11 72.73%
pkg/host/mock/mock_host.go 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
controllers/drain_controller_helper.go 1 63.59%
controllers/drain_controller.go 3 78.57%
controllers/generic_network_controller.go 5 74.38%
Totals Coverage Status
Change from base Build 12557982099: 0.02%
Covered Lines: 7211
Relevant Lines: 15257

💛 - Coveralls

@@ -119,6 +119,9 @@ type System struct {
// +kubebuilder:validation:Enum=shared;exclusive
//RDMA subsystem. Allowed value "shared", "exclusive".
RdmaMode string `json:"rdmaMode,omitempty"`
// OVS config. It will be provided for ovs-vswitchd service as other_config option
// +kubebuilder:default:= "hw-offload=true"
OvsConfig string `json:"ovsConfig,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use map[string]string here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would like to support all available options, so this syntax will allow us to easly provide options like other-config:mtu!=1500

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would like to support all available options, so this syntax will allow us to easly provide options like other-config:mtu!=1500

do we have a usecase for that for openvswitch table ?

api/v1/sriovnetworkpoolconfig_types.go Outdated Show resolved Hide resolved
@adrianchiris
Copy link
Collaborator

adrianchiris commented Jan 2, 2025

So, here are my thoughts on this one:

we should use same API as we have in OVSBridgeConfig e.g have OVSGlobalConfig in the pool config object
for now we can allow to set other_config keys only.

in addition we should support clearing any global configurations which were set but are not relevant anymore.
this can be done by checking the last applied status we cache or by saving which keys were set by the operator in a special key part of openvswitch table external_ids e.g external_ids:sriov-operator-owned-keys

the ExecPre we got for the systemd service of openvswitch would need to be a bit more complex to achieve that.

i wonder if we want a design doc for this one WDYT ?

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.

4 participants