pkg_resources.DistributionNotFound: keystone

Asked by Hugo Kou

While using keystone as auth server on SWIFT 1.4.4

Test with tempauth first , and everything is fine ...

While I change auth server to keystone , there's a issue during start swift proxy-server

Trace error
http://pastebin.com/spnfCA7m
pkg_resources.DistributionNotFound: keystone

python-pkg-resources version is 0.6.15(Ubuntu Natty)

Swift's proxy-server.conf
http://pastebin.com/mHufAd82

Keystone server is isolated from other services @10.103.0.26

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Dennis DeMarco
Solved:
Last query:
Last reply:
Revision history for this message
Best Dennis DeMarco (dennis-demarco) said :
#1

I had the same issue when I tried to install keystone on its own server. Install keystone on the swift-proxy-server will add the needed package resources. Even if you have no intention of running keystone on the proxy-server, there is a python library it needs to interface with it.

Let me know if that works. I am currently doing the same and I have got past this issue doing this.

- Dennis

Revision history for this message
sunhee Park (sunny790821) said :
#2

After installing keystone on the same server which was installed swift-proxy, that error doesn't show.
But is this the only way?

Revision history for this message
Hugo Kou (tonytkdk) said :
#3

I think it's the fastest way ....

Thanks for your help ...

I'm facing another issue .....while auth by keystone for swift .... got 401 unauthorized
with same keystone for Nova , everything is working well ....

I guess that I miss something in the swift command...

My cmd is

swift -A http://192.168.1.100:5000/v1.0 -U admin:admin -K adminpass stat

Am I wrong ?

Revision history for this message
Hugo Kou (tonytkdk) said :
#4

Thanks Dennis DeMarco, that solved my question.