swift1.4.9 "No tenant specified"

Bug #982909 reported by jiji
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Pete Zaitcev

Bug Description

Recently, git code swift1.4.9 ,Commend:swift -V 2 -A http://keystone_server_host:5000/v2.0 -U admintenant:admin -K openstack stat , It returns: No tenant specified

Revision history for this message
jiji (zzww-666) wrote :

Recently, git code swift1.4.9 ,Command:swift -V 2 -A http://keystone_server_host:5000/v2.0 -U admintenant:admin -K openstack stat , It returns: No tenant specified

Revision history for this message
Rob Hirschfeld (robhirschfeld) wrote : Re: [Bug 982909] [NEW] swift1.4.9 "No tenant specified"q

----- Original Message -----
From: jiji [mailto:<email address hidden>]
Sent: Monday, April 16, 2012 04:15 AM
To: Hirschfeld, Rob
Subject: [Bug 982909] [NEW] swift1.4.9 "No tenant specified"

Public bug reported:

Recently, git code swift1.4.9 ,Commend:swift -V 2 -A
http://keystone_server_host:5000/v2.0 -U admintenant:admin -K openstack
stat , It returns: No tenant specified

** Affects: swift
     Importance: Undecided
         Status: New

--
You received this bug notification because you are a member of Swift,
which is subscribed to OpenStack Object Storage (swift).
https://bugs.launchpad.net/bugs/982909

Title:
  swift1.4.9 "No tenant specified"

Status in OpenStack Object Storage (Swift):
  New

Bug description:
  Recently, git code swift1.4.9 ,Commend:swift -V 2 -A
  http://keystone_server_host:5000/v2.0 -U admintenant:admin -K
  openstack stat , It returns: No tenant specified

To manage notifications about this bug go to:
https://bugs.launchpad.net/swift/+bug/982909/+subscriptions

Revision history for this message
Pete Zaitcev (zaitcev) wrote :

I tried to address this problem, but screwed it up. Here's my change:
 https://review.openstack.org/#/c/6697/

The right way to restore it is to add the checking for ':' inside _get_auth_v2_0(), so that -V 1 continued to work as before.

Changed in swift:
assignee: nobody → Pete Zaitcev (zaitcev)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.openstack.org/6697
Committed: http://github.com/openstack/swift/commit/6b9135200779f7ab8cfd212fc93496e522d32de2
Submitter: Jenkins
Branch: master

commit 6b9135200779f7ab8cfd212fc93496e522d32de2
Author: Pete Zaitcev <email address hidden>
Date: Thu Apr 26 10:58:07 2012 -0600

    Restore the syntax -U tenant:user

    On a relatively recent build of swift, all my scripts blew up with
    "No tenant specified". It was caused by the fix to add --os_tenant_name,
    commit ID: 208b8e85a80e46ddb49dc2035cb292570a20c7db

    This patch restores the old behavior. I tested it to work with old
    swauth-based Swift, new Keystone-based Swift, in the latter case using
    both -U and --os_tenant_name arguments.

    Note that this patch permits to use a literal colon in the user name
    with the new syntax, as long as tenant is specified. Empty tenant
    names are not allowed with either syntax.

    Change-Id: I7785e6981a9d6281d0421c43875ee19d61d5ff43
    Bug: 982909

Changed in swift:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in swift:
milestone: none → 1.5.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.