Error: "Upload failed: operation error S3" returned from bosh-blobstore-s3 during Jammy or Windows Stemcell upgrade
search cancel

Error: "Upload failed: operation error S3" returned from bosh-blobstore-s3 during Jammy or Windows Stemcell upgrade

book

Article ID: 434634

calendar_today

Updated On:

Products

VMware Tanzu Application Service Operations Manager

Issue/Introduction

When using an S3-compatible blobstore (such as Dell ECS, MinIO, Ceph, Cloudflare R2, Linode Object Storage, certain on-prem gateways, etc.) with the BOSH Director, certain AWS-specific checksum calculation properties introduced in newer bosh-s3cli versions may cause compatibility issues. This typically results in failed blobstore interactions or deployment errors such as XAmzContentSHA256Mismatch. These failures are specifically encountered starting with Jammy stemcells 1.1033 and Windows stemcells 2019.95.

These properties are not exposed through the standard Ops Manager Director configuration API or UI, leading to failed blobstore interactions or deployment errors.

  • Specific properties introduced in bosh-s3cli PR #66 requiring manual disablement (for S3-compatible stores that don't support newer AWS SDK checksum algorithms) include:
    • request_checksum_calculation_enabled
    • response_checksum_calculation_enabled
    • uploader_request_checksum_calculation_enabled
    • multipart_upload
  • See the KB-430821 for more detailed symptoms encountered during upgrade.

Environment

Operations Manager, Elastic Application Runtime (EAR) and other product tiles, specifically when using an S3 compatible blobstore. This failure is specifically encountered starting with Jammy stemcells 1.1033 and Windows stemcells 2019.95.

Cause

The bosh-s3cli version bump (v0.0.383+) introduced changes to the AWS SDK that enforce stricter checksum handling. S3-compatible storage providers (non-AWS) that do not support these newer AWS SDK checksum algorithms reject the requests. Because Ops Manager does not provide a native toggle for these settings in the GUI, the BOSH Director manifest must be modified using the Director Overrides API.

Resolution

The recommended long-term solution is to contact your S3-compatible storage vendor and confirm when the AWS S3 CRC64NVME checksum algorithm will be supported.


As of Tanzu Operations Manager v3.3.3, the BOSH Director supports a native configuration option, disable_checksum_calculations, that disables AWS SDK checksum calculations for S3-compatible blobstores. This replaces the manifest-override workaround previously documented in this article. This option has no field in the Ops Manager UI and must be set through the API using the staged Director properties endpoint. 

For Tanzu Operations Manager versions earlier than v3.3.3, the disable_checksum_calculations option is not available. On those versions, the previous workaround using the Director Overrides API remains the applicable procedure. Please open a Support Case and reference this KB article to get assistance applying the previous workaround. 

 

Resolution Steps

Step 1: Obtain a UAA Access Token

Authenticate with the Ops Manager UAA to authorize your API calls.

TOKEN=$(curl -sk https://<OPSMAN>/uaa/oauth/token -d 'grant_type=password&username=<USERNAME>&password=<PASSWORD>' -d 'client_id=opsman&client_secret=' -H 'Content-Type: application/x-www-form-urlencoded' | python3 -c "import json,sys; print(json.load(sys.stdin)['access_token'])")

 

Step 2: Review Current Staged Director Config

Record the current values under director_configuration.s3_blobstore_options. You will resubmit these values together with the new flag.

curl -sk "https://<OPSMAN>/api/v0/staged/director/properties" -H "Authorization: Bearer $TOKEN" | python3 -m json.tool

 

Step 3: Set disable_checksum_calculations via the properties API

Submit the complete s3_blobstore_options block, merging your existing values with "disable_checksum_calculations": true:

curl -sk "https://<OPSMAN>/api/v0/staged/director/properties" -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{
    "director_configuration": {
      "blobstore_type": "s3",
      "s3_blobstore_options": {
        "endpoint": "<YOUR_S3_ENDPOINT>",
        "bucket_name": "<YOUR_BUCKET>",
        "access_key": "<YOUR_ACCESS_KEY>",
        "secret_key": "<YOUR_SECRET_KEY>",
        "signature_version": "<2 or 4>",
        "region": "<REGION_IF_SIGV4>",
        "disable_checksum_calculations": true
      }
    }
  }'
 

 

Step 4: Verify

Confirm disable_checksum_calculations is true and the remaining S3 values match your environment.

curl -sk "https://<OPSMAN>/api/v0/staged/director/properties" -H "Authorization: Bearer $TOKEN" | python3 -m json.tool

 

Step 5: Enable Advanced Mode

Enables access to advanced configuration settings

curl -sk https://<OPSMAN>/api/v0/staged/infrastructure/locked -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"locked": false}'

 

Step 6: Remove any previously applied manifest overrides

If this foundation previously applied the Director Overrides workaround from an earlier revision of this article, remove those overrides before deploying so the two mechanisms do not conflict:

Note: DELETE /api/v0/staged/director/overrides removes all overrides, not only blobstore-related entries. If overrides exist for other purposes, retrieve them with GET, remove only the blobstore entries, and re-submit the remainder with PUT.


View current overrides

curl -sk "https://<OPSMAN>/api/v0/staged/director/overrides" -H "Authorization: Bearer $TOKEN"


Remove all overrides 

curl -sk "https://<OPSMAN>/api/v0/staged/director/overrides" -X DELETE -H "Authorization: Bearer $TOKEN"


Verify override deletion

curl -sk "https://<OPSMAN>/api/v0/staged/director/overrides" -H "Authorization: Bearer $TOKEN"

 

Step 7: Disable Advanced Mode

curl -sk https://<OPSMAN>/api/v0/staged/infrastructure/locked -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"locked": true}'

 

Step 8: Apply Changes

Finalize the configuration by clicking Apply Changes in the Ops Manager UI. Go to Review Pending Changes, select See Changes on the BOSH Director tile, and confirm the diff shows only the expected blobstore property changes before clicking Apply Changes. This redeploys the BOSH Director.

 

Additional Information

API references: