Repository navigation
Omicron dev for simulating multiple racks (Just a Bunch of Racks / JBOR) - #9533
internet-diglett wants to merge 104 commits into
Conversation
|
Is this part of some plan for regional clusters we've figured out? |
Apologies for the confusion, this is primarily for allowing us to validate deployment configurations for multiple individual racks. I've updated the description accordingly. |
This change is primarily a part of a larger effort to make the switch zone services location aware by having them communicate with their local MGS. This is also required to allow us to deploy some form of the daemon in our test context in omicron. --- Related: * oxidecomputer/omicron#8999 * oxidecomputer/omicron#9533
rcgoodfellow
left a comment
There was a problem hiding this comment.
Thanks @internet-diglett. Comments follow
| pub const TFPORTD_PORT: u16 = 12231; | ||
| pub const NEXUS_INTERNAL_PORT: u16 = 12221; | ||
| pub const NEXUS_LOCKSTEP_PORT: u16 = 12232; | ||
| pub const BGP_LISTEN_PORT: u16 = 1049; |
There was a problem hiding this comment.
Is this because 179 requires privilege escalation so something higher than 1024 is used? A comment here would be good.
| eprintln!( | ||
| "omicron-dev: caught signal, shutting down and removing \ | ||
| temporary directory" | ||
| temporary directory" |
|
|
||
| for n in 0..self.peer_routers.0 { | ||
| let mgd_bgp_addr = | ||
| SocketAddr::new(Ipv4Addr::new(100, 64, 0, n + 1).into(), 1049); |
There was a problem hiding this comment.
Use BGP_LISTEN_PORT instead of 1049?
| ); | ||
|
|
||
| let router = mg_api_types::bgp::config::Router { | ||
| asn: 65100 + u32::from(n), |
There was a problem hiding this comment.
For those less familiar with BGP ASN numbers putting 65100 in a constant with a description would be helpful.
| .bind_address | ||
| .set_port(0); | ||
|
|
||
| config.deployment.dropshot_internal.bind_address.set_port(0); |
There was a problem hiding this comment.
Setting ports to zero here means auto assignment when these APIs come up?
There was a problem hiding this comment.
Correct. Since we are starting up multiple control planes, we need to have different ports for each copy of the service.
| enum OmicronDevCmd { | ||
| /// Run a full simulated control plane | ||
| RunAll(RunAllArgs), | ||
| /// Run multiple simulated control planes |
There was a problem hiding this comment.
Adding a note to the extended clap description that this command requires elevated privileges would be good. pfexec on illumos and probably sudo on linux if this is expected to work on linux.
| extra_sled_agents: u16, | ||
| gateway_config_file: Utf8PathBuf, | ||
| mgd_bgp_loopback: Arc<Mutex<loopback_ip_mgr::LoopbackIpManager>>, | ||
| mgd_bgp_addrs: BTreeMap<SwitchSlot, Ipv4Addr>, |
There was a problem hiding this comment.
I think BGP unnumbered on v6 link locals will be a pretty common use case here. Perhaps generalize to a case that can configure v4, regular v6 and link-local v6?
With customers managing large deployments of individual racks, it is useful to have a fast way to spin up multiple concurrent control planes with the related networking daemons for configuration validation. This also gives us an opportunity to address some of the issues noted in omicron#8999.
TODO
omicron-devor similar tool to enable deploying multiple copies of the control plane servicesmgdorfrr) to increase configuration testing fidelityAdd ability to ingest topology-quest` models to drive shape / initial configuration of "JBOR" deploymentRelated: #8999