Skip to content

chore(smoke): add a storage leg covering the generated mount shell - #705

Merged
scttfrdmn merged 2 commits into
mainfrom
chore/smoke-storage-leg
Oct 5, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
chore/smoke-storage-leg

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Adds the storage leg to make smoke, and files what it found.

Why

The hardware-sensitivity manifest flagged pkg/userdata/storage.go as changed by #680, and the smoke did not exercise it. That is the worst place to have a gap: the file generates the mount, fstab and /etc/profile.d shell, and its unit tests can only check the rendered text and that it parses with bash -n. Neither can tell you the mount appeared, or that the profile export carries the right value.

What it checks

Creates an EFS filesystem and mount target, launches with --efs-id, then asserts:

Fixture teardown rides the existing trap — mount target, then filesystem, then security group, in that order — and the independent leak check still runs afterwards.

What it found on its first run

A genuine failure that was not a regression, which is worth recording because it took four diagnostics to establish:

check result
mount by the mount-target IP, identical generated options succeeded
/etc/profile.d/efs.sh sourced EFS_MOUNT=/efs, correct
#668 storage gate failed:not mounted: /efs — correctly reported it
general DNS on the instance worked (s3.amazonaws.com resolved)
EFS DNS failed, and still failing minutes later

VPC enableDnsSupport/enableDnsHostnames were both true and the mount target was available in the same subnet. So the filesystem was reachable throughout and only its DNS name would not resolve — in an account that resolved EFS DNS correctly earlier the same day.

Filed as #704: the mount is attempted once, so a transient DNS failure at boot fails it permanently, even though spawn knows the mount-target IP and mounting by IP works. With #668's barrier in place that turns one DNS blip into a launch that boots, bills and runs nothing.

#668's gate behaving correctly here is the reason I found this at all rather than watching a workload produce garbage against a missing directory.

The manifest flagged pkg/userdata/storage.go as changed by #680 and the
smoke did not exercise it — the gap that matters most there, since that
file generates the mount, fstab and profile.d shell and its unit tests
can only check rendered text and that it parses.

The leg creates an EFS filesystem and mount target, launches with
--efs-id, then asserts the storage gate reads ok, /efs is in
/proc/mounts, and sourcing /etc/profile.d/efs.sh yields the mount point.
Fixture teardown is in the existing trap, ordered mount target ->
filesystem -> security group.

First run found a real failure that was not a regression: EFS DNS was
not resolving in the account while general DNS worked and mounting by
the mount-target IP succeeded with identical options. Filed as #704.
Four runs produced three different false signals, every one a bug in
this script rather than in spawn: --on-complete terminate killed the
instance before the checks ran, hand-escaped JSON swallowed a $, and an
escaped grep pattern reached the instance literally and reported
'mpirun reached 0 of 2 nodes' on a healthy cluster.

The SSM helper now builds its payload with python json.dumps instead of
shell interpolation — the same change of representation the production
assembler makes by base64-encoding the peers file.

Gated behind SMOKE_STORAGE=1: an untrustworthy check is worse than a
missing one, which is the standard already applied to the EFA probe. The
product findings underneath are real and filed as #704.
@scttfrdmn
scttfrdmn merged commit 0fe38c0 into main Oct 5, 2026
6 checks passed
@scttfrdmn
scttfrdmn deleted the chore/smoke-storage-leg branch October 5, 2026 02:27
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.

1 participant