Cannot Successfully Execute Commands Using Swift CLI

Asked by Richard Raseley

I have configured the Keystone and Swift components of OpenStack using the following guide:

http://docs.openstack.org/trunk/openstack-compute/install/content/

I am now to the point where I would like to test the interaction with swift (using "stat", "upload", and "download"). I have tried the following commands:

(1) swift -A http://$KeystoneURL:5000/v2.0 -U $UserName -K $Password stat

(2) swift -A http://$KeystoneURL:5000/v2.0 -U $TenantName:$UserName -K $Password stat

(1) swift -A http://$KeystoneURL:35357/v2.0 -U $UserName -K $Password stat

(2) swift -A http://$KeystoneURL:35357/v2.0 -U $TenantName:$UserName -K $Password stat

And they all result in the following output:

Traceback (most recent call last):
  File "/usr/bin/swift", line 1972, in <module>
    error_queue)
  File "/usr/bin/swift", line 1432, in st_stat
    headers = conn.head_account()
  File "/usr/bin/swift", line 890, in head_account
    return self._retry(None, head_account)
  File "/usr/bin/swift", line 862, in _retry
    self.http_conn = self.http_connection()
  File "/usr/bin/swift", line 850, in http_connection
    return http_connection(self.url)
  File "/usr/bin/swift", line 140, in http_connection
    parsed = urlparse(url)
  File "/usr/lib/python2.7/urlparse.py", line 135, in urlparse
    tuple = urlsplit(url, scheme, allow_fragments)
  File "/usr/lib/python2.7/urlparse.py", line 174, in urlsplit
    i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'

Nothing is logged in the syslog as I am executing it (viewing with sudo tail -f). I have confirmed (to the best of my ability) that Swift is using Keystone for identity, but am quite honestly stumped. Any help would be appreciated.

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.