Bug 2223578
| Summary: | [RFE] [OVN-IC] [Debugging] Enhance ovn-*bctl to connect across multiple sets of DBs | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Fast Datapath | Reporter: | Surya Seetharaman <surya> |
| Component: | OVN | Assignee: | OVN Team <ovnteam> |
| Status: | NEW --- | QA Contact: | Jianlin Shi <jishi> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | FDP 23.A | CC: | ctrautma, dcbw, jiji, mmichels |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Surya Seetharaman
2023-07-18 10:17:06 UTC
Wouldn't it be trivial to write a Go wrapper like: multi-ctl -p 9641 ovn-nbctl -p /ovn-cert/tls.key -c /ovn-cert/tls.crt -C /ovn-ca/ca-bundle.crt list Logical_Switch_Port which then (1) reads kAPI for list of nodes, grabs their internal address (or somehow gets the IP to use) (2) constructs an actual args list with argv but putting "--db=<node IP>:9641" into the list at the right place (3) optionally constructs a logfile path unique to each invocation, perhaps based on node name (4) starts N goroutines where N = # nodes; executes the *ctl util and writes output to named logfile (5) waits till they all finish (6) maybe tars up all the logfiles and gzips it I'd think it would be a lot easier in Go than in Bash or C. |