Project

General

Profile

Bug #9310

Rados gateway swift subuser creation problem on FIREFLY

Added by karan singh over 9 years ago. Updated over 9 years ago.

Status:
Duplicate
Priority:
Urgent
Assignee:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I have two problems both related to Rados gateway swift user creation on FIREFLY

Ceph version 0.80.5
Centos 6.5 , Kernel 2.6.32.-338

Problem 1 : I am unable to create a sub user for swift in radios gateway. Below is the output ( Before upgrading from Emperor to Firefly i was able create swift user without any problem )

# radosgw-admin user create --display-name="epouta cloud services" --uid=epouta
{ "user_id": "epouta",
  "display_name": "epouta cloud services",
  "email": "",
  "suspended": 0,
  "max_buckets": 1000,
  "auid": 0,
  "subusers": [],
  "keys": [
        { "user": "epouta",
          "access_key": "839233HZBS3NNDM6FT21",
          "secret_key": "1JdgCdO\/T0tuFth4dpz1AG2IW9jMpFQ8RURpPCy8"}],
  "swift_keys": [],
  "caps": [],
  "op_mask": "read, write, delete",
  "default_placement": "",
  "placement_tags": [],
  "bucket_quota": { "enabled": false,
      "max_size_kb": -1,
      "max_objects": -1},
  "user_quota": { "enabled": false,
      "max_size_kb": -1,
      "max_objects": -1},
  "temp_url_keys": []}
#
#
#
#
#
# radosgw-admin subuser create --uid=epouta --subuser=epouta:swiftepouta --access=full --secret=secretkey --key-type=swift
could not create subuser: unable to create subuser, unable to store user info
2014-08-28 16:20:32.870795 7f7b3d02b820  0 WARNING: can't store user info, swift id () already mapped to another user (epouta)
#
#
#
# radosgw-admin user create --display-name="epouta cloud services" --subuser=epouta:swiftepouta --access=full --secret=secretkey --key-type=swift
2014-08-28 16:21:37.361332 7f350b492820  0 max_buckets=1000 specified=0
could not create user: 2014-08-28 16:21:37.369288 7f350b492820  0 WARNING: can't store user info, swift id () already mapped to another user (epouta)
unable to create user, unable to store user info
#

Problem 2:  Before upgrading from Emperor to Firefly , i had a swift account as csc:swift and that  working without any problem , after i have done cluster up gradation to Firefly , that swift account suddenly stop working . here is the output 

# radosgw-admin user info --uid=csc
{ "user_id": "csc",
  "display_name": "csc cloud services",
  "email": "",
  "suspended": 0,
  "max_buckets": 1000,
  "auid": 0,
  "subusers": [
        { "id": "csc:swift",
          "permissions": "full-control"}],
  "keys": [
        { "user": "csc",
          "access_key": "SN04RLC4GVQBFIYNEJQG",
          "secret_key": "tCWCXrlGWAx\/kVjO\/Vqsqn1BflaLyAbzS7t7uM4N"}],
  "swift_keys": [
        { "user": "csc:swift",
          "secret_key": "secretkey"}],
  "caps": [],
  "op_mask": "read, write, delete",
  "default_placement": "",
  "placement_tags": [],
  "bucket_quota": { "enabled": false,
      "max_size_kb": -1,
      "max_objects": -1},
  "user_quota": { "enabled": false,
      "max_size_kb": -1,
      "max_objects": -1},
  "temp_url_keys": []}
#
#
# swift -V 1.0 -A http://<My-hostname>/auth -U csc:swift -K secretkey list
Account not found
#
#

http://tracker.ceph.com/issues/9002 says that its a bug in Firefly , but it does not have solution / workaround for this.


Related issues

Related to rgw - Bug #8587: rgw: subuser object not created correctly Resolved 06/11/2014
Related to rgw - Bug #9155: Swift Subuser - 403 Forbidden - during upload/post Resolved 08/18/2014

History

#1 Updated by Sage Weil over 9 years ago

  • Project changed from Ceph to rgw
  • Category deleted (22)
  • Target version deleted (0.85)

#2 Updated by Sage Weil over 9 years ago

  • Status changed from New to Duplicate

there is a pending pull request to fix.. #9155

Also available in: Atom PDF