Skip to content

Commit

Permalink
Merge main into internal-dns-self-assembling-zone
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv committed Mar 7, 2024
2 parents 1cf8560 + 5620f9c commit 61795af
Show file tree
Hide file tree
Showing 17 changed files with 300 additions and 182 deletions.
2 changes: 1 addition & 1 deletion .github/buildomat/jobs/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ cd /opt/oxide/work

ptime -m tar xvzf /input/package/work/package.tar.gz
cp /input/package/work/zones/* out/
mv out/omicron-nexus-single-sled.tar.gz out/omicron-nexus.tar.gz
mv out/nexus-single-sled.tar.gz out/nexus.tar.gz
mkdir tests
for p in /input/ci-tools/work/end-to-end-tests/*.gz; do
ptime -m gunzip < "$p" > "tests/$(basename "${p%.gz}")"
Expand Down
6 changes: 3 additions & 3 deletions .github/buildomat/jobs/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ stamp_packages() {

# Keep the single-sled Nexus zone around for the deploy job. (The global zone
# build below overwrites the file.)
mv out/omicron-nexus.tar.gz out/omicron-nexus-single-sled.tar.gz
mv out/nexus.tar.gz out/nexus-single-sled.tar.gz

# Build necessary for the global zone
ptime -m cargo run --locked --release --bin omicron-package -- \
Expand Down Expand Up @@ -115,8 +115,8 @@ zones=(
out/crucible-zone.tar.gz
out/external-dns.tar.gz
out/internal-dns.tar.gz
out/omicron-nexus.tar.gz
out/omicron-nexus-single-sled.tar.gz
out/nexus.tar.gz
out/nexus-single-sled.tar.gz
out/oximeter.tar.gz
out/propolis-server.tar.gz
out/switch-*.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion .github/buildomat/jobs/tuf-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ target/release/omicron-package -t default target create -i standard -m gimlet -s
ln -s /input/package/work/zones/* out/
rm out/switch-softnpu.tar.gz # not used when target switch=asic
rm out/omicron-gateway-softnpu.tar.gz # not used when target switch=asic
rm out/omicron-nexus-single-sled.tar.gz # only used for deploy tests
rm out/nexus-single-sled.tar.gz # only used for deploy tests
for zone in out/*.tar.gz; do
target/release/omicron-package stamp "$(basename "${zone%.tar.gz}")" "$VERSION"
done
Expand Down
68 changes: 34 additions & 34 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ hex = "0.4.3"
hex-literal = "0.4.1"
highway = "1.1.0"
hkdf = "0.12.4"
http = "0.2.11"
http = "0.2.12"
httptest = "0.15.5"
hubtools = { git = "https://github.com/oxidecomputer/hubtools.git", branch = "main" }
humantime = "2.1.0"
Expand Down Expand Up @@ -336,7 +336,7 @@ rpassword = "7.3.1"
rstest = "0.18.2"
rustfmt-wrapper = "0.2"
rustls = "0.22.2"
rustls-pemfile = "2.1.0"
rustls-pemfile = "2.1.1"
rustyline = "13.0.0"
samael = { version = "0.0.14", features = ["xmlsec"] }
schemars = "0.8.16"
Expand Down
10 changes: 9 additions & 1 deletion illumos-utils/src/running_zone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ impl RunningZone {

/// Returns the filesystem path to the zone's root in the GZ.
pub fn root(&self) -> Utf8PathBuf {
self.inner.zonepath.join(Self::ROOT_FS_PATH)
self.inner.root()
}

pub fn control_interface(&self) -> AddrObject {
Expand Down Expand Up @@ -1094,6 +1094,9 @@ pub struct InstalledZone {
}

impl InstalledZone {
/// The path to the zone's root filesystem (i.e., `/`), within zonepath.
pub const ROOT_FS_PATH: &'static str = "root";

/// Returns the name of a zone, based on the base zone name plus any unique
/// identifying info.
///
Expand Down Expand Up @@ -1135,6 +1138,11 @@ impl InstalledZone {
pub fn opte_ports(&self) -> impl Iterator<Item = &Port> {
self.opte_ports.iter().map(|(port, _)| port)
}

/// Returns the filesystem path to the zone's root in the GZ.
pub fn root(&self) -> Utf8PathBuf {
self.zonepath.join(Self::ROOT_FS_PATH)
}
}

#[derive(Clone)]
Expand Down
Loading

0 comments on commit 61795af

Please sign in to comment.