-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict hardcoded PROPOLIS_PORT to simply being the default in sagas
Adds a database column for Nexus to track `propolis_port` in addition to the `propolis_ip`, such that tests using sled-agent-sim don't collide.
- Loading branch information
lif
committed
Feb 28, 2024
1 parent
0761ada
commit 60a2254
Showing
11 changed files
with
55 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- 12400 was the hardcoded PROPOLIS_PORT prior to this addition; default to | ||
-- that for all existing instances when creating the column. | ||
-- in production, this value will always end up still being 12400. | ||
-- however, nexus' testability in scenarios where each "propolis-server" API | ||
-- isn't necessarily served from an illumos zone with its own IP address, but | ||
-- rather in a sled-agent-sim thread during a cargo nextest run? useful to | ||
-- allow some dynamic range there to avoid flakes caused by port collisions. | ||
ALTER TABLE omicron.public.vmm | ||
ADD COLUMN IF NOT EXISTS propolis_port INT4 NOT NULL | ||
CHECK (propolis_port BETWEEN 0 AND 65535) | ||
DEFAULT 12400; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters