minio / mint

Collection of tests to detect overall correctness of MinIO server.
Apache License 2.0
81 stars 50 forks source link

minio-go fails on gcs gateway #197

Closed balamurugana closed 6 years ago

balamurugana commented 6 years ago

Below is an error when running mint against gcs gateway

Running minio-go tests ... FAILED in 29 seconds
{ 
  "alert": "",
  "args": {},
  "duration": 1400,
  "error": "A header you provided implies functionality that is not implemented",
  "function": "testFunctionalV2()",
  "message": "SetBucketPolicy failed",
  "name": "minio-go",
  "status": "fail"
}

Server side log is below

ERRO[0030] Unable to create a bucket.                    cause=Bucket already owned by you: aws-sdk-php-bucket-34012 source=[gateway-handlers.go:633:gatewayAPIHandlers.PutBucketHandler()] stack=gateway-gcs.go:386:(*gcsGateway).MakeBucketWithLocation gateway-handlers.go:631:gatewayAPIHandlers.PutBucketHandler gateway-router.go:113:(gatewayAPIHandlers).PutBucketHandler-fm
ERRO[0433] Unable to validate content-md5 format.        cause=illegal base64 data at input byte 4 source=[gateway-handlers.go:205:gatewayAPIHandlers.PutObjectHandler()]
ERRO[0435] {"method":"PUT","reqURI":"/awscli-mint-test-bucket-1445/datafile-1-MB","header":{"Accept-Encoding":["identity"],"Authorization":["AWS4-HMAC-SHA256 Credential=minio/20171021/us-east-1/s3/aws4_request, SignedHeaders=content-length;content-md5;host;x-amz-content-sha256;x-amz-date, Signature=4cf6cc069ae069c1a9949feb3c98769f13cf8041ceb28bd13eea429fd125a28a"],"Content-Length":["1048576"],"Content-Md5":["/jCUCgXnG9eMBe+0n5jvOw=="],"Expect":["100-continue"],"Host":["10.99.185.131:9000"],"User-Agent":["aws-cli/1.11.112 Python/3.5.2 Linux/4.10.0-24-generic botocore/1.5.75"],"X-Amz-Content-Sha256":["194fda391f171a59875c3917110e0be72d9ac3d1abc6fbefaebede244e53b5f9"],"X-Amz-Date":["20171021T163608Z"]}}  cause=Signature does not match source=[gateway-handlers.go:295:gatewayAPIHandlers.PutObjectHandler()]
nitisht commented 6 years ago

fixed by minio/minio-go#853