Skip to content

dpd, MGS APIs marked server-side-versioned, but that's not valid #9708

Closed

Description

@davepacheco

See #9704.

There are a few paths here, not wholly exclusive:

  • 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.

Activity

  1. 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
  2. davepacheco commented on Jan 22, 2026

    @davepacheco
    CollaboratorAuthor

    This applies to MGS, too, per #9707 (comment).

  3. sunshowers commented on Jan 23, 2026

    @sunshowers
    Contributor

    Updated summary (2026-01-28):

    Summary

    Server Client Status
    ddmd dpd-client ok
    dpd gateway-client ok
    lldpd dpd-client ok
    mgd ddm-admin-client ok
    mgd dpd-client ok
    mgd gateway-client ok
    omicron-sled-agent ddm-admin-client ok
    omicron-sled-agent mg-admin-client ok
    omicron-sled-agent propolis-client unsure
    omicron-sled-agent gateway-client bug
    omicron-sled-agent dpd-client bug
    tfportd dpd-client ok
    tfportd lldpd-client ok
    wicketd ddm-admin-client ok
    wicketd dpd-client ok
    wicketd gateway-client ok

    ddmd -> dpd-client

    Server: ddmd
    Client: dpd-client

    Note

    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):

    if is_oxide_sled {
        mg_ddm_config = mg_ddm_config
            .add_property("dpd_host", "astring", "[::1]")
            .add_property(
                "dpd_port",
                "astring",
                &DENDRITE_PORT.to_string(),
            )
    }

    maghemite/smf/ddm/manifest.xml:21-27 (default config, dendrite=false):

    <property_group name='config' type='application'>
       <propval name='admin_host' type='astring' value='::1' />
       <propval name='admin_port' type='count' value='8000' />
       <propval name='mode' type='astring' value='server' />
       <propval name='dendrite' type='boolean' value='false' />
       <propval name='dpd_host' type='astring' value='' />
       <propval name='dpd_port' type='astring' value='' />

    dpd -> gateway-client

    Server: dpd
    Client: gateway-client

    Note

    dpd defaults to [::1]:MGS_PORT (switch_identifiers.rs:60), and the SMF start
    script doesn't pass in --mgs-address.

    Permalinks

    Code

    dendrite/dpd/src/switch_identifiers.rs:56-61 (default MGS address):

    let mgs_socketaddr = switch.config.lock().unwrap().mgs_address;
    
    let url = match mgs_socketaddr {
        Some(socket_addr) => format!("http://{socket_addr}"),
        None => format!("http://[::1]:{MGS_PORT}"),
    };

    dendrite/dpd/misc/dpd.xml (SMF manifest, no mgs-address property):

    The SMF manifest does not define an mgs_address property; the service uses the
    hardcoded default.

    dendrite/tools/svc-dpd:21 (start script, no --mgs-address):

    env LD_LIBRARY_PATH=$SDE/lib:$P4_DIR/lib P4_DIR=$P4_DIR ${ROOT}/bin/dpd run &

    lldpd -> dpd-client

    Server: lldpd
    Client: dpd-client

    Note

    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):

    pub async fn dpd_init(
        log: &slog::Logger,
        opts: crate::Opt,
    ) -> Option<dpd_client::Client> {
        if opts.no_dpd {
            None
        } else {
            let host = opts.host.unwrap_or_else(|| "localhost".to_string());
            let port = opts.port.unwrap_or(dpd_client::default_port());
            info!(log, "connecting to dpd at {host}:{port}");
            // ...
        }
    }

    lldp/lldpd/misc/lldpd.xml (no host property):

    The SMF manifest does not define a host property for dpd.

    lldp/lldpd/misc/svc-lldpd:12 (start script, no --host):

    ${ROOT}/bin/lldpd run &

    mgd -> ddm-admin-client

    Server: mgd
    Client: ddm-admin-client

    Note

    mg-lower hardcodes localhost:8000.

    Permalinks

    Code

    maghemite/mg-lower/src/ddm.rs:109-111 (hardcoded localhost):

    pub(crate) fn new_ddm_client(log: &Logger) -> Client {
        Client::new("http://localhost:8000", log.clone())
    }

    mgd -> dpd-client

    Server: mgd
    Client: dpd-client

    Note

    mg-lower hardcodes localhost.

    Permalinks

    Code

    maghemite/mg-lower/src/dendrite.rs:485-494 (hardcoded localhost):

    /// Create a new Dendrite/dpd client. The lower half always runs on the same
    /// host/zone as the underlying platform.
    pub(crate) fn new_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.

    Permalinks

    Code

    maghemite/mgd/src/main.rs:92-94 (default 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.

    Permalinks

    Code

    omicron/sled-agent/src/ddm_reconciler.rs:51-56:

    pub fn new(
        bootstrap_subnet: Ipv6Subnet<SLED_PREFIX>,
        base_log: &Logger,
    ) -> Result<Self, DdmError> {
        let client = Client::localhost(base_log)?;
        // ...
    }

    omicron-sled-agent -> mg-admin-client

    Server: omicron-sled-agent
    Client: mg-admin-client

    Note

    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:

    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?

    Permalinks

    Code

    omicron/sled-agent/src/instance.rs:2280-2286:

    // 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.

    Permalinks

    Code

    omicron/sled-agent/src/bootstrap/early_networking.rs:376-378 (local switch zone, ok):

    let mgs_client = MgsClient::new(
        &format!("http://[{}]:{}", switch_zone_underlay_ip, MGS_PORT),
        self.log.new(o!("component" => "MgsClient")),
    );

    omicron/sled-agent/src/bootstrap/early_networking.rs:275-280 (queries BOTH switch zones, bug):

    let mgs_query_futures =
        switch_zone_addrs.iter().copied().map(|addr| async move {
            let mgs_client = MgsClient::new(
                &format!("http://[{}]:{}", addr, MGS_PORT),
                self.log.new(o!("component" => "MgsClient")),
            );

    omicron-sled-agent -> dpd-client (bug)

    Server: omicron-sled-agent
    Client: dpd-client

    Note

    bug: Sled Agent reaches out to both switch zones, which crosses deployment
    units.

    Permalinks

    Code

    omicron/sled-agent/src/services.rs:1090-1103:

    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.

    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:

    <propval name='dpd_host' type='astring' value='unknown' />
    <propval name='dpd_port' type='astring' value='unknown' />

    dendrite/tfportd/src/main.rs:81-83:

    /// dpd host name/addr
    #[clap(long)]
    dpd_host: Option<String>,

    dendrite/tools/svc-tfportd:12 (doesn't pass --dpd-host):

    ${ROOT}/bin/tfportd &

    tfportd -> lldpd-client

    Server: tfportd
    Client: lldpd-client

    Note

    tfportd hardcodes localhost for its lldpd-client (tfport.rs:88).

    Permalinks

    Code

    dendrite/tfportd/src/tfport.rs:87-89:

    let client = lldpd_client::Client::new(
        &format!("http://localhost:{}", lldpd_client::default_port()),
        log.clone(),
    );

    wicketd -> ddm-admin-client

    Server: wicketd
    Client: ddm-admin-client

    Note

    wicketd uses DdmAdminClient::localhost() (bootstrap_addrs.rs:162).

    Permalinks

    Code

    omicron/wicketd/src/bootstrap_addrs.rs:156-172:

    async fn make_ddm_admin_client(log: &Logger) -> DdmAdminClient {
        const DDM_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 {
            match DdmAdminClient::localhost(log) {
                ok(client) => return client,
                Err(err) => {
                    warn!(
                        log, "Failed to construct DdmAdminClient";
                        "err" => #%err,
                    );
                    tokio::time::sleep(DDM_CONSTRUCT_RETRY).await;
                }
            }
        }
    }

    wicketd -> dpd-client

    Server: wicketd
    Client: dpd-client

    Note

    wicketd hardcodes [::1] (uplink.rs:83).

    Permalinks

    Code

    omicron/wicketd/src/preflight_check/uplink.rs:82-88:

    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).

    Permalinks

    Code

    omicron/sled-agent/src/services.rs:2685-2689:

    .add_property(
        "mgs-address",
        "astring",
        &format!("[::1]:{MGS_PORT}"),
    )

    omicron/wicketd/src/bin/wicketd.rs:35-37:

    /// The address (expected to be on localhost) for MGS
    #[clap(long, action)]
    mgs_address: SocketAddrV6,

    omicron/smf/wicketd/manifest.xml:19-21:

    <exec_method type='method' name='start'
        exec='ctrun -l child -o noorphan,regent /opt/oxide/wicketd/bin/wicketd run /var/svc/manifest/site/wicketd/config.toml --address %{config/address} --artifact-address %{config/artifact-address} --mgs-address %{config/mgs-address} --nexus-proxy-address %{config/nexus-proxy-address} --baseboard-file %{config/baseboard-file} --read-smf-config &amp;'
      timeout_seconds='0' />
  4. sunshowers commented on Jan 29, 2026

    @sunshowers
    Contributor

    Runtime verification

    All verification done on sled 14 (switch 0) on the dogfood rack.

    ddmd -> dpd-client

    # In switch zone: verify dpd_host is localhost and dendrite is enabled.
    root@oxz_switch0:~# svcprop -p config/dpd_host svc:/oxide/mg-ddm:default
    [::1]
    root@oxz_switch0:~# svcprop -p config/dendrite svc:/oxide/mg-ddm:default
    true
    
    # In global zone: verify dendrite is disabled.
    BRM42220051 # svcprop -p config/dendrite svc:/oxide/mg-ddm:default
    false
    
    # Process arguments:
    BRM42220051 # pargs $(pgrep -x ddmd)
    (see summary below)
    `pargs` output

    Here, pid 672 is the process running in the global zone, and 1414 is the process running on the switch zone.

    BRM42220051 # pargs $(pgrep -x ddmd)
    672:    /opt/oxide/mg-ddm/ddmd --with-stats --admin-port 8000 --admin-addr ::1 --kind s
    argv[0]: /opt/oxide/mg-ddm/ddmd
    argv[1]: --with-stats
    argv[2]: --admin-port
    argv[3]: 8000
    argv[4]: --admin-addr
    argv[5]: ::1
    argv[6]: --kind
    argv[7]: server
    argv[8]: -a
    argv[9]: cxgbe0/ll
    argv[10]: -a
    argv[11]: cxgbe1/ll
    argv[12]: --dns-servers
    argv[13]: unknown
    
    1414:   /opt/oxide/mg-ddm/bin/ddmd --with-stats --admin-port 8000 --admin-addr ::1 --ki
    argv[0]: /opt/oxide/mg-ddm/bin/ddmd
    argv[1]: --with-stats
    argv[2]: --admin-port
    argv[3]: 8000
    argv[4]: --admin-addr
    argv[5]: ::1
    argv[6]: --kind
    argv[7]: transit
    argv[8]: --dendrite
    argv[9]: --dpd-host
    argv[10]: [::1]
    argv[11]: --dpd-port
    argv[12]: 12224
    argv[13]: --rack-uuid
    argv[14]: de608e01-b8e4-4d93-b972-a7dbed36dd22
    argv[15]: --sled-uuid
    argv[16]: 71def415-55ad-46b4-ba88-3ca55d7fb287
    argv[17]: -a
    argv[18]: tfportrear0_0/ll
    argv[19]: -a
    argv[20]: tfportrear1_0/ll
    argv[21]: -a
    argv[22]: tfportrear2_0/ll
    argv[23]: -a
    argv[24]: tfportrear3_0/ll
    argv[25]: -a
    argv[26]: tfportrear4_0/ll
    argv[27]: -a
    argv[28]: tfportrear5_0/ll
    argv[29]: -a
    argv[30]: tfportrear6_0/ll
    argv[31]: -a
    argv[32]: tfportrear7_0/ll
    argv[33]: -a
    argv[34]: tfportrear8_0/ll
    argv[35]: -a
    argv[36]: tfportrear9_0/ll
    argv[37]: -a
    argv[38]: tfportrear10_0/ll
    argv[39]: -a
    argv[40]: tfportrear11_0/ll
    argv[41]: -a
    argv[42]: tfportrear12_0/ll
    argv[43]: -a
    argv[44]: tfportrear13_0/ll
    argv[45]: -a
    argv[46]: tfportrear14_0/ll
    argv[47]: -a
    argv[48]: tfportrear15_0/ll
    argv[49]: -a
    argv[50]: tfportrear16_0/ll
    argv[51]: -a
    argv[52]: tfportrear17_0/ll
    argv[53]: -a
    argv[54]: tfportrear18_0/ll
    argv[55]: -a
    argv[56]: tfportrear19_0/ll
    argv[57]: -a
    argv[58]: tfportrear20_0/ll
    argv[59]: -a
    argv[60]: tfportrear21_0/ll
    argv[61]: -a
    argv[62]: tfportrear22_0/ll
    argv[63]: -a
    argv[64]: tfportrear23_0/ll
    argv[65]: -a
    argv[66]: tfportrear24_0/ll
    argv[67]: -a
    argv[68]: tfportrear25_0/ll
    argv[69]: -a
    argv[70]: tfportrear26_0/ll
    argv[71]: -a
    argv[72]: tfportrear27_0/ll
    argv[73]: -a
    argv[74]: tfportrear28_0/ll
    argv[75]: -a
    argv[76]: tfportrear29_0/ll
    argv[77]: -a
    argv[78]: tfportrear30_0/ll
    argv[79]: -a
    argv[80]: tfportrear31_0/ll
    argv[81]: --dns-servers
    argv[82]: unknown
    

    dpd -> gateway-client

    # No mgs_address property exists.
    root@oxz_switch0:~# svccfg -s svc:/oxide/dendrite:default listprop config | grep -i mgs
    
    # Process arguments doesn't have --mgs-address.
    1957:   /opt/oxide/dendrite/bin/dpd run
    argv[0]: /opt/oxide/dendrite/bin/dpd
    argv[1]: run

    lldpd -> dpd-client

    # No host/port override properties.
    root@oxz_switch0:~# svccfg -s svc:/oxide/lldpd:default listprop config
    config                 application
    config/board_rev       astring  b
    config/scrimlet_id     astring  BRM42220051
    config/scrimlet_model  astring  913-0000019
    config/address         astring  "[fd00:1122:3344:10b::2]:12230" "[::1]:12230"
    
    # Process arguments doesn't have --host.
    root@oxz_switch0:~# pargs $(pgrep -x lldpd)
    1992:   /opt/oxide/bin/lldpd run
    argv[0]: /opt/oxide/bin/lldpd
    argv[1]: run

    mgd -> ddm-admin-client

    This is hardcoded to use localhost.


    mgd -> dpd-client

    This is hardcoded to use localhost.


    mgd -> gateway-client

    # No MGS address property exists.
    root@oxz_switch0:~# svccfg -s svc:/oxide/mgd:default listprop config
    config              application
    config/rack_uuid    astring  de608e01-b8e4-4d93-b972-a7dbed36dd22
    config/sled_uuid    astring  71def415-55ad-46b4-ba88-3ca55d7fb287
    config/dns_servers  astring  "[fd00:1122:3344:1::1]:53" "[fd00:1122:3344:2::1]:53" "[fd00:1122:3344:3::1]:53"
    
    # Process arguments doesn't have --mgs-addr.
    root@oxz_switch0:~# pargs $(pgrep -x mgd)
    1409:   /opt/oxide/mgd/bin/mgd run --with-stats --admin-port 4676 --admin-addr :: --rac
    argv[0]: /opt/oxide/mgd/bin/mgd
    argv[1]: run
    argv[2]: --with-stats
    argv[3]: --admin-port
    argv[4]: 4676
    argv[5]: --admin-addr
    argv[6]: ::
    argv[7]: --rack-uuid
    argv[8]: de608e01-b8e4-4d93-b972-a7dbed36dd22
    argv[9]: --sled-uuid
    argv[10]: 71def415-55ad-46b4-ba88-3ca55d7fb287
    argv[11]: --dns-servers
    argv[12]: unknown

    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

    # 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/tfportd
    argv[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/wicketd
    argv[1]: run
    argv[2]: /var/svc/manifest/site/wicketd/config.toml
    argv[3]: --address
    argv[4]: [::1]:12226
    argv[5]: --artifact-address
    argv[6]: [fdb0:a840:2504:195::2]:12227
    argv[7]: --mgs-address
    argv[8]: [::1]:12225
    argv[9]: --nexus-proxy-address
    argv[10]: [::]:12229
    argv[11]: --baseboard-file
    argv[12]: /opt/oxide/baseboard.json
    argv[13]: --read-smf-config
  5. davepacheco commented on Feb 7, 2026

    @davepacheco
    CollaboratorAuthor

    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.
  6. davepacheco commented on Feb 17, 2026

    @davepacheco
    CollaboratorAuthor

    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.

  7. davepacheco commented on Sep 15, 2026

    @davepacheco
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions