s3cmd icon indicating copy to clipboard operation
s3cmd copied to clipboard

DreamHost support missing ACLs, bucket expiration rules

Open mdomsch opened this issue 12 years ago • 5 comments

The test suite runs successfully when pointed at DreamHost DreamObjects service, except for:

  • Private/Public ACL setting and getting fails.
  • setting, getting, deleting bucket expiration rules all fail.

./run-tests.py 1..20 24..42 44..51 58.. succeeds.

mdomsch avatar Apr 14 '14 22:04 mdomsch

The document says that bucket lifecycle is not supported. http://docs.dreamobjects.net/api.html

hrchu avatar Apr 15 '14 00:04 hrchu

I'd appreciate a review of the idea here, which is to intentionally skip tests in the test suite known to fail because the API is unsupported by that particular service. If we had a working exit status code, we could push this all the way down into the command calls in s3cmd, instead of doing it in the test suite.

mdomsch avatar Apr 18 '14 03:04 mdomsch

Maybe we could have run-tests FULL (which is default and tests full API) and run-test BASIC (tests only basic / partial API). Google storage also supports the "basic" the S3 rest API too. https://developers.google.com/storage/docs/migrating Then we could have a note (in a text file) listing which platforms we believe support the full S3 rest API and which ones only the basic one.

matteobar avatar Apr 18 '14 13:04 matteobar

Thanks for the pointer to the Google Storage docs. I gave it a try - it doesn't like the S3 bulk delete API, which we're now using for several testsuite operations, including remove bucket, and sync with deletes. Phooey.

Traceback (most recent call last): File "s3cmd", line 2413, in main() File "s3cmd", line 2335, in main cmd_func(args) File "s3cmd", line 288, in cmd_bucket_delete _bucket_delete_one(uri) File "s3cmd", line 272, in _bucket_delete_one success = subcmd_batch_del(uri_str = uri.uri()) File "s3cmd", line 571, in subcmd_batch_del _batch_del(remote_list) File "s3cmd", line 548, in _batch_del response = s3.object_batch_delete(to_delete) File "/home/mdomsch/git/s3cmd/S3/S3.py", line 583, in object_batch_delete response = self.send_request(request, request_body) File "/home/mdomsch/git/s3cmd/S3/S3.py", line 876, in send_request raise S3Error(response) File "/home/mdomsch/git/s3cmd/S3/Exceptions.py", line 49, in init tree = getTreeFromXml(response["data"]) File "/home/mdomsch/git/s3cmd/S3/Utils.py", line 88, in getTreeFromXml tree = ET.fromstring(xml) File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1300, in XML parser.feed(text) File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1642, in feed self._raiseerror(v) File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror raise err ParseError: syntax error: line 1, column 0

On Fri, Apr 18, 2014 at 8:25 AM, matteobar [email protected] wrote:

Maybe we could have run-tests FULL (which is default and tests full API) and run-test BASIC (tests only basic / partial API). Google storage also supports the "basic" the S3 rest API too. https://developers.google.com/storage/docs/migrating Then we could have a note (in a text file) listing which platforms we believe support the full S3 rest API and which ones only the basic one.

— Reply to this email directly or view it on GitHubhttps://github.com/s3tools/s3cmd/issues/312#issuecomment-40808126 .

mdomsch avatar Apr 18 '14 14:04 mdomsch

There is now run-tests-minio.py to have a test with a smaller subset of s3. having tests whitelisted/blacklisted per service could be nice but fit badly with the tendency to run s3 servers on each one own domain. Also sadly the auto test is currently a lot state-full and so it is hard to randomly skip some tests and still have the auto test working as intended and completing.

fviard avatar Mar 04 '18 14:03 fviard