Files
rustfs/docs/operations/s3-stack-rollback.md

2.7 KiB

S3 stack upgrade and rollback

The gateway release serves S3 with rustfs/gateway. Remove RUSTFS_S3_STACK from service units, container environments and Helm values before upgrading. Even an empty setting prevents startup. Keep the previous release binary or image digest with the deployment configuration.

Roll back to the previous release

  1. Check the target release against the storage format version floors. If the cluster has written data or metadata that the target cannot read, stop here. The S3 stack switch itself requires no data migration.
  2. Stop one node, restore the previous RustFS binary or image and start it with the same volumes and configuration. Follow the rolling restart procedure. Wait for the node to report ready and for its peers to report its drives online before replacing another node.
  3. Through the restored node, read an object written after the upgrade and compare its contents or checksum. Read a bucket configuration used by the application. If an upload was in progress, list its parts and compare their numbers, sizes and ETags with the client's record. Pause the rollout if any check fails.

Client-visible behavior changes

Change / case What clients see
c-sig-0598 (R-053) For an access key the S3 parser cannot read, both versions return HTTP 403. The gateway returns the XML error code AccessDenied. The legacy binary returns InvalidAccessKeyId. Clients that classify these errors by code need to handle both during a rollout.
PutBucketPolicy (#2684, 8f81762a6) For a malformed JSON policy body, both versions return HTTP 400. The gateway returns the XML error code MalformedPolicy (matching AWS S3). RustFS 1.0.5 returns InvalidArgument. Clients that classify bucket-policy validation errors by code need to handle both during a rollout.
CreateBucket (#2684, 8676d2f3b) For a successful default-region CreateBucket (200 OK), the gateway returns HTTP Location: /<bucket> (matching AWS S3 and c-bkt-0001). RustFS 1.0.5 omits the Location header. Clients that inspect Location on bucket creation need to handle its presence on gateway nodes and absence on 1.0.5 nodes during a rollout.

c-sig-0598 is recorded in the pinned gateway conformance rulings; host-assembled conformance rulings are tracked in .config/conformance-rulings.toml, and the signed PutBucketPolicy and CreateBucket accepted-change rulings are recorded in rustfs/backlog#2684.