Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -773,11 +773,12 @@ progenitor-extras = "0.3.0"
# NOTE: if you change the pinned revision of the `bhyve_api` and propolis
# dependencies, you must also update the references in package-manifest.toml to
# match the new revision.
bhyve_api = { git = "https://github.com/oxidecomputer/propolis", rev = "3b60af56ed99c4497f02ac9fe014c76adfcf978b" }
propolis-api-types-versions = { git = "https://github.com/oxidecomputer/propolis", rev = "3b60af56ed99c4497f02ac9fe014c76adfcf978b" }
propolis_api_types = { git = "https://github.com/oxidecomputer/propolis", rev = "3b60af56ed99c4497f02ac9fe014c76adfcf978b" }
propolis-client = { git = "https://github.com/oxidecomputer/propolis", rev = "3b60af56ed99c4497f02ac9fe014c76adfcf978b" }
propolis-mock-server = { git = "https://github.com/oxidecomputer/propolis", rev = "3b60af56ed99c4497f02ac9fe014c76adfcf978b" }
# TODO(lif): before PR, get propolis#1217 merged and update commit here and in package-manifest.toml accordingly. this is just from that PR's branch
bhyve_api = { git = "https://github.com/oxidecomputer/propolis", rev = "4a5484f3bb0262eee92851bc91c3155a36f49daf" }
propolis-api-types-versions = { git = "https://github.com/oxidecomputer/propolis", rev = "4a5484f3bb0262eee92851bc91c3155a36f49daf" }
propolis_api_types = { git = "https://github.com/oxidecomputer/propolis", rev = "4a5484f3bb0262eee92851bc91c3155a36f49daf" }
propolis-client = { git = "https://github.com/oxidecomputer/propolis", rev = "4a5484f3bb0262eee92851bc91c3155a36f49daf" }
propolis-mock-server = { git = "https://github.com/oxidecomputer/propolis", rev = "4a5484f3bb0262eee92851bc91c3155a36f49daf" }
# NOTE: see above!
proptest = "1.11.0"
qorb = "0.4.1"
Expand Down
52 changes: 22 additions & 30 deletions end-to-end-tests/src/instance_launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ use anyhow::{Context as _, Result, ensure};
use omicron_test_utils::dev::poll::{CondCheckError, wait_for_condition};
use oxide_client::types::{
ByteCount, DiskBackend, DiskCreate, DiskSource, ExternalIp,
ExternalIpCreate, InstanceCpuCount, InstanceCreate, InstanceDiskAttachment,
InstanceNetworkInterfaceAttachment, InstanceState, IpVersion, PoolSelector,
SshKeyCreate,
ExternalIpCreate, InstanceDiskAttachment, InstanceState, IpVersion,
PoolSelector, SshKeyCreate,
};
use oxide_client::{ClientCurrentUserExt, ClientDisksExt, ClientInstancesExt};
use russh::keys::{
Expand Down Expand Up @@ -64,37 +63,30 @@ async fn instance_launch() -> Result<()> {
.clone();

eprintln!("create instance");
let instance_name = generate_name("instance")?;
let instance = ctx
.client
.instance_create()
.project(ctx.project_name.clone())
.body(InstanceCreate {
name: generate_name("instance")?,
description: String::new(),
hostname: "localshark".parse().unwrap(), // 🦈
memory: ByteCount(1024 * 1024 * 1024),
ncpus: InstanceCpuCount(2),
boot_disk: Some(InstanceDiskAttachment::Attach {
name: disk_name.clone(),
}),
disks: Vec::new(),
network_interfaces:
InstanceNetworkInterfaceAttachment::DefaultDualStack,
external_ips: vec![ExternalIpCreate::Ephemeral {
pool_selector: PoolSelector::Auto {
ip_version: Some(IpVersion::V4),
},
}],
user_data: String::new(),
ssh_public_keys: Some(vec![oxide_client::types::NameOrId::Name(
ssh_key_name.clone(),
)]),
start: true,
auto_restart_policy: Default::default(),
anti_affinity_groups: Vec::new(),
cpu_platform: None,
multicast_groups: Vec::new(),
enable_jumbo_frames: false,
.body_map(|builder| {
builder
.name(instance_name)
.description("")
.hostname("localshark")
.memory(ByteCount(1024 * 1024 * 1024))
.ncpus(2)
.boot_disk(Some(InstanceDiskAttachment::Attach {
name: disk_name.clone(),
}))
.external_ips(vec![ExternalIpCreate::Ephemeral {
pool_selector: PoolSelector::Auto {
ip_version: Some(IpVersion::V4),
},
}])
.ssh_public_keys(Some(vec![
oxide_client::types::NameOrId::Name(ssh_key_name.clone()),
]))
.start(true)
})
.send()
.await?;
Expand Down
Loading
Loading