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
{{ message }}
Repository navigation
dpd, MGS APIs marked server-side-versioned, but that's not valid #9708
Make it client-side-versioned and fully implement RFD 567 (client-side-versioning).
Split this API into two: one that's server-side-versioned and used by Nexus; and one that's client-side-versioned and used by Sled Agent.
Pro: Nexus can still treat this as server-side-versioned.
Pro: Clearly reflects two different interfaces with different stability.
Con: Duplication at the API layer (two APIs with overlapping endpoints and types and not necessarily the same types). This probably wouldn't be too bad at first, but it could get unwieldy over time.
This would only make sense if Sled Agent likely doesn't need new API versions from Dendrite. For example, if we keep rev'ing these APIs, but can still provide a compatible "shim" for sled agent indefinitely and it doesn't need the new parts, then this would work. But if it did need the new parts (say, new required arguments), this won't help. That said, it can't work at all for sled agent to need the new parts in the same release they're shipped precisely because old sled agents still exist talking to new dpd during an online update.
Update ls-apis (and the dropshot-api-manager? not sure if it cares) to support the idea that edges are determined to be server-side-versioned vs. client-side-versioned, rather than APIs themselves. The idea here would be that we don't need to have two different APIs, but the tool understands that Sled Agent treats it as client-side-versioned and Nexus treats it as server-side-versioned.
I'm increasingly convinced that we probably should do RFD 567, but that's also going to take time. Either of the other two options may buy us time here. But neither of those can solve the problem of actually wanting to ship changes to the Dendrite API in the same release that new Sled Agents use them. Only RFD 567 can do that.
changed the title [-]`dpd` API marked server-side-versioned, but that's not valid[/-][+]dpd, MGS APIs marked server-side-versioned, but that's not valid[/+]on Jan 22, 2026
ddmd runs in both the global zone and the switch zone. The switch zone is
configured with dpd_host=[::1] (services.rs:3127). The global zone configures
"dendrite" to false, meaning it does not expose a dendrite server
(ddm/manifest.xml:25).
/// Create a new Dendrite/dpd client. The lower half always runs on the same/// host/zone as the underlying platform.pub(crate)fnnew_dpd_client(log:&Logger) -> DpdClient{let client_state = dpd_client::ClientState{tag:MG_LOWER_TAG.into(),log: log.clone(),};DpdClient::new(&format!("http://localhost:{}", dpd_client::default_port()),
client_state,)}
mgd -> gateway-client
Server:mgd Client:gateway-client
Note
mgd defaults to [::1]:12225 (mgd main.rs:93), and the SMF start script doesn't
set --mgs-addr.
/// SocketAddr the MGS service is listening on.#[arg(long, default_value = "[::1]:12225")]
mgs_addr:SocketAddr,
maghemite/smf/mgd/manifest.xml (no mgs_addr property):
The SMF manifest does not define an mgs_addr property.
maghemite/smf/mgd_method_script.sh:30-37 (no --mgs-addr):
if [[ -e /opt/oxide/mgd/bin/mgd ]];then# mgd.tar.gz gets the binaries at /opt/oxide/mgd/bin/exec /opt/oxide/mgd/bin/mgd run --with-stats "${args[@]}"elif [[ -e /opt/oxide/mgd/mgd ]];then# maghemite.tar gets the binaries at /opt/oxide/mgd/exec /opt/oxide/mgd/mgd run --with-stats "${args[@]}"
omicron-sled-agent -> ddm-admin-client
Server:omicron-sled-agent Client:ddm-admin-client
Note
Sled Agent uses Client::localhost() to connect to ddm.
let mgd = MgdClient::new(&format!("http://{}",&SocketAddrV6::new(switch_zone_underlay_ip,MGD_PORT,0,0)),self.log.clone(),);
The switch_zone_underlay_ip is the local switch zone's IP, which is part of
the same deployment unit.
omicron-sled-agent -> propolis-client
Server:omicron-sled-agent Client:propolis-client
Note
Unsure: it looks like this only queries the Propolis server out of the same
deployment unit?
// We use a custom client builder here because the default progenitor// one has a timeout of 15s but we want to be able to wait indefinitely.let reqwest_client = reqwest::ClientBuilder::new().build().unwrap();let client = Arc::new(PropolisClient::new_with_client(&format!("http://{}",&self.propolis_addr),
reqwest_client,));
The propolis_addr is the address of the Propolis server running on the same
sled, part of the same deployment unit (Host OS).
omicron-sled-agent -> gateway-client (bug)
Server:omicron-sled-agent Client:gateway-client
Note
bug: Sled Agent creates two MGS clients. One of them (early_networking.rs:376)
queries the switch zone on the same sled, which is within the same deployment
unit as the global zone, so this is okay.
The other one (early_networking.rs:277) queries both switch zones, so it crosses
deployment units. This needs to be fixed.
let dpd_clients:Vec<DpdClient> = uplinked_switch_zone_addrs
.iter().map(|addr| {DpdClient::new(&format!("http://[{}]:{}", addr,DENDRITE_PORT),
dpd_client::ClientState{tag:"sled-agent".to_string(),log:self.inner.log.new(o!("component" => "DpdClient")),},)}).collect();
The uplinked_switch_zone_addrs includes addresses from potentially both switch
zones, crossing deployment unit boundaries.
tfportd -> dpd-client
Server:tfportd Client:dpd-client
Note
The tfportd service has the dpd_host SMF property (tfport.xml:52) set to [::1] (services.rs:2852). tfportd has a --dpd-host option (main.rs:81) but
the SMF start script (svc-tfportd:12) does not use it.
asyncfnmake_ddm_admin_client(log:&Logger) -> DdmAdminClient{constDDM_CONSTRUCT_RETRY:Duration = Duration::from_secs(1);// We don't really expect this to fail ever, so just keep retrying// indefinitely if it does.loop{matchDdmAdminClient::localhost(log){
ok(client) => return client,Err(err) => {warn!(
log,"Failed to construct DdmAdminClient";"err" => #%err,);
tokio::time::sleep(DDM_CONSTRUCT_RETRY).await;}}}}
let dpd_client = DpdClient::new(&format!("http://[::1]:{DENDRITE_PORT}"),DpdClientState{tag:WICKETD_TAG.to_string(),log: log.new(o!("component" => "DpdClient")),},);
wicketd -> gateway-client
Server:wicketd Client:gateway-client
Note
wicketd's mgs-address config (wicketd.rs:35) is always set to [::1]
(services.rs:2586). This config is passed into wicketd at startup
(manifest.xml:20).
This connection is to the switch zone on the same host.
omicron-sled-agent -> propolis-client
(not entirely sure about this one, I think this is okay)
omicron-sled-agent -> gateway-client (bug)
Determined via code inspection.
omicron-sled-agent -> dpd-client (bug)
Determined via code inspection.
tfportd -> dpd-client
# dpd_host is set to [::1].root@oxz_switch0:~# svcprop -p config/dpd_host svc:/oxide/tfport:default[::1]
# The process doesn't have --dpd-host passed in.root@oxz_switch0:~# pargs $(pgrep -x tfportd)2027: /opt/oxide/dendrite/bin/tfportdargv[0]: /opt/oxide/dendrite/bin/tfportd
tfportd -> lldpd-client
This is hardcoded to use localhost.
wicketd -> ddm-admin-client
This is hardcoded to use localhost.
wicketd -> dpd-client
This is hardcoded to use localhost.
wicketd -> gateway-client
# mgs-address is set to localhost.root@oxz_switch0:~# svcprop -p config/mgs-address svc:/oxide/wicketd:default[::1]:12225
# Process arguments has [::1].root@oxz_switch0:~# pargs $(pgrep -x wicketd)1884: /opt/oxide/wicketd/bin/wicketd run /var/svc/manifest/site/wicketd/config.toml -argv[0]: /opt/oxide/wicketd/bin/wicketdargv[1]: runargv[2]: /var/svc/manifest/site/wicketd/config.tomlargv[3]: --addressargv[4]: [::1]:12226argv[5]: --artifact-addressargv[6]: [fdb0:a840:2504:195::2]:12227argv[7]: --mgs-addressargv[8]: [::1]:12225argv[9]: --nexus-proxy-addressargv[10]: [::]:12229argv[11]: --baseboard-fileargv[12]: /opt/oxide/baseboard.jsonargv[13]: --read-smf-config
In reviewing #9707, I went through all of the cases above myself to verify the analysis. I made a few notes (including some missed references to client creations), but nothing changed any of the outcomes. I made the changes directly to the metadata in this commit: a25117a
In summary:
dpd -> gateway_client: I added a note that the comment above the linked source explicitly says that we always want the local MGS. It's only ever different for testing.
omicron-sled-agent -> ddm-admin-client: Several source references were missed, but they all use Client::localhost() as well.
omicron-sled-agent -> propolis-client: I believe this one's fine because it's talking to a Propolis that it set up, on the same sled, so it's using a Propolis in the same deployment unit as itself.
omicron-sled-agent -> dpd-client: Added a note about the other use of this client that's okay because it's always the local switch zone.
In today's update sync, we discussed that the best solution here seems likely to be addressing #9700 and the next step is to discuss some ideas here with the networking folks.
This was resolved by #10167, which reworked all of this so that in the paths where Nexus or Sled Agent previously invoked MGS or DPD, that's now done by the corresponding scrimlets' Sled Agents. These are in the same deployment unit, meaning the "server-side-only" characterization is now accurate.
Activity
[-]`dpd` API marked server-side-versioned, but that's not valid[/-][+]dpd, MGS APIs marked server-side-versioned, but that's not valid[/+]davepacheco commentedon Jan 22, 2026
This applies to MGS, too, per #9707 (comment).
sunshowers commentedon Jan 23, 2026
Updated summary (2026-01-28):
Summary
ddmd -> dpd-client
Server:
ddmdClient:
dpd-clientNote
ddmd runs in both the global zone and the switch zone. The switch zone is
configured with
dpd_host=[::1](services.rs:3127). The global zone configures"dendrite" to false, meaning it does not expose a dendrite server
(ddm/manifest.xml:25).
Permalinks
Code
omicron/sled-agent/src/services.rs:3125-3133 (ddmd config in switch zone):
maghemite/smf/ddm/manifest.xml:21-27 (default config, dendrite=false):
dpd -> gateway-client
Server:
dpdClient:
gateway-clientNote
dpd defaults to
[::1]:MGS_PORT(switch_identifiers.rs:60), and the SMF startscript doesn't pass in
--mgs-address.Permalinks
Code
dendrite/dpd/src/switch_identifiers.rs:56-61 (default MGS address):
dendrite/dpd/misc/dpd.xml (SMF manifest, no mgs-address property):
The SMF manifest does not define an
mgs_addressproperty; the service uses thehardcoded default.
dendrite/tools/svc-dpd:21 (start script, no --mgs-address):
lldpd -> dpd-client
Server:
lldpdClient:
dpd-clientNote
lldpd defaults to localhost for dpd (dendrite.rs:194), and the SMF start script
doesn't pass in
--host.Permalinks
Code
lldp/lldpd/src/dendrite.rs:191-202 (default host is localhost):
lldp/lldpd/misc/lldpd.xml (no host property):
The SMF manifest does not define a
hostproperty for dpd.lldp/lldpd/misc/svc-lldpd:12 (start script, no --host):
mgd -> ddm-admin-client
Server:
mgdClient:
ddm-admin-clientNote
mg-lower hardcodes
localhost:8000.Permalinks
Code
maghemite/mg-lower/src/ddm.rs:109-111 (hardcoded localhost):
mgd -> dpd-client
Server:
mgdClient:
dpd-clientNote
mg-lower hardcodes localhost.
Permalinks
Code
maghemite/mg-lower/src/dendrite.rs:485-494 (hardcoded localhost):
mgd -> gateway-client
Server:
mgdClient:
gateway-clientNote
mgd defaults to
[::1]:12225(mgd main.rs:93), and the SMF start script doesn'tset
--mgs-addr.Permalinks
Code
maghemite/mgd/src/main.rs:92-94 (default mgs_addr):
maghemite/smf/mgd/manifest.xml (no mgs_addr property):
The SMF manifest does not define an
mgs_addrproperty.maghemite/smf/mgd_method_script.sh:30-37 (no --mgs-addr):
omicron-sled-agent -> ddm-admin-client
Server:
omicron-sled-agentClient:
ddm-admin-clientNote
Sled Agent uses
Client::localhost()to connect to ddm.Permalinks
Code
omicron/sled-agent/src/ddm_reconciler.rs:51-56:
omicron-sled-agent -> mg-admin-client
Server:
omicron-sled-agentClient:
mg-admin-clientNote
Sled Agent only queries the switch zone on the same sled, which is within the
same deployment unit as the global zone.
Permalinks
Code
omicron/sled-agent/src/bootstrap/early_networking.rs:483-489:
The
switch_zone_underlay_ipis the local switch zone's IP, which is part ofthe same deployment unit.
omicron-sled-agent -> propolis-client
Server:
omicron-sled-agentClient:
propolis-clientNote
Unsure: it looks like this only queries the Propolis server out of the same
deployment unit?
Permalinks
Code
omicron/sled-agent/src/instance.rs:2280-2286:
The
propolis_addris the address of the Propolis server running on the samesled, part of the same deployment unit (Host OS).
omicron-sled-agent -> gateway-client (bug)
Server:
omicron-sled-agentClient:
gateway-clientNote
bug: Sled Agent creates two MGS clients. One of them (early_networking.rs:376)
queries the switch zone on the same sled, which is within the same deployment
unit as the global zone, so this is okay.
The other one (early_networking.rs:277) queries both switch zones, so it crosses
deployment units. This needs to be fixed.
Permalinks
Code
omicron/sled-agent/src/bootstrap/early_networking.rs:376-378 (local switch zone, ok):
omicron/sled-agent/src/bootstrap/early_networking.rs:275-280 (queries BOTH switch zones, bug):
omicron-sled-agent -> dpd-client (bug)
Server:
omicron-sled-agentClient:
dpd-clientNote
bug: Sled Agent reaches out to both switch zones, which crosses deployment
units.
Permalinks
Code
omicron/sled-agent/src/services.rs:1090-1103:
The
uplinked_switch_zone_addrsincludes addresses from potentially both switchzones, crossing deployment unit boundaries.
tfportd -> dpd-client
Server:
tfportdClient:
dpd-clientNote
The tfportd service has the
dpd_hostSMF property (tfport.xml:52) set to[::1](services.rs:2852). tfportd has a--dpd-hostoption (main.rs:81) butthe SMF start script (svc-tfportd:12) does not use it.
Permalinks
Code
omicron/sled-agent/src/services.rs:2850-2860:
tfport_config = tfport_config .add_property( "dpd_host", "astring", &format!("[{}]", Ipv6Addr::LOCALHOST), ) .add_property( "dpd_port", "astring", &format!("{}", DENDRITE_PORT), );dendrite/tfportd/misc/tfport.xml:52-53:
dendrite/tfportd/src/main.rs:81-83:
dendrite/tools/svc-tfportd:12 (doesn't pass --dpd-host):
tfportd -> lldpd-client
Server:
tfportdClient:
lldpd-clientNote
tfportd hardcodes localhost for its lldpd-client (tfport.rs:88).
Permalinks
Code
dendrite/tfportd/src/tfport.rs:87-89:
wicketd -> ddm-admin-client
Server:
wicketdClient:
ddm-admin-clientNote
wicketd uses
DdmAdminClient::localhost()(bootstrap_addrs.rs:162).Permalinks
Code
omicron/wicketd/src/bootstrap_addrs.rs:156-172:
wicketd -> dpd-client
Server:
wicketdClient:
dpd-clientNote
wicketd hardcodes
[::1](uplink.rs:83).Permalinks
Code
omicron/wicketd/src/preflight_check/uplink.rs:82-88:
wicketd -> gateway-client
Server:
wicketdClient:
gateway-clientNote
wicketd's
mgs-addressconfig (wicketd.rs:35) is always set to[::1](services.rs:2586). This config is passed into wicketd at startup
(manifest.xml:20).
Permalinks
Code
omicron/sled-agent/src/services.rs:2685-2689:
omicron/wicketd/src/bin/wicketd.rs:35-37:
omicron/smf/wicketd/manifest.xml:19-21:
sunshowers commentedon Jan 29, 2026
Runtime verification
All verification done on sled 14 (switch 0) on the dogfood rack.
ddmd -> dpd-client
`pargs` output
Here, pid 672 is the process running in the global zone, and 1414 is the process running on the switch zone.
dpd -> gateway-client
lldpd -> dpd-client
mgd -> ddm-admin-client
This is hardcoded to use localhost.
mgd -> dpd-client
This is hardcoded to use localhost.
mgd -> gateway-client
omicron-sled-agent -> ddm-admin-client
This is hardcoded to use localhost.
omicron-sled-agent -> mg-admin-client
This connection is to the switch zone on the same host.
omicron-sled-agent -> propolis-client
(not entirely sure about this one, I think this is okay)
omicron-sled-agent -> gateway-client (bug)
Determined via code inspection.
omicron-sled-agent -> dpd-client (bug)
Determined via code inspection.
tfportd -> dpd-client
tfportd -> lldpd-client
This is hardcoded to use localhost.
wicketd -> ddm-admin-client
This is hardcoded to use localhost.
wicketd -> dpd-client
This is hardcoded to use localhost.
wicketd -> gateway-client
davepacheco commentedon Feb 7, 2026
In reviewing #9707, I went through all of the cases above myself to verify the analysis. I made a few notes (including some missed references to client creations), but nothing changed any of the outcomes. I made the changes directly to the metadata in this commit:
a25117a
In summary:
Client::localhost()as well.davepacheco commentedon Feb 17, 2026
In today's update sync, we discussed that the best solution here seems likely to be addressing #9700 and the next step is to discuss some ideas here with the networking folks.
davepacheco commentedon Sep 15, 2026
This was resolved by #10167, which reworked all of this so that in the paths where Nexus or Sled Agent previously invoked MGS or DPD, that's now done by the corresponding scrimlets' Sled Agents. These are in the same deployment unit, meaning the "server-side-only" characterization is now accurate.
the MGS API is server-side-versioned (#11489)