Project

General

Profile

Actions

Bug #27364

open

Swift example command got "Method Not Allowed (HTTP 405)"

Added by Dai Dang Van over 5 years ago. Updated over 5 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
rgw, swift
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Does anyone got the same one?

As I saw, swift client use V3 as a default for now, so
we should pass an explicit version for the example command

My env:

  • python-swiftclient==3.5.0
  • ceph-radosgw-13.2.1-0.el7.x86_64

My problem:

swift -A http://10.0.0.11:7480/auth/1.0 -U daikk115:swift -K IrPgTuqd6ObBTbLyWnLbZJx1asUZDpPF96KajM7J list --debug
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://10.0.0.11:7480/auth/1.0/auth/tokens
DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.0.0.11
DEBUG:requests.packages.urllib3.connectionpool:http://10.0.0.11:7480 "POST /auth/1.0/auth/tokens HTTP/1.1" 405 127
DEBUG:keystoneclient.session:Request returned failure status: 405
ERROR:swiftclient.service:Authorization Failure. Authorization failed: Method Not Allowed (HTTP 405)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 909, in _list_account_job
headers=req_headers
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1742, in get_account
full_listing=full_listing, headers=headers)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1679, in _retry
self.url, self.token = self.get_auth()
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1631, in get_auth
timeout=self.timeout)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 685, in get_auth
auth_version=auth_version)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 597, in get_auth_keystone
raise ClientException('Authorization Failure. %s' % err)
ClientException: Authorization Failure. Authorization failed: Method Not Allowed (HTTP 405)
Authorization Failure. Authorization failed: Method Not Allowed (HTTP 405)

Actions #1

Updated by Dai Dang Van over 5 years ago

Dai Dang Van wrote:

Does anyone got the same one?

As I saw, swift client use V3 as a default for now, so
we should pass an explicit version for the example command

My env:

  • python-swiftclient==3.5.0
  • ceph-radosgw-13.2.1-0.el7.x86_64

My problem:

swift -A http://10.0.0.11:7480/auth/1.0 -U daikk115:swift -K IrPgTuqd6ObBTbLyWnLbZJx1asUZDpPF96KajM7J list --debug
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://10.0.0.11:7480/auth/1.0/auth/tokens
DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.0.0.11
DEBUG:requests.packages.urllib3.connectionpool:http://10.0.0.11:7480 "POST /auth/1.0/auth/tokens HTTP/1.1" 405 127
DEBUG:keystoneclient.session:Request returned failure status: 405
ERROR:swiftclient.service:Authorization Failure. Authorization failed: Method Not Allowed (HTTP 405)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 909, in _list_account_job
headers=req_headers
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1742, in get_account
full_listing=full_listing, headers=headers)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1679, in _retry
self.url, self.token = self.get_auth()
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1631, in get_auth
timeout=self.timeout)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 685, in get_auth
auth_version=auth_version)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 597, in get_auth_keystone
raise ClientException('Authorization Failure. %s' % err)
ClientException: Authorization Failure. Authorization failed: Method Not Allowed (HTTP 405)
Authorization Failure. Authorization failed: Method Not Allowed (HTTP 405)

This is my propose for update.
Actions #2

Updated by Abhishek Lekshmanan over 5 years ago

  • Status changed from New to Fix Under Review
Actions

Also available in: Atom PDF