Skip to content

Commit f3754a5

Browse files
merge main (opte 40, type moves, omdb multicast feature)
2 parents 98d274e + 3b51608 commit f3754a5

120 files changed

Lines changed: 1853 additions & 1808 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/buildomat/jobs/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "helios / deploy"
44
#: variety = "basic"
5-
#: target = "lab-2.0-opte-0.39"
5+
#: target = "lab-2.0-opte-0.40"
66
#: output_rules = [
77
#: "%/var/svc/log/oxide-*.log*",
88
#: "%/zone/oxz_*/root/var/svc/log/oxide-*.log*",

Cargo.lock

Lines changed: 13 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ ntp-admin-api = { path = "ntp-admin/api" }
599599
ntp-admin-client = { path = "clients/ntp-admin-client" }
600600
ntp-admin-types = { path = "ntp-admin/types" }
601601
ntp-admin-types-versions = { path = "ntp-admin/types/versions" }
602-
mg-admin-client = { git = "https://github.com/oxidecomputer/maghemite", rev = "58a19139aa83aa31e3e1ac84e68a678643433b57" }
603-
ddm-admin-client = { git = "https://github.com/oxidecomputer/maghemite", rev = "58a19139aa83aa31e3e1ac84e68a678643433b57" }
602+
mg-admin-client = { git = "https://github.com/oxidecomputer/maghemite", rev = "4d1f20f793da102b29b914569725ebc9fdf746dd" }
603+
ddm-admin-client = { git = "https://github.com/oxidecomputer/maghemite", rev = "4d1f20f793da102b29b914569725ebc9fdf746dd" }
604604
multimap = "0.10.1"
605605
nexus-auth = { path = "nexus/auth" }
606606
nexus-background-task-interface = { path = "nexus/background-task-interface" }
@@ -662,7 +662,7 @@ omicron-workspace-hack = "0.1.0"
662662
omicron-zone-package = "0.12.2"
663663
oxide-client = { path = "clients/oxide-client" }
664664
oxide-tokio-rt = "0.1.4"
665-
oxide-vpc = { git = "https://github.com/oxidecomputer/opte", rev = "e547d07b08c3f3d6c821c9eb7a958adcffce6e56", features = [ "api", "std" ] }
665+
oxide-vpc = { git = "https://github.com/oxidecomputer/opte", rev = "bae0440c199b3908c12903a9532854936353433b", features = [ "api", "std" ] }
666666
oxlog = { path = "dev-tools/oxlog" }
667667
oxnet = "0.1.4"
668668
once_cell = "1.21.3"
@@ -671,7 +671,7 @@ openapiv3 = "2.2.0"
671671
# must match samael's crate!
672672
openssl = "0.10"
673673
openssl-sys = "0.9"
674-
opte-ioctl = { git = "https://github.com/oxidecomputer/opte", rev = "e547d07b08c3f3d6c821c9eb7a958adcffce6e56" }
674+
opte-ioctl = { git = "https://github.com/oxidecomputer/opte", rev = "bae0440c199b3908c12903a9532854936353433b" }
675675
oso = "0.27"
676676
owo-colors = "4.2.2"
677677
oximeter = { path = "oximeter/oximeter" }
@@ -737,7 +737,7 @@ rats-corim = { git = "https://github.com/oxidecomputer/rats-corim.git", rev = "f
737737
raw-cpuid = { git = "https://github.com/oxidecomputer/rust-cpuid.git", rev = "a4cf01df76f35430ff5d39dc2fe470bcb953503b" }
738738
rayon = "1.10"
739739
rcgen = "0.12.1"
740-
rdb-types = { git = "https://github.com/oxidecomputer/maghemite", rev = "58a19139aa83aa31e3e1ac84e68a678643433b57" }
740+
rdb-types = { git = "https://github.com/oxidecomputer/maghemite", rev = "4d1f20f793da102b29b914569725ebc9fdf746dd" }
741741
reconfigurator-cli = { path = "dev-tools/reconfigurator-cli" }
742742
reedline = "0.40.0"
743743
ref-cast = "1.0"

clients/nexus-client/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ reqwest = { workspace = true, features = ["rustls", "stream"] }
2222
schemars.workspace = true
2323
serde.workspace = true
2424
serde_json.workspace = true
25+
sled-agent-types-versions.workspace = true
26+
sled-agent-types.workspace = true
2527
slog.workspace = true
2628
uuid.workspace = true

clients/nexus-client/src/lib.rs

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ progenitor::generate_api!(
2929
Generation = omicron_common::api::external::Generation,
3030
MacAddr = omicron_common::api::external::MacAddr,
3131
Name = omicron_common::api::external::Name,
32-
NetworkInterface = omicron_common::api::internal::shared::NetworkInterface,
33-
NetworkInterfaceKind = omicron_common::api::internal::shared::NetworkInterfaceKind,
32+
NetworkInterface = sled_agent_types::inventory::NetworkInterface,
33+
NetworkInterfaceKind = sled_agent_types::inventory::NetworkInterfaceKind,
3434
},
3535
patch = {
3636
SledAgentInfo = { derives = [PartialEq, Eq] },
@@ -72,9 +72,11 @@ impl From<types::DiskState> for omicron_common::api::external::DiskState {
7272
}
7373
}
7474

75-
impl From<omicron_common::api::internal::nexus::VmmState> for types::VmmState {
76-
fn from(s: omicron_common::api::internal::nexus::VmmState) -> Self {
77-
use omicron_common::api::internal::nexus::VmmState as Input;
75+
impl From<sled_agent_types_versions::v1::instance::VmmState>
76+
for types::VmmState
77+
{
78+
fn from(s: sled_agent_types_versions::v1::instance::VmmState) -> Self {
79+
use sled_agent_types_versions::v1::instance::VmmState as Input;
7880
match s {
7981
Input::Starting => types::VmmState::Starting,
8082
Input::Running => types::VmmState::Running,
@@ -88,9 +90,11 @@ impl From<omicron_common::api::internal::nexus::VmmState> for types::VmmState {
8890
}
8991
}
9092

91-
impl From<types::VmmState> for omicron_common::api::internal::nexus::VmmState {
93+
impl From<types::VmmState>
94+
for sled_agent_types_versions::v1::instance::VmmState
95+
{
9296
fn from(s: types::VmmState) -> Self {
93-
use omicron_common::api::internal::nexus::VmmState as Output;
97+
use sled_agent_types_versions::v1::instance::VmmState as Output;
9498
match s {
9599
types::VmmState::Starting => Output::Starting,
96100
types::VmmState::Running => Output::Running,
@@ -104,10 +108,12 @@ impl From<types::VmmState> for omicron_common::api::internal::nexus::VmmState {
104108
}
105109
}
106110

107-
impl From<omicron_common::api::internal::nexus::VmmRuntimeState>
111+
impl From<sled_agent_types_versions::v1::instance::VmmRuntimeState>
108112
for types::VmmRuntimeState
109113
{
110-
fn from(s: omicron_common::api::internal::nexus::VmmRuntimeState) -> Self {
114+
fn from(
115+
s: sled_agent_types_versions::v1::instance::VmmRuntimeState,
116+
) -> Self {
111117
Self {
112118
gen_: s.generation,
113119
state: s.state.into(),
@@ -116,10 +122,10 @@ impl From<omicron_common::api::internal::nexus::VmmRuntimeState>
116122
}
117123
}
118124

119-
impl From<omicron_common::api::internal::nexus::SledVmmState>
125+
impl From<sled_agent_types_versions::v1::instance::SledVmmState>
120126
for types::SledVmmState
121127
{
122-
fn from(s: omicron_common::api::internal::nexus::SledVmmState) -> Self {
128+
fn from(s: sled_agent_types_versions::v1::instance::SledVmmState) -> Self {
123129
Self {
124130
vmm_state: s.vmm_state.into(),
125131
migration_in: s.migration_in.map(Into::into),
@@ -128,11 +134,11 @@ impl From<omicron_common::api::internal::nexus::SledVmmState>
128134
}
129135
}
130136

131-
impl From<omicron_common::api::internal::nexus::MigrationRuntimeState>
137+
impl From<sled_agent_types_versions::v1::instance::MigrationRuntimeState>
132138
for types::MigrationRuntimeState
133139
{
134140
fn from(
135-
s: omicron_common::api::internal::nexus::MigrationRuntimeState,
141+
s: sled_agent_types_versions::v1::instance::MigrationRuntimeState,
136142
) -> Self {
137143
Self {
138144
migration_id: s.migration_id,
@@ -143,11 +149,13 @@ impl From<omicron_common::api::internal::nexus::MigrationRuntimeState>
143149
}
144150
}
145151

146-
impl From<omicron_common::api::internal::nexus::MigrationState>
152+
impl From<sled_agent_types_versions::v1::instance::MigrationState>
147153
for types::MigrationState
148154
{
149-
fn from(s: omicron_common::api::internal::nexus::MigrationState) -> Self {
150-
use omicron_common::api::internal::nexus::MigrationState as Input;
155+
fn from(
156+
s: sled_agent_types_versions::v1::instance::MigrationState,
157+
) -> Self {
158+
use sled_agent_types_versions::v1::instance::MigrationState as Input;
151159
match s {
152160
Input::Pending => Self::Pending,
153161
Input::InProgress => Self::InProgress,

clients/nexus-lockstep-client/src/lib.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ progenitor::generate_api!(
5656
MacAddr = omicron_common::api::external::MacAddr,
5757
MgsUpdateDriverStatus = nexus_types::internal_api::views::MgsUpdateDriverStatus,
5858
Name = omicron_common::api::external::Name,
59-
NetworkInterface = omicron_common::api::internal::shared::NetworkInterface,
60-
NetworkInterfaceKind = omicron_common::api::internal::shared::NetworkInterfaceKind,
59+
NetworkInterface = sled_agent_types::inventory::NetworkInterface,
60+
NetworkInterfaceKind = sled_agent_types::inventory::NetworkInterfaceKind,
6161
NewPasswordHash = omicron_passwords::NewPasswordHash,
6262
OximeterReadMode = nexus_types::deployment::OximeterReadMode,
6363
OximeterReadPolicy = nexus_types::deployment::OximeterReadPolicy,
@@ -140,12 +140,10 @@ impl From<omicron_common::address::Ipv6Range> for types::Ipv6Range {
140140
}
141141
}
142142

143-
impl From<&omicron_common::api::internal::shared::SourceNatConfigGeneric>
143+
impl From<&sled_agent_types::inventory::SourceNatConfigGeneric>
144144
for types::SourceNatConfigGeneric
145145
{
146-
fn from(
147-
r: &omicron_common::api::internal::shared::SourceNatConfigGeneric,
148-
) -> Self {
146+
fn from(r: &sled_agent_types::inventory::SourceNatConfigGeneric) -> Self {
149147
let (first_port, last_port) = r.port_range_raw();
150148
Self { ip: r.ip, first_port, last_port }
151149
}

0 commit comments

Comments
 (0)