Hello yehuda, Please have a look: /etc/ceph/ceph.conf [client.radosgw.gateway] host = <hostname> log file = /var/log/ceph/radosgw.log rgw dns name = <fqdn> rgw print continue= true rgw enable ops log = true rgw enable usage log = true admin socket = /tmp/radosgw.adsock debug rgw=20 /var/log/apache2/access.log [11/Apr/2014:09:14:40 +0200] "GET /admin/user?format=json HTTP/1.1" 405 1896 "-" "aws-sdk-java/1.3.27 Windows_7/6.1 Java_HotSpot(TM)_Client_VM/23.21-b01" /var/log/ceph/radosgw.log 2014-04-11 09:07:04.692526 7fe0ca076700 0 -- 172.25.3.12:0/1025431 >> 172.25.3.12:6789/0 pipe(0x7fe0b0015820 sd=12 :0 pgs=0 cs=0 l=1).fault 2014-04-11 09:07:07.414199 7fe0b87f8700 0 -- 172.25.3.12:0/1025431 >> 172.25.3.12:6801/26141 pipe(0x7fe0b00180a0 sd=13 :0 pgs=0 cs=0 l=1).fault 2014-04-11 09:07:15.540562 7f995c46e780 0 ceph version 0.56.1 (e4a541624df62ef353e754391cbbb707f54b16f7), process radosgw, pid 27051 2014-04-11 09:07:15.561118 7f994ac91700 2 garbage collection: start 2014-04-11 09:07:21.474434 7f995c46e780 10 allocated request req=0x20d8e30 2014-04-11 09:07:21.873066 7f994ac91700 2 garbage collection: stop 2014-04-11 09:07:50.739178 7f995c46e780 20 enqueued request req=0x20d8e30 2014-04-11 09:07:50.739222 7f995c46e780 20 RGWWQ: 2014-04-11 09:07:50.739227 7f995c46e780 20 req: 0x20d8e30 2014-04-11 09:07:50.739239 7f995c46e780 10 allocated request req=0x20df730 2014-04-11 09:07:50.739469 7f9911fcb700 20 dequeued request req=0x20d8e30 2014-04-11 09:07:50.739489 7f9911fcb700 20 RGWWQ: empty 2014-04-11 09:07:50.739511 7f9911fcb700 1 ====== starting new request req=0x20d8e30 ===== 2014-04-11 09:07:50.739615 7f9911fcb700 2 req 1:0.000104::::initializing 2014-04-11 09:07:50.739680 7f9911fcb700 10 host=<hostname> rgw_dns_name=<fqdn> 2014-04-11 09:07:50.759827 7f9911fcb700 5 nothing to log for operation 2014-04-11 09:07:50.759876 7f9911fcb700 2 req 1:0.020365::GET /admin/user::http status=405 2014-04-11 09:07:50.761521 7f9911fcb700 1 ====== req done req=0x20d8e30 http_status=405 ====== 2014-04-11 09:07:51.469971 7f994ffff700 0 WARNING: RGWRados::log_usage(): user name empty (bucket=), skipping Thanks Regards Philipp -----Ursprüngliche Nachricht----- Von: Yehuda Sadeh [mailto:yehuda@xxxxxxxxxxx] Gesendet: Donnerstag, 3. April 2014 17:55 An: Jäger, Philipp Cc: ceph-devel@xxxxxxxxxxxxxxx Betreff: Re: RadosGW- Admin API (resending to mailing list) Could be a more basic issue, can you turn on 'debug rgw = 20', and provide the corresponding log? Yehuda On Thu, Apr 3, 2014 at 3:51 AM, Jäger, Philipp <philipp.jaeger@xxxxxxx> wrote: > Hello yehuda, > > we want to administrate the rados users via the admin api. > http://ceph.com/docs/master/radosgw/adminops/#get-user-info > > > We got the following logs from the developer, see line " Receiving response: HTTP/1.1 405 Method Not Allowed": > > [DEBUG] internal.S3Signer - Calculated string to sign: > "GET > > application/x-www-form-urlencoded; charset=utf-8 Mon, 31 Mar 2014 > 11:25:58 GMT //" > [DEBUG] com.amazonaws.request - Sending Request: GET https://172.25.3.12 /admin/user?format=json&uid=test Headers: (Authorization: AWS NQY41E90E38HKJXV6DFM:/v1NjvtT/khFuR875Fx+rexmyuo=, Date: Mon, 31 Mar 2014 11:25:58 GMT, User-Agent: aws-sdk-java/1.3.27 Windows_7/6.1 Java_HotSpot(TM)_Client_VM/23.21-b01, Content-Type: application/x-www-form-urlencoded; charset=utf-8, ) > [DEBUG] conn.BasicClientConnectionManager - Get connection for route {s}->https://172.25.3.12 > [DEBUG] conn.DefaultClientConnectionOperator - Connecting to 172.25.3.12:443 > [DEBUG] protocol.RequestAddCookies - CookieSpec selected: best-match > [DEBUG] protocol.RequestAuthCache - Auth cache not set in the context > [DEBUG] protocol.RequestProxyAuthentication - Proxy auth state: UNCHALLENGED > [DEBUG] client.DefaultHttpClient - Attempt 1 to execute request > [DEBUG] conn.DefaultClientConnection - Sending request: GET /admin/user?format=json&uid=test HTTP/1.1 > [DEBUG] org.apache.http.wire - >> "GET /admin/user?format=json&uid=test HTTP/1.1[\r][\n]" > [DEBUG] org.apache.http.wire - >> "Host: 172.25.3.12[\r][\n]" > [DEBUG] org.apache.http.wire - >> "Authorization: AWS NQY41E90E38HKJXV6DFM:/v1NjvtT/khFuR875Fx+rexmyuo=[\r][\n]" > [DEBUG] org.apache.http.wire - >> "Date: Mon, 31 Mar 2014 11:25:58 GMT[\r][\n]" > [DEBUG] org.apache.http.wire - >> "User-Agent: aws-sdk-java/1.3.27 Windows_7/6.1 Java_HotSpot(TM)_Client_VM/23.21-b01[\r][\n]" > [DEBUG] org.apache.http.wire - >> "Content-Type: application/x-www-form-urlencoded; charset=utf-8[\r][\n]" > [DEBUG] org.apache.http.wire - >> "Connection: Keep-Alive[\r][\n]" > [DEBUG] org.apache.http.wire - >> "[\r][\n]" > [DEBUG] org.apache.http.headers - >> GET /admin/user?format=json&uid=test HTTP/1.1 > [DEBUG] org.apache.http.headers - >> Host: 172.25.3.12 > [DEBUG] org.apache.http.headers - >> Authorization: AWS NQY41E90E38HKJXV6DFM:/v1NjvtT/khFuR875Fx+rexmyuo= > [DEBUG] org.apache.http.headers - >> Date: Mon, 31 Mar 2014 11:25:58 GMT > [DEBUG] org.apache.http.headers - >> User-Agent: aws-sdk-java/1.3.27 Windows_7/6.1 Java_HotSpot(TM)_Client_VM/23.21-b01 > [DEBUG] org.apache.http.headers - >> Content-Type: application/x-www-form-urlencoded; charset=utf-8 > [DEBUG] org.apache.http.headers - >> Connection: Keep-Alive > [DEBUG] org.apache.http.wire - << "HTTP/1.1 405 Method Not Allowed[\r][\n]" > [DEBUG] org.apache.http.wire - << "Date: Mon, 31 Mar 2014 11:26:20 GMT[\r][\n]" > [DEBUG] org.apache.http.wire - << "Server: Apache/2.2.22 (Ubuntu)[\r][\n]" > [DEBUG] org.apache.http.wire - << "Accept-Ranges: bytes[\r][\n]" > [DEBUG] org.apache.http.wire - << "Content-Length: 27[\r][\n]" > [DEBUG] org.apache.http.wire - << "Keep-Alive: timeout=5, max=100[\r][\n]" > [DEBUG] org.apache.http.wire - << "Connection: Keep-Alive[\r][\n]" > [DEBUG] org.apache.http.wire - << "Content-Type: application/json[\r][\n]" > [DEBUG] org.apache.http.wire - << "[\r][\n]" > [DEBUG] conn.DefaultClientConnection - Receiving response: HTTP/1.1 405 Method Not Allowed > [DEBUG] org.apache.http.headers - << HTTP/1.1 405 Method Not Allowed > [DEBUG] org.apache.http.headers - << Date: Mon, 31 Mar 2014 11:26:20 GMT > [DEBUG] org.apache.http.headers - << Server: Apache/2.2.22 (Ubuntu) > [DEBUG] org.apache.http.headers - << Accept-Ranges: bytes > [DEBUG] org.apache.http.headers - << Content-Length: 27 > [DEBUG] org.apache.http.headers - << Keep-Alive: timeout=5, max=100 > [DEBUG] org.apache.http.headers - << Connection: Keep-Alive > [DEBUG] org.apache.http.headers - << Content-Type: application/json > [DEBUG] client.DefaultHttpClient - Connection can be kept alive for 5000 MILLISECONDS > > > > Do you know where the mistake is or how we can identify it? > > The user has the following caps: > "caps": [ > { "type": "users", > "perm": "*"}]} > > Is there something else to configure? > > > Thank you very much. > > Regards > Philipp > > > >
<<attachment: S3AdminAPI.ZIP>>