Skip to content

Add ovn-monitor-all configuration option to ovn-controller#106

Open
goldberl wants to merge 1 commit intoopenstack-charmers:masterfrom
goldberl:bug/2138758-add-ovn-monitor-all
Open

Add ovn-monitor-all configuration option to ovn-controller#106
goldberl wants to merge 1 commit intoopenstack-charmers:masterfrom
goldberl:bug/2138758-add-ovn-monitor-all

Conversation

@goldberl
Copy link

This PR adds the option ovn-monitor-all to the OVN charm, allowing the operator to enable or disable monitoring of all records in the OVN_Southbound database by the ovn-controller.

  • Updated config.yaml to includeovn-monitor-all (default: false)
  • Updated lib/charms/ovn_charm.py to handle the option in configure_bridges()
  • Added unit tests

Closes-Bug: LP 2138758

@goldberl goldberl force-pushed the bug/2138758-add-ovn-monitor-all branch from 824dbc6 to 6c15dc2 Compare January 20, 2026 21:51
pinning to avoid data plane outage during the upgrade.
ovn-monitor-all:
type: boolean
default: false
Copy link
Contributor

Choose a reason for hiding this comment

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

In my opinion we should default to true, as we have found in our deployments it helps reduce CPU load. Will have to ask the OVN team for a review to see if they are Ok with that.

Copy link
Author

Choose a reason for hiding this comment

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

I changed it to true for now

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm bit split on this decision. I'm leaning slightly towards default false because:

  • It's cleaner to backport (i.e. existing deployment won't change their configuration on charm upgrade)
  • This option is not always more efficient. Only in deployments where the controller needs to monitor almost all SB objects anyway (ref)

Though I don't have strong opinion. Perhaps we could get @fnordahl to chime in.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Martin,

Yes, it might be best to leave False since this needs to be backported, then maybe we open a new PR to change to True going forward. We have now seen this setting be useful in multiple customer deployments, and believe being opinionated here will help to not have additional escalations. From what I can tell it is also the default in the RH installer.
Would welcome Frode's opinion.

Thanks,
-Brian

Copy link
Author

Choose a reason for hiding this comment

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

Okay changing it back to false for now

@goldberl goldberl force-pushed the bug/2138758-add-ovn-monitor-all branch from 6c15dc2 to 84d7aad Compare January 21, 2026 15:05
@goldberl goldberl requested a review from brianphaley January 21, 2026 15:07
pinning to avoid data plane outage during the upgrade.
ovn-monitor-all:
type: boolean
default: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Martin,

Yes, it might be best to leave False since this needs to be backported, then maybe we open a new PR to change to True going forward. We have now seen this setting be useful in multiple customer deployments, and believe being opinionated here will help to not have additional escalations. From what I can tell it is also the default in the RH installer.
Would welcome Frode's opinion.

Thanks,
-Brian

@goldberl goldberl force-pushed the bug/2138758-add-ovn-monitor-all branch from 84d7aad to c761d4c Compare January 21, 2026 21:44
This commit adds the option 'ovn-monitor-all' to the OVN
charm, allowing the operator to enable or disable monitoring of all
records in the OVN_Southbound database by the ovn-controller.

- Updated config.yaml to include 'ovn-monitor-all' (default: false)
- Updated lib/charms/ovn_charm.py to handle the option in
  configure_bridges()
- Added unit tests

Closes-Bug: 2138758
@goldberl goldberl force-pushed the bug/2138758-add-ovn-monitor-all branch from c761d4c to 0a881e5 Compare January 21, 2026 21:45
@brianphaley brianphaley requested a review from fnordahl January 21, 2026 22:53
Copy link
Contributor

@brianphaley brianphaley left a comment

Choose a reason for hiding this comment

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

LGTM. Added Frode as reviewer.

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.

3 participants