ops/glesys: terraform state is out of date

#450
Opened by sterni at 2025-09-02T14·19+00

I successfully was able to update the tvixbolt.tvl.su dns record today which was changed in cl/13661. However, uploading the changed state to the glesys object storage fails:

Failed to persist state: failed to upload state: operation error S3: PutObject, https response error StatusCode: 400, RequestID: tx00000d0da21907e3e0bfc-0068b6fc33-a81d551-default, HostID: a81d551-default-default, api error XAmzContentSHA256Mismatch: UnknownError

I can provide the errored.tfstate to anyone willing to try again via terraform state push errored.tfstate.

  1. I was able to push the state successfully after setting the following environment variables:

    export AWS_REQUEST_CHECKSUM_CALCULATION=when_required  
    export AWS_RESPONSE_CHECKSUM_VALIDATION=when_required
    

    This workaround was suggested by upstream.

    The issue is still not fixed in the latest terraform versions: https://github.com/hashicorp/terraform/issues/36704

    sterni at 2025-09-02T14·30+00

  2. sterni closed this issue at 2025-09-02T14·30+00