Skip to content

feat(launcher): ephemeral async FSx-create in Provision (#202) - #203

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/202-provision-fsx-async
Jun 16, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/202-provision-fsx-async

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes #202 — the lagotto#43 prerequisite. launcher.Provision (the headless path lagotto's poller uses) had zero FSx handling, so the #194 ephemeral async-create (wired only in cmd/launch.go) was a silent no-op for SDK/lagotto callers. This closes that gap so forwarding FSx fields from lagotto actually does something.

Change

New step in Provision (after IAM/user-data, before Launch): when config.FSxLustreCreate is set, provisionEphemeralFSx fires CreateFSxLustreFilesystemAsync (co-located via config.SubnetID), stamps config.FSxPending + import/export paths + mount point, and ensures Lustre SG ports. Returns fast — spored does wait → DRA → mount (#194), reaper refcounts (#192).

Fail-closed per #193: only ephemeral is valid on the headless path — durable is rejected (it's a deliberate up-front spawn fsx create, #195, not something a capacity-poller should do inline); missing/invalid lifecycle or missing bucket errors before any AWS call.

Tests

TestProvision_FSxLifecycleFailClosed — durable/empty/invalid/no-bucket all rejected (pre-AWS). Existing launcher suite green; build + vet/gofmt clean.

Unblocks lagotto#43 (the trivial passthrough). Needs a spawn release before lagotto can bump to it.

launcher.Provision (the headless path lagotto uses) had zero FSx handling, so the
#194 ephemeral async-create — wired only in cmd/launch.go — was a silent no-op
for SDK/lagotto callers. Add a step that, when config.FSxLustreCreate is set,
fires CreateFSxLustreFilesystemAsync (co-located via config.SubnetID), stamps
config.FSxPending + import/export paths + mount point, and ensures Lustre ports.
spored then waits → DRA → mounts (#194); reaper refcounts (#192).

Fail-closed per #193: only "ephemeral" is valid headlessly — "durable" is
rejected (it's a deliberate up-front spawn fsx create, #195, not a poller
action); missing/invalid lifecycle or missing bucket errors before any AWS call.

Tests: lifecycle fail-closed (durable/empty/invalid/no-bucket all rejected).
build + launcher tests green; vet/fmt clean.

Closes #202
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 28.57143% with 40 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/launcher/provision.go 28.57% 40 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit d6a32cd into main Jun 16, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

launcher.Provision: support ephemeral async FSx-create (headless path; lagotto#43 prerequisite)

1 participant