Skip to content

spawn launch --fsx-create hardcodes PERSISTENT_2; add --fsx-deployment-type (SCRATCH_2) #206

Closed

Description

@scttfrdmn

Problem

spawn launch --fsx-create always requests a PERSISTENT_2 Lustre filesystem (the --fsx-throughput help text confirms: 'FSx PERSISTENT_2 throughput'). In us-east-1 on this account, PERSISTENT_2 is rejected:

BadRequest: The requested Lustre configuration: PERSISTENT_2 is not available in this availability zone.

Tried us-east-1a/1b/1c, throughput 125 and 250 — all rejected. But SCRATCH_2 works fine here (the account has several AVAILABLE SCRATCH_2 Lustre filesystems via aws fsx describe-file-systems). So FSx Lustre itself is available; only the hardcoded PERSISTENT_2 deployment type is not.

Request

Add --fsx-deployment-type (SCRATCH_2 | PERSISTENT_1 | PERSISTENT_2), defaulting to current behavior. SCRATCH_2 is the right choice for many workloads: cheaper, high throughput, and ideal when the filesystem's data is reproducible from its S3 import path (no need for persistent durability) — e.g. a read-only reference DB mounted across a fan-out (the aws-microbiome-demo use case from nf-spawn#67).

Workaround in use

Creating the SCRATCH_2 S3-backed filesystem directly via aws fsx create-file-system DeploymentType=SCRATCH_2 + a data-repository-association to the S3 prefix, then mounting it via spawn launch --fsx-id <id> (which has no deployment-type constraint — it just mounts an existing FS). So --fsx-id is unaffected; only --fsx-create needs the option.

Activity

  1. scttfrdmn commented on Jun 17, 2026

    @scttfrdmn
    ContributorAuthor

    Correction / important finding: my proposed SCRATCH_2 workaround does not work with the modern client. I created a SCRATCH_2 S3-backed Lustre FS directly via the AWS CLI and tried to mount it via spawn launch --fsx-id — the AL2023 lustre-client (2.15.6) cannot mount it:

    LustreError: Server MGS version (2.10.5.0) refused connection from this client
    with an incompatible version (2.15.6). Client must be recompiled
    mount.lustre: ... failed: Invalid argument
    

    So SCRATCH_2 provisions an older Lustre server (2.10.x) incompatible with the AL2023 2.15.x client — which is presumably why --fsx-create hardcodes PERSISTENT_2 (its newer Lustre server matches the 2.15 client). So the real issue isn't 'add a deployment-type flag' — it's that PERSISTENT_2 itself is rejected in this account/region ('not available in this availability zone', tried 1a/1b/1c, throughput 125 & 250), yet PERSISTENT_2 is what the client needs.

    Reframing the ask: either (a) PERSISTENT_2 needs to actually be available where spawn launches (an AZ-selection / capacity issue spawn could surface more clearly), or (b) support a client version compatible with SCRATCH_2 if that deployment type is to be offered. Right now there's no working FSx-create path on this account via spawn. Happy to provide region/account details. (The aws-microbiome-demo FSx benchmark is parked on this.)

  2. added this to the Later milestone on Oct 19, 2026
  3. scttfrdmn commented on Nov 8, 2026

    @scttfrdmn
    ContributorAuthor

    Closing during the pre-1.0 backlog triage (spore-host/spore-host#644): already-fixed.

    Evidence: The reporter's own follow-up says SCRATCH_2 cannot be mounted by the AL2023 2.15 client, which moves the ask to 'PERSISTENT_2 rejected in every AZ'. #208 (closed 2026-06-17) traced that to --fsx-create ignoring --az and fixed it; the fix is now at cmd/launch_single.go:622-646.

    If this is wrong, reopen it and it goes back into the hardening queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions