akashic-storage icon indicating copy to clipboard operation
akashic-storage copied to clipboard

McTest "add bucket" fails only in CI

Open akiradeveloper opened this issue 9 years ago • 4 comments

https://github.com/akiradeveloper/akashic-storage/commit/5079ae7a3020f8954fd064be4a34aa9c8048281d

mc --debug config host add akashic-storage http://localhost:10946 J5MDBFJHBXGCLFDMZAS2 2fPHX3yJDLaN2VsP2B7TaowxLhh5akwnhWi52LTU S3v2
Added ‘akashic-storage’ successfully.
mc --debug ls akashic-storage
mc: <DEBUG> GET / HTTP/1.1

Host: localhost:10946

User-Agent: Minio (linux; amd64) minio-go/1.0.1 mc/2016-04-01T00:22:11Z

Authorization: AWS **REDACTED**:**REDACTED**

Date: Fri, 01 Apr 2016 13:08:59 GMT

Expect: 100-continue

Accept-Encoding: gzip



mc: <DEBUG> HTTP/1.1 200 OK

Connection: close

Content-Length: 275

Content-Type: text/xml; charset=UTF-8

Date: Fri, 01 Apr 2016 13:08:59 GMT

Server: akka-http/2.4.2

X-Amz-Request-Id: 0KuCpfU9qZxP6Mil



mc: <DEBUG> Response Time:  20.511912ms

mc: <ERROR> Unable to stat ‘akashic-storage’. Bucket name cannot be empty.
 (2) ls-main.go:99 main.checkListSyntax(..) Tags: [akashic-storage]
 (1) url.go:188 main.url2Stat(..) Tags: [akashic-storage]
 (0) client-s3.go:290 main.(*s3Client).Stat(..)
 Release-Tag:RELEASE.2016-04-01T00-22-11Z | Commit:12adf3be326f | Host:testing-gce-61aa7b6f-bab8-401b-97dc-f2aaccfb2ca3 | OS:linux | Arch:amd64 | Lang:go1.6 | Mem:707kB/2.8MB | Heap:707kB/1.7MB
t(Spt5LvjGpw8lFVsx7usgXIcqd96aDaRq916uePFD1HEEeYBsqBAKv0bcquySbpzB,A3LUMBDMLVAEWABX62XM,YPvWRPFgTaAcOiQcbfpOIpPOxvZBbVldCWwBlwjA,noname,[email protected],noname)

no degradation in s3-tests

FAILED (SKIP=51, errors=74, failures=110)

very strange

akiradeveloper avatar Apr 01 '16 13:04 akiradeveloper

16702 20160401 14:51:56.805 [akashic-storage-akka.actor.default-dispatcher-10] DEBUG akashic.storage.service [Measure.scala:6] - -> GET Service 
16703 20160401 14:51:56.806 [akashic-storage-akka.actor.default-dispatcher-10] DEBUG akashic.storage.service [GetCallerId.scala:16] - callerId: wg6fYjMPIiF5lQZ6Wa5ykrDgrB5qESr2WcKbGhZYBXjZjM7J0Csdhgin1H0WuWwU 
16703 20160401 14:51:56.806 [akashic-storage-akka.actor.default-dispatcher-10] DEBUG akashic.storage.service [Measure.scala:10] - <- GET Service 1[ms] 
16704 20160401 14:51:56.807 [akashic-storage-akka.actor.default-dispatcher-10] DEBUG akashic.storage.service [package.scala:33] - Response for
  Request : HttpRequest(HttpMethod(GET),http://localhost:10946/,List(Host: localhost:10946, user-agent: Minio (linux; amd64) minio-go/1.0.1 mc/2016-04-01T00:22:11Z, authorization: AWS DN0YRYSJCX4INY9FOAWU:cLe7Db89CiDZD1dQnH9AM1RJCoU=, Date: Fri, 01 Apr 2016 14:51:56 GMT, Expect: 100-continue, Accept-Encoding: gzip, Timeout-Access: <function1>),HttpEntity.Strict(none/none,ByteString()),HttpProtocol(HTTP/1.1))
  Response: Complete(HttpResponse(200 OK,List(x-amz-request-id: cfeu7WpWB5biAtVd),HttpEntity.Strict(text/xml; charset=UTF-8,<ListAllMyBucketsResult>
          <Owner>
          <ID>wg6fYjMPIiF5lQZ6Wa5ykrDgrB5qESr2WcKbGhZYBXjZjM7J0Csdhgin1H0WuWwU</ID>
          <DisplayName>noname</DisplayName>
        </Owner>
          <Buckets>

          </Buckets>
        </ListAllMyBucketsResult>),HttpProtocol(HTTP/1.1))) 

The log is correct. I guess mc for amd64 is buggy. The binary release is updated today April 1 and something went wrong. Now that s3-tests shows no degradation, I can put off the bug tag.

akiradeveloper avatar Apr 01 '16 15:04 akiradeveloper

According to the manual, ls alias is the valid command

EXAMPLES:
   1. List buckets on Amazon S3 cloud storage.
      $ mc ls s3

akiradeveloper avatar Apr 01 '16 15:04 akiradeveloper

I removed the first line of "add buckets" test and it turned to green.

The thing is amd64's mc can't list when there is no buckets.

akiradeveloper avatar Apr 01 '16 15:04 akiradeveloper

I should reproduce this issue and feedback to upstream

akiradeveloper avatar Apr 01 '16 15:04 akiradeveloper