You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OVN exporter no longer connects to or depends on the Open vSwitch
database. All identity and version labels now come from local sources
and the OVN Northbound/Southbound databases that the exporter already
talks to.
ovn_info labels:
- kept: system_id, hostname, system_type, system_version
- dropped: rundir, ovs_version, db_version
- added: nb_schema_version, sb_schema_version
Sources:
- system_id and hostname come from os.Hostname()
- system_type and system_version come from /etc/os-release
(fall back to "unknown" if the file is missing)
- nb_schema_version and sb_schema_version come from GetSchema()
on the NB and SB databases
Flags removed (unknown flag now errors at startup):
- system.run.dir
- database.vswitch.* (name, socket.remote, file.data.path,
file.log.path, file.pid.path,
file.system.id.path)
- service.vswitchd.* (file.log.path, file.pid.path)
Component lists for process probes, log file probes, and OVSDB
clustering queries no longer include plain "ovsdb-server" or
"ovs-vswitchd" -- only OVN NB/SB DB servers and ovn-northd remain.
Dashboards and the kolla-ansible contrib templates are updated to
match the new label set and no longer reference OVS container units.
go.mod pins github.com/lucadelmonte/ovsdb at the commit where
OvnClient.Connect() stops dialing the Open_vSwitch socket.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
flag.StringVar(&systemRunDir, "system.run.dir", "/var/run/openvswitch", "OVS default run directory.")
61
-
62
-
flag.StringVar(&databaseVswitchName, "database.vswitch.name", "Open_vSwitch", "The name of OVS db.")
63
-
flag.StringVar(&databaseVswitchSocketRemote, "database.vswitch.socket.remote", "unix:/var/run/openvswitch/db.sock", "JSON-RPC unix socket to OVS db.")
64
-
flag.StringVar(&databaseVswitchFileDataPath, "database.vswitch.file.data.path", "/etc/openvswitch/conf.db", "OVS db file.")
65
-
flag.StringVar(&databaseVswitchFileLogPath, "database.vswitch.file.log.path", "/var/log/openvswitch/ovsdb-server.log", "OVS db log file.")
66
-
flag.StringVar(&databaseVswitchFilePidPath, "database.vswitch.file.pid.path", "/var/run/openvswitch/ovsdb-server.pid", "OVS db process id file.")
67
-
flag.StringVar(&databaseVswitchFileSystemIDPath, "database.vswitch.file.system.id.path", "/etc/openvswitch/system-id.conf", "OVS system id file.")
68
-
69
51
flag.StringVar(&databaseNorthboundName, "database.northbound.name", "OVN_Northbound", "The name of OVN NB (northbound) db.")
70
52
flag.StringVar(&databaseNorthboundSocketRemote, "database.northbound.socket.remote", "unix:/run/openvswitch/ovnnb_db.sock", "JSON-RPC unix socket to OVN NB db.")
71
53
flag.StringVar(&databaseNorthboundSocketControl, "database.northbound.socket.control", "unix:/run/openvswitch/ovnnb_db.ctl", "JSON-RPC unix socket to OVN NB app.")
@@ -86,9 +68,6 @@ func main() {
86
68
flag.IntVar(&databaseSouthboundPortSsl, "database.southbound.port.ssl", 6632, "OVN SB db network socket secure port.")
87
69
flag.IntVar(&databaseSouthboundPortRaft, "database.southbound.port.raft", 6644, "OVN SB db network port for clustering (raft)")
flag.StringVar(&serviceVswitchdFilePidPath, "service.vswitchd.file.pid.path", "/var/run/openvswitch/ovs-vswitchd.pid", "OVS vswitchd daemon process id file.")
@@ -127,6 +124,6 @@ Both exporters complement each other for complete OVN/OVS visibility.
127
124
128
125
## Notes
129
126
130
-
- The systemd unit depends on `kolla-openvswitch_db-container.service`(required) and OVN containers (wanted)
131
-
-System information is queried directly from the OVS database - no manual system-id file needed
127
+
- The systemd unit depends on the OVN NB/SB DB containers (required) and the northd container (wanted); OVS is not required
128
+
-`system_id` and `hostname` labels are derived from `os.Hostname()`; `system_type`/`system_version` come from `/etc/os-release`; NB/SB schema versions come from the OVN databases
0 commit comments