Ask Your Question
0

does Swift 1.4.4 support keystone ???

asked 2011-10-17 06:53:03 -0500

tonytkdk gravatar image

Swift 1.4.4 Keystone - diablo

root@SAIO:/etc/swift# swift -A http://10.103.1.134:5000/v1.0 -U admin -K stat -v Traceback (most recent call last): File "/usr/local/bin/swift", line 5, in pkg_resources.run_script('swift==1.4.4', 'swift') File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 467, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1200, in run_script execfile(script_filename, namespace, namespace) File "/usr/local/lib/python2.7/dist-packages/swift-1.4.4-py2.7.egg/EGG-INFO/scripts/swift", line 1853, in error_queue) File "/usr/local/lib/python2.7/dist-packages/swift-1.4.4-py2.7.egg/EGG-INFO/scripts/swift", line 1363, in st_stat headers = conn.head_account() File "/usr/local/lib/python2.7/dist-packages/swift-1.4.4-py2.7.egg/EGG-INFO/scripts/swift", line 818, in head_account return self._retry(None, head_account) File "/usr/local/lib/python2.7/dist-packages/swift-1.4.4-py2.7.egg/EGG-INFO/scripts/swift", line 790, in _retry self.http_conn = self.http_connection() File "/usr/local/lib/python2.7/dist-packages/swift-1.4.4-py2.7.egg/EGG-INFO/scripts/swift", line 778, in http_connection return http_connection(self.url) File "/usr/local/lib/python2.7/dist-packages/swift-1.4.4-py2.7.egg/EGG-INFO/scripts/swift", line 163, in http_connection parsed = urlparse(url) File "/usr/lib/python2.7/urlparse.py", line 134, in urlparse tuple = urlsplit(url, scheme, allow_fragments) File "/usr/lib/python2.7/urlparse.py", line 173, in urlsplit i = url.find(':') AttributeError: 'NoneType' object has no attribute 'find' swift -A http://10.103.1.134:5000/v1.0 -U admin:admin -K * stat -v Auth GET failed: http://10.103.1.134:5000/v1.0 401 Unauthorized

I'm wondering to know that if Swift 1.4.4 compatible with Keystone???

Thanks

edit retag flag offensive close merge delete

12 answers

Sort by ยป oldest newest most voted
0

answered 2011-10-17 14:37:39 -0500

tzn gravatar image

Would you paste your keystone.conf and swift-proxy.conf?

edit flag offensive delete link more
0

answered 2011-10-22 14:15:38 -0500

tonytkdk gravatar image

Hacking keystone DB Set an swift endpoint for the particular tenant And then assign the tenant for the user in "USERS" table

edit flag offensive delete link more
0

answered 2011-11-02 20:28:13 -0500

I appreciate the help. I will do some testing with this and see if I can get a working setup with it.

Thanks. :)

edit flag offensive delete link more
0

answered 2011-11-02 19:51:07 -0500

notmyname gravatar image

contrary to what the keystone docs say, you need to use swiftauth in your proxy server, not tokenauth

[filter:keystone] use = egg:keystone#swiftauth keystone_admin_token = 999888777666 keystone_url = http://127.0.0.1:35357

edit flag offensive delete link more
0

answered 2011-11-02 20:18:59 -0500

is that the complete section for filter:keystone?

do we not have to put the service_port and service_host, etc?

or is this just a subset of the settings that need to be in filter:keystone?

thanks

edit flag offensive delete link more
0

answered 2011-11-02 20:24:10 -0500

notmyname gravatar image

those are the only config variables that the swiftauth middleware requires (as determined by looking at the code). There may be other config options, but if so, I don't know what they are. I only found the required ones by reading the code (since the keystone docs are so out of date).

Disclaimer: I don't know much about keystone and only figured this out in order to see if keystone works. I normally use tempauth for my dev and testing work on swift. The keystone project maintains the integration with the other openstack projects. They are the ones to ask about the keystone middleware details.

edit flag offensive delete link more
0

answered 2011-11-02 19:45:26 -0500

Has anyone resolved this issue?

If so, can you please post the following config files for us as the documentation is not very consistent on this integration.

keystone.conf sampledata.py (or your equivalent) proxy-server.conf

Thanks

edit flag offensive delete link more
0

answered 2011-11-03 14:28:51 -0500

I am still getting this same error. I will keep looking for a solution...

edit flag offensive delete link more
0

answered 2011-10-17 08:43:22 -0500

tonytkdk gravatar image

Swift & keystone on different hosts

edit flag offensive delete link more
0

answered 2011-10-17 18:56:52 -0500

tonytkdk gravatar image

tzn , thanks

Keystone: 192.168.1.105 Swift : 192.168.1.104

keystone conf https://github.com/HugoKuo/SwiftSAIO/blob/master/keystone/keystone.conf (https://github.com/HugoKuo/SwiftSAIO/...)

proxy-server.conf https://github.com/HugoKuo/SwiftSAIO/blob/master/proxy-server.conf.keystone (https://github.com/HugoKuo/SwiftSAIO/...)

Followed git hub openstack/keystone instruction with almost same configurations , it works now~

But still very confuse about some points as follow....

  1. What for ? of these two lines in [filter:keystone] service_port = 8100 service_pass = dTpw

  2. Generate data into keystone DB , should swift port be 8888??? and global = false ???? does the admin endpoint has no effort ? 'endpointTemplates', 'add', 'RegionOne', 'swift', 'http://192.168.1.104:8888/v1/AUTH_%tenant_id%', 'http://swift.admin-nets.local:8080/', 'http://192.168.1.104:8888/v1/AUTH_%tenant_id%', '1', '0'),

  3. Can allow_account_mgm be enabled ??
    #allow_account_management = true account_autocreate = true

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-10-17 06:53:03 -0500

Seen: 166 times

Last updated: Nov 03 '11