Commit 34a5d87
Print version on startup for pantry and agent (#1723)
Added the same version printing on startup that the upstairs and
downstairs have to pantry and the agent.
Fixed a clippy lint in the upstairs.
Agent log looks like this now:
```
root@oxz_crucible_a22da429:~# cat /var/svc/log/oxide-crucible-agent:default.log | looker
[ May 28 16:53:10 Enabled. ]
[ May 28 16:53:10 Executing start method ("/opt/oxide/crucible/bin/crucible-agent run -D /opt/oxide/crucible/bin/crucible-downstairs --dataset oxp_243db6c1-e3d4-47cc-bd99-86c24b733e6e/crucible -l [fd00:1
122:3344:101::12]:32345 -P 19000 -p downstairs -s snapshot"). ]
note: configured to log to "/dev/stdout"
16:53:10.274Z INFO crucible-agent: Crucible Version: Crucible Version: 0.0.1
Commit SHA: dd892d4
Commit timestamp: 2025-05-27T20:18:55.000000000Z branch: alan/agent-needs-workers
rustc: 1.86.0 stable x86_64-unknown-illumos
Cargo: x86_64-unknown-illumos Debug: false Opt level: 3
16:53:10.282Z INFO crucible-agent: dataset: "oxp_243db6c1-e3d4-47cc-bd99-86c24b733e6e/crucible"
16:53:10.282Z INFO crucible-agent: listen IP: [fd00:1122:3344:101::12]:32345
16:53:10.282Z INFO crucible-agent: SMF instance name downstairs_prefix: "downstairs"
16:53:10.304Z INFO crucible-agent (datafile): Using conf_path:"/data/crucible.json"
16:53:10.346Z INFO crucible-agent (dropshot): listening
...
```
Co-authored-by: Alan Hanson <alan@oxide.computer>1 parent ad7f539 commit 34a5d87
3 files changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | | - | |
| 1393 | + | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | 1396 | | |
| |||
1522 | 1522 | | |
1523 | 1523 | | |
1524 | 1524 | | |
1525 | | - | |
1526 | 1525 | | |
1527 | 1526 | | |
1528 | 1527 | | |
| |||
1578 | 1577 | | |
1579 | 1578 | | |
1580 | 1579 | | |
1581 | | - | |
| 1580 | + | |
1582 | 1581 | | |
1583 | 1582 | | |
1584 | 1583 | | |
| |||
1601 | 1600 | | |
1602 | 1601 | | |
1603 | 1602 | | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
| 1603 | + | |
1607 | 1604 | | |
1608 | 1605 | | |
1609 | 1606 | | |
| |||
0 commit comments