{"action":"created","issue":{"url":"https://api.github.com/repos/leo-project/leofs/issues/905","repository_url":"https://api.github.com/repos/leo-project/leofs","labels_url":"https://api.github.com/repos/leo-project/leofs/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/leo-project/leofs/issues/905/comments","events_url":"https://api.github.com/repos/leo-project/leofs/issues/905/events","html_url":"https://github.com/leo-project/leofs/pull/905","id":268284851,"number":905,"title":"gateway: handle get bucket location, as us-east-1","user":{"login":"windkit","id":360884,"avatar_url":"https://avatars0.githubusercontent.com/u/360884?v=4","gravatar_id":"","url":"https://api.github.com/users/windkit","html_url":"https://github.com/windkit","followers_url":"https://api.github.com/users/windkit/followers","following_url":"https://api.github.com/users/windkit/following{/other_user}","gists_url":"https://api.github.com/users/windkit/gists{/gist_id}","starred_url":"https://api.github.com/users/windkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windkit/subscriptions","organizations_url":"https://api.github.com/users/windkit/orgs","repos_url":"https://api.github.com/users/windkit/repos","events_url":"https://api.github.com/users/windkit/events{/privacy}","received_events_url":"https://api.github.com/users/windkit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-25T06:52:18Z","updated_at":"2017-10-25T07:58:42Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/leo-project/leofs/pulls/905","html_url":"https://github.com/leo-project/leofs/pull/905","diff_url":"https://github.com/leo-project/leofs/pull/905.diff","patch_url":"https://github.com/leo-project/leofs/pull/905.patch"},"body":"## Related to Issue\r\n#799 "},"comment":{"url":"https://api.github.com/repos/leo-project/leofs/issues/comments/339247319","html_url":"https://github.com/leo-project/leofs/pull/905#issuecomment-339247319","issue_url":"https://api.github.com/repos/leo-project/leofs/issues/905","id":339247319,"user":{"login":"windkit","id":360884,"avatar_url":"https://avatars0.githubusercontent.com/u/360884?v=4","gravatar_id":"","url":"https://api.github.com/users/windkit","html_url":"https://github.com/windkit","followers_url":"https://api.github.com/users/windkit/followers","following_url":"https://api.github.com/users/windkit/following{/other_user}","gists_url":"https://api.github.com/users/windkit/gists{/gist_id}","starred_url":"https://api.github.com/users/windkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windkit/subscriptions","organizations_url":"https://api.github.com/users/windkit/orgs","repos_url":"https://api.github.com/users/windkit/repos","events_url":"https://api.github.com/users/windkit/events{/privacy}","received_events_url":"https://api.github.com/users/windkit/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T07:58:42Z","updated_at":"2017-10-25T07:58:42Z","author_association":"MEMBER","body":"@mocchira Yes I have checked with s3cmd 2.0.0\r\n\r\n```\r\n~/s3cmd-2.0.0$ ./s3cmd get s3://test/testd/testf --debug --force\r\nDEBUG: s3cmd version 2.0.0\r\nDEBUG: ConfigParser: Reading file '/home/wilson/.s3cfg'\r\nDEBUG: ConfigParser: access_key->05...3_chars...\r\nDEBUG: ConfigParser: access_token->\r\nDEBUG: ConfigParser: add_encoding_exts->\r\nDEBUG: ConfigParser: add_headers->\r\nDEBUG: ConfigParser: bucket_location->US\r\nDEBUG: ConfigParser: ca_certs_file->\r\nDEBUG: ConfigParser: cache_file->\r\nDEBUG: ConfigParser: check_ssl_certificate->True\r\nDEBUG: ConfigParser: check_ssl_hostname->True\r\nDEBUG: ConfigParser: cloudfront_host->cloudfront.amazonaws.com\r\nDEBUG: ConfigParser: default_mime_type->binary/octet-stream\r\nDEBUG: ConfigParser: delay_updates->False\r\nDEBUG: ConfigParser: delete_after->False\r\nDEBUG: ConfigParser: delete_after_fetch->False\r\nDEBUG: ConfigParser: delete_removed->False\r\nDEBUG: ConfigParser: dry_run->False\r\nDEBUG: ConfigParser: enable_multipart->True\r\nDEBUG: ConfigParser: encoding->UTF-8\r\nDEBUG: ConfigParser: encrypt->False\r\nDEBUG: ConfigParser: expiry_date->\r\nDEBUG: ConfigParser: expiry_days->\r\nDEBUG: ConfigParser: expiry_prefix->\r\nDEBUG: ConfigParser: follow_symlinks->False\r\nDEBUG: ConfigParser: force->False\r\nDEBUG: ConfigParser: get_continue->False\r\nDEBUG: ConfigParser: gpg_command->/usr/bin/gpg\r\nDEBUG: ConfigParser: gpg_decrypt->%(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s\r\nDEBUG: ConfigParser: gpg_encrypt->%(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s\r\nDEBUG: ConfigParser: gpg_passphrase->...-3_chars...\r\nDEBUG: ConfigParser: guess_mime_type->True\r\nDEBUG: ConfigParser: host_base->192.168.100.35:8080\r\nDEBUG: ConfigParser: host_bucket->\r\nDEBUG: ConfigParser: human_readable_sizes->False\r\nDEBUG: ConfigParser: invalidate_default_index_on_cf->False\r\nDEBUG: ConfigParser: invalidate_default_index_root_on_cf->True\r\nDEBUG: ConfigParser: invalidate_on_cf->False\r\nDEBUG: ConfigParser: kms_key->\r\nDEBUG: ConfigParser: limitrate->0\r\nDEBUG: ConfigParser: list_md5->False\r\nDEBUG: ConfigParser: log_target_prefix->\r\nDEBUG: ConfigParser: long_listing->False\r\nDEBUG: ConfigParser: max_delete->-1\r\nDEBUG: ConfigParser: mime_type->\r\nDEBUG: ConfigParser: multipart_chunk_size_mb->15\r\nDEBUG: ConfigParser: multipart_max_chunks->10000\r\nDEBUG: ConfigParser: preserve_attrs->True\r\nDEBUG: ConfigParser: progress_meter->True\r\nDEBUG: ConfigParser: put_continue->False\r\nDEBUG: ConfigParser: recursive->False\r\nDEBUG: ConfigParser: recv_chunk->65536\r\nDEBUG: ConfigParser: reduced_redundancy->False\r\nDEBUG: ConfigParser: requester_pays->False\r\nDEBUG: ConfigParser: restore_days->1\r\nDEBUG: ConfigParser: secret_key->80...6_chars...5\r\nDEBUG: ConfigParser: send_chunk->65536\r\nDEBUG: ConfigParser: server_side_encryption->False\r\nDEBUG: ConfigParser: simpledb_host->sdb.amazonaws.com\r\nDEBUG: ConfigParser: skip_existing->False\r\nDEBUG: ConfigParser: socket_timeout->300\r\nDEBUG: ConfigParser: stats->False\r\nDEBUG: ConfigParser: stop_on_error->False\r\nDEBUG: ConfigParser: storage_class->\r\nDEBUG: ConfigParser: urlencoding_mode->normal\r\nDEBUG: ConfigParser: use_https->False\r\nDEBUG: ConfigParser: use_mime_magic->True\r\nDEBUG: ConfigParser: verbosity->WARNING\r\nDEBUG: ConfigParser: website_endpoint->http://%(bucket)s.s3-website-%(location)s.amazonaws.com/\r\nDEBUG: ConfigParser: website_error->\r\nDEBUG: ConfigParser: website_index->index.html\r\nDEBUG: Updating Config.Config cache_file ->\r\nDEBUG: Updating Config.Config follow_symlinks -> False\r\nDEBUG: Updating Config.Config force -> True\r\nDEBUG: Updating Config.Config verbosity -> 10\r\nDEBUG: Unicodising 'get' using UTF-8\r\nDEBUG: Unicodising 's3://test/testd/testf' using UTF-8\r\nDEBUG: Command: get\r\nDEBUG: DeUnicodising u'testd/testf' using UTF-8\r\nDEBUG: Unicodising 'testf' using UTF-8\r\nDEBUG: Applying --exclude/--include\r\nDEBUG: CHECK: testf\r\nDEBUG: PASS: u'testf'\r\nINFO: Summary: 1 remote files to download\r\nDEBUG: DeUnicodising u'./testf' using UTF-8\r\nDEBUG: Unicodising './testf' using UTF-8\r\nDEBUG: DeUnicodising u'./testf' using UTF-8\r\nDEBUG: DeUnicodising u'./testf' using UTF-8\r\nDEBUG: CreateRequest: resource[uri]=/testd/testf\r\nDEBUG: ===== Recv_file inner request to determine the bucket region =====\r\nDEBUG: CreateRequest: resource[uri]=/\r\nDEBUG: Using signature v4\r\nDEBUG: get_hostname(test): 192.168.100.35:8080\r\nDEBUG: canonical_headers = host:192.168.100.35:8080\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20171025T064902Z\r\n\r\nDEBUG: Canonical Request:\r\nGET\r\n/test/\r\nlocation=\r\nhost:192.168.100.35:8080\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20171025T064902Z\r\nhost;x-amz-content-sha256;x-amz-date\r\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\n----------------------\r\nDEBUG: signature-v4 headers: {'x-amz-content-sha256': u'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': u'AWS4-HMAC-SHA256 Credential=05236/20171025/us-east-1/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date,Signature=\r\nd1e14d0f1c0c8f3e31bf7dc4496b555f1e5b4a64cbdd5749d188e24bbcf847e5', 'x-amz-date': '20171025T064902Z'}\r\nDEBUG: Processing request, please wait...\r\nDEBUG: get_hostname(test): 192.168.100.35:8080\r\nDEBUG: ConnMan.get(): creating new connection: http://192.168.100.35:8080\r\nDEBUG: non-proxied HTTPConnection(192.168.100.35, 8080)\r\nDEBUG: format_uri(): /test/?location\r\nDEBUG: Sending request method_string='GET', uri=u'/test/?location', headers={'x-amz-content-sha256': u'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': u'AWS4-HMAC-SHA256 Credential=05236/20171025/us-east-1/s3/aws4_request,SignedHeaders=\r\nhost;x-amz-content-sha256;x-amz-date,Signature=d1e14d0f1c0c8f3e31bf7dc4496b555f1e5b4a64cbdd5749d188e24bbcf847e5', 'x-amz-date': '20171025T064902Z'}, body=(0 bytes)\r\nDEBUG: ConnMan.put(): connection put back to pool (http://192.168.100.35:8080#1)\r\nDEBUG: Response:\r\n{'data': '<VersioningConfiguration xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"/>',\r\n 'headers': {'connection': 'keep-alive',\r\n             'content-length': '74',\r\n             'content-type': 'application/xml',\r\n             'date': 'Wed, 25 Oct 2017 06:49:03 GMT',\r\n             'server': 'LeoFS'},\r\n 'reason': 'OK',\r\n 'status': 200}\r\nDEBUG: ===== END recv_file Inner request to determine the bucket region ('us-east-1') =====\r\nDEBUG: Using signature v4\r\nDEBUG: get_hostname(test): 192.168.100.35:8080\r\nDEBUG: canonical_headers = host:192.168.100.35:8080\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20171025T064902Z\r\n\r\nDEBUG: Canonical Request:\r\nGET\r\n/test/testd/testf\r\n\r\nhost:192.168.100.35:8080\r\nx-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\nx-amz-date:20171025T064902Z\r\n\r\nhost;x-amz-content-sha256;x-amz-date\r\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\r\n----------------------\r\nDEBUG: signature-v4 headers: {'x-amz-content-sha256': u'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'Authorization': u'AWS4-HMAC-SHA256 Credential=05236/20171025/us-east-1/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date,Signature=\r\n8349587ef914770b7d20c6b78b2403fe4a0404b15729609d6cbbceaa35fcddad', 'x-amz-date': '20171025T064902Z'}\r\ndownload: 's3://test/testd/testf' -> './testf'  [1 of 1]\r\nDEBUG: get_hostname(test): 192.168.100.35:8080\r\nDEBUG: ConnMan.get(): re-using connection: http://192.168.100.35:8080#1\r\nDEBUG: format_uri(): /test/testd/testf\r\nDEBUG: Response:\r\n{'headers': {'connection': 'keep-alive',\r\n             'content-length': '143786',\r\n             'content-type': 'application/octet-stream',\r\n             'date': 'Wed, 25 Oct 2017 06:49:03 GMT',\r\n             'etag': '\"881f1f9e800e033d59e2d63e6ab81642\"',\r\n             'last-modified': 'Wed, 25 Oct 2017 06:48:36 GMT',\r\n             'server': 'LeoFS',\r\n             'x-amz-meta-s3cmd-attrs': 'atime:1508914074/ctime:1502153146/gid:2001/gname:rit/md5:881f1f9e800e033d59e2d63e6ab81642/mode:33261/mtime:1502153146/uid:506/uname:wilson'},\r\n 'reason': 'OK',\r\n 's3cmd-attrs': {'atime': '1508914074',\r\n                 'ctime': '1502153146',\r\n                 'gid': '2001',\r\n                 'gname': 'rit',\r\n                 'md5': '881f1f9e800e033d59e2d63e6ab81642',\r\n                 'mode': '33261',\r\n                 'mtime': '1502153146',\r\n                 'uid': '506',\r\n                 'uname': 'wilson'},\r\n 'status': 200}\r\n  65536 of 143786    45% in    0s    10.18 MB/sDEBUG: ConnMan.put(): connection put back to pool (http://192.168.100.35:8080#2)\r\n 143786 of 143786   100% in    0s    20.57 MB/s  done\r\nDEBUG: ReceiveFile: Computed MD5 = 881f1f9e800e033d59e2d63e6ab81642\r\nDEBUG: DeUnicodising u'./testf' using UTF-8\r\nDEBUG: set mtime to 1508881716.0\r\n```"}}
{"actor":{"display_login":"windkit"}}