Skip to content

Run sled-agent in its own project #5324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions .github/buildomat/jobs/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ pfexec chmod +x /usr/oxide/oxide
curl -sSfL -o debian-11-genericcloud-amd64.raw \
http://catacomb.eng.oxide.computer:12346/debian-11-genericcloud-amd64.raw

#
# Create the "omicron" project that sled-agent will inhabit.
#
projects -l omicron >/dev/null 2>&1 || \
pfexec projadd -c 'The Oxide Control Plane' omicron

#
# The lab-netdev target is a ramdisk system that is always cleared
# out between runs, so it has not had any state yet that requires
Expand Down
2 changes: 1 addition & 1 deletion smf/sled-agent/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<service_fmri value='svc:/system/t6init' />
</dependency>

<method_context>
<method_context project='omicron'>
<method_environment>
<envvar name="LD_LIBRARY_PATH" value="/opt/ooce/pgsql-13/lib/amd64" />
</method_environment>
Expand Down
4 changes: 4 additions & 0 deletions tools/install_runner_prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ if [[ "${HOST_OS}" == "SunOS" ]]; then
#
# create_virtual_hardware.sh will use those to setup the softnpu zone
retry ./tools/ci_download_softnpu_machinery

# Create the omicron project
projects -l omicron >/dev/null 2>&1 || \
pfexec projadd -c 'The Oxide Control Plane' omicron
fi

echo "All runner prerequisites installed successfully"