Skip to content

ami create: record the source's spawn version and MPI/job-array identity on the image #1364

Closed

Description

@scttfrdmn

Found while fixing #1343 (PR #1363).

spawn ami create / create-ami (cmd/create_ami.go, runCreateAMI) tags an image with only spawn:managed, spawn:created, spawn:created-from, spawn:source-region, spawn:arch, spawn:gpu, spawn:base-ami and the user's --tags. That set has not changed since the initial release (git log -p -- cmd/create_ami.go). None of the source's spawn:version, spawn:mpi-enabled or spawn:job-array-* tags reach the image. spawn:created-from names the source instance, but a terminated instance's tags disappear within about an hour, and MPI cohorts are short-lived.

Consequence: when a fix changes what an image must not carry, as #1338/#1343 did, spawn cannot recognise the images made before the fix. So it cannot warn at launch or in spawn ami list, and the only remedy is documentation (the #1343 CHANGELOG entry, spore-host/spore-host#614).

Proposal: also write spawn:image-spawn-version (the creating CLI's version) and copy the source's spawn:version, spawn:mpi-enabled and spawn:job-array-index as spawn:source-* tags. Future fixes could then key a warning on them. Cost: a few more tags on CreateImage, with no new IAM, because the tags ride CreateImage's TagSpecifications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mpicomponent:spawn

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions