Repository navigation
feat(launcher): ephemeral async FSx-create in Provision (#202) - #203
Merged
Merged
Conversation
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 Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 incmd/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): whenconfig.FSxLustreCreateis set,provisionEphemeralFSxfiresCreateFSxLustreFilesystemAsync(co-located viaconfig.SubnetID), stampsconfig.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
ephemeralis valid on the headless path —durableis rejected (it's a deliberate up-frontspawn 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/gofmtclean.Unblocks lagotto#43 (the trivial passthrough). Needs a spawn release before lagotto can bump to it.