Skip to content

Improve resilience of create-cluster and build-image against concurrent operations on the ParallelCluster-managed bucket - #7623

Open
gmarciani wants to merge 3 commits into
aws:developfrom
gmarciani:wip/mgiacomo/3170/fix-s3-conflict-operation-0915-1
Open

gmarciani wants to merge 3 commits into
aws:developfrom
gmarciani:wip/mgiacomo/3170/fix-s3-conflict-operation-0915-1

Conversation

@gmarciani

@gmarciani gmarciani commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Description of changes

Improve resilience of create-cluster and build-image against concurrent operations on the ParallelCluster-managed bucket by retrying the S3 bucket configuration operations failing with OperationAborted with exponential backoff with jitter.

Also, fixed error message returned by build-image when the conficitng error occurs..

Tests

SUCCEEDED except for 2 execution of build_image which failed due to an unrelated issue about the export of builkd-image logs on success. This is not a blocker for this change though as it it unrelated.

{%- import 'common.jinja2' as common with context -%}
---
test-suites:
  create:
    test_create.py::test_create_imds_secured:
      dimensions:
        - regions: ["eu-west-1"]
          instances: {{ common.INSTANCES_DEFAULT_X86 }}
          oss: {{ common.OSS_COMMERCIAL_X86 }}
          schedulers: ["slurm"]
  createami:
    test_createami.py::test_build_image:
      dimensions:
        - regions: ["eu-west-1"]
          instances: ["c5.4xlarge"]
          oss: {{ common.OSS_COMMERCIAL_X86 }}
          schedulers: ["slurm"]

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…bucket check fails.

Before this fix the error message was mistakenly referring to the bucket associated to the cluster,
while it should refer to the bucket associated to the image.
@gmarciani gmarciani changed the title Wip/mgiacomo/3170/fix s3 conflict operation 0915 1 Improve resilience of create-cluster and build-image against concurrent operations on the ParallelCluster-managed bucket Sep 15, 2026
… against concurrent operations on the ParallelCluster-managed bucket

by retrying the S3 bucket configuration operations failing with `OperationAborted` with exponential backoff with jitter.
@gmarciani
gmarciani force-pushed the wip/mgiacomo/3170/fix-s3-conflict-operation-0915-1 branch from aa25613 to 820864a Compare September 15, 2026 22:45
@gmarciani
gmarciani marked this pull request as ready for review September 18, 2026 02:33
@gmarciani
gmarciani requested review from a team as code owners September 18, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant