Project

General

Profile

Bug #40111

RGW-Swift does not support capabilities API call

Added by Bjoern Teipel 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
06/03/2019
Due date:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Per swift API, the URL /info should return capabilities of the swift API but RGW does not seem to support it on this URL:

  1. curl http://xxxx:8080/info
    <Error><Code>NoSuchBucket</Code><BucketName>info</BucketName><RequestId>tx00000000000000000a2e0-005cf529ea-1e4ad3-default</RequestId><HostId>1e4ad3-default-default</HostId></Error>

once I add the swift prefix if does report basic statistics

  1. curl http://xxxx:8080/swift/info {"bulk_delete":{},"container_quotas":{},"swift":{"max_file_size":5368709120,"container_listing_limit":10000,"version":"13.2.5","policies":[{"default":true,"name":"default-placement"}],"max_object_name_size":1024,"strict_cors_mode":true,"max_container_name_length":255},"tempurl":{"methods":["GET","HEAD","PUT","POST","DELETE"]},"slo":{"max_manifest_segments":1000},"account_quotas":{},"staticweb":{},"

Is it possible to support this API call ?

History

#1 Updated by Matt Benjamin 3 months ago

Hi Bjoern,

If what you're asking for is for Swift sub-urls to appear at the root, then you can enable that by setting

rgw swift url prefix = /

in your config.

Matt

#2 Updated by Bjoern Teipel 3 months ago

Thanks for the info, but wouldn't affect that also the /swift/v1 api calls ?

#3 Updated by Matt Benjamin 3 months ago

It is part of the formula we use when we run tempest tests (there are other options controlling Swift auth urls, I don't know if overriding swift at root is actually relevant, though you can do it). I will ask someone to put the set of interesting options we use for tempest testing in this issue.

Matt

#4 Updated by Matt Benjamin 2 months ago

(shilpa, is this a doc bug?)

#5 Updated by Matt Benjamin 2 months ago

  • Status changed from New to In Progress

#6 Updated by Shilpa MJ 2 months ago

Matt Benjamin wrote:

(shilpa, is this a doc bug?)

We do have this documented here:

http://docs.ceph.com/docs/nautilus/radosgw/config-ref/#swift-settings

#7 Updated by Abhishek Lekshmanan 2 months ago

  • Status changed from In Progress to Need More Info

#8 Updated by Abhishek Lekshmanan 2 months ago

  • Status changed from Need More Info to Resolved

#9 Updated by Bjoern Teipel 2 months ago

I think the underlying question was not to run swift on / and disable S3 api more if the /info URL could be supported to allow the swift capabilities call. But I understand if that would create an conflict with other APIs

Also available in: Atom PDF