Skip to content

sled agent fails on startup looking for non-existent config-rss.toml #9051

@davepacheco

Description

@davepacheco

I believe that right now, sled agent on most real systems will fail on startup with:

[ Sep 19 15:47:38 Method "start" exited with status 0. ]
sled-agent: Failed to read config from /opt/oxide/sled-agent/pkg/config-rss.toml: No such file or directory (os error 2)

Caused by:
    No such file or directory (os error 2)
[ Sep 19 15:47:38 Stopping because all processes in service exited. ]
[ Sep 19 15:47:38 Executing stop method (:kill). ]
[ Sep 19 15:47:38 Restarting too quickly, changing state to maintenance. ]

Details coming. I think this was introduced yesterday in #9016 here:
https://github.com/oxidecomputer/omicron/pull/9016/files#diff-47887367c1e0816a1e9405c9e748d167c55abd5743fd02c55246ff0bd76e9ff9

Per @jgallagher, that then_some wants to be using then with a closure. As written, even if the file doesn't exist, it attempts to parse it and then bails out with the error.

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