[Openstack-operators] failed to run the auth-server deamon for SAIO setup

shashidhar v shashidhar.velagandula at gmail.com
Fri Apr 1 06:35:14 UTC 2011


HI Marcelo ,

Thanks for the reply ,

1. W.r.t problem #1 , I have stopped the tomcat service which is using the
port 8080 and then started the swift service without any errors .
It is using "swauth" auth. mechanisam  as you mentioned swift-1.3 develop
supports only swauth ,then  created the accounts using "recreateaccounts"
script of SAIO ,,

#!/bin/bash

# Replace swauthkey with whatever your super_admin key is (recorded in
# /etc/swift/proxy-server.conf).
swauth-prep -K swauthkey
swauth-add-user -K swauthkey -a test tester testing
swauth-add-user -K swauthkey -a test2 tester2 testing2
swauth-add-user -K swauthkey test tester3 testing3
swauth-add-user -K swauthkey -a -r reseller reseller reseller



[shashi at shashi samples]$ curl -v -H 'X-Storage-User: test:tester3' -H
'X-Storage-Pass: testing3' http://192.168.62.63:8080/auth/v1.0
* About to connect() to 192.168.62.63 port 8080
*   Trying 192.168.62.63... connected
* Connected to 192.168.62.63 (192.168.62.63) port 8080
> GET /auth/v1.0 HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5
OpenSSL/0.9.7a zlib/1.2.3 libidn/0.6.14
> Host: 192.168.62.63:8080
> Accept: */*
> X-Storage-User: test:tester3
> X-Storage-Pass: testing3
>
< HTTP/1.1 200 OK
< X-Storage-Url:
http://127.0.0.1:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a
< X-Storage-Token: AUTH_tke67d8d3c037649688bd527a7b77cc287
< X-Auth-Token: AUTH_tke67d8d3c037649688bd527a7b77cc287
< Content-Length: 112
< Date: Fri, 01 Apr 2011 04:31:06 GMT
Connection #0 to host 192.168.62.63 left intact
* Closing connection #0
{"storage": {"default": "local", "local": "
http://127.0.0.1:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a
"}}[shashi at shashi samples]$
[shashi at shashi samples]$

[shashi at shashi samples]$ curl -v -H 'X-Auth-Token:
AUTH_tke67d8d3c037649688bd527a7b77cc287'
http://192.168.62.63:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a
* About to connect() to 192.168.62.63 port 8080
*   Trying 192.168.62.63... connected
* Connected to 192.168.62.63 (192.168.62.63) port 8080
> GET /v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5
OpenSSL/0.9.7a zlib/1.2.3 libidn/0.6.14
> Host: 192.168.62.63:8080
> Accept: */*
> X-Auth-Token: AUTH_tke67d8d3c037649688bd527a7b77cc287
>
< HTTP/1.1 403 Forbidden
< Content-Length: 157
< Content-Type: text/html; charset=UTF-8
< Date: Fri, 01 Apr 2011 04:45:35 GMT
<html>
 <head>
  <title>403 Forbidden</title>
 </head>
 <body>
  <h1>403 Forbidden</h1>
  Access was denied to this resource.<br /><br />

 </body>
Connection #0 to host 192.168.62.63 left intact
* Closing connection #0
</html>[shashi at shashi samples]$
[shashi at shashi samples]$

In the above script,  the third user is tester3 (non admin) which is not
allowed to create containers ? Then what's the role of non-admin users
created under swift , what operations they can perform ?

Swift supports ACL or not and  the containers/objects created by a admin
user can be shared with non-admin user for atleast downloading the objects ?


2.  In order to check the "devauth" authentication , I have donwloaded the
swift-1.2.0.tar.gz  in a second test node ,  what's the command to build the
code ,, sudo python setup.py develop   or  anyother command I need to use ?
Whether same SAIO doc can be referred to start the deamons ?



Thanks & Regards,
shashi



On Thu, Mar 31, 2011 at 9:35 PM, Marcelo Martins
<btorch-os at zeroaccess.org>wrote:

> Sent u a reply for the message below a few minutes ago .... Please reply
> to btorch-os at zeroaccess.org and the list when u do so.. Thanks
>
>
> Marcelo
>
>
> On Mar 31, 2011, at 4:33 AM, shashidhar v wrote:
>
> HI,
>
> I am trying to install and test the Swift tool by following the SAIO
> I have set up the repos and downloaded the code as per the steps given in
> SAIO
>
> swift at test3:~/swift$ cd ~/swift/trunk; sudo python setup.py develop
> running develop
> running egg_info
> creating swift.egg-info
> writing swift.egg-info/PKG-INFO
> writing top-level names to swift.egg-info/top_level.txt
> writing dependency_links to swift.egg-info/dependency_links.txt
> writing entry points to swift.egg-info/entry_points.txt
> writing manifest file 'swift.egg-info/SOURCES.txt'
> reading manifest file 'swift.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'ChangeLog'
> writing manifest file 'swift.egg-info/SOURCES.txt'
> running build_ext
> Creating /usr/local/lib/python2.6/dist-packages/swift.egg-link (link to .)
> Removing swift 1.3-dev from easy-install.pth file
> Adding swift 1.3-dev to easy-install.pth file
> Installing st script to /usr/local/bin
> Installing swift-account-auditor script to /usr/local/bin
> Installing swift-account-audit script to /usr/local/bin
> Installing swift-account-reaper script to /usr/local/bin
> Installing swift-account-replicator script to /usr/local/bin
> Installing swift-account-server script to /usr/local/bin
> Installing swift-container-auditor script to /usr/local/bin
> Installing swift-container-replicator script to /usr/local/bin
> Installing swift-container-server script to /usr/local/bin
> Installing swift-container-updater script to /usr/local/bin
> Installing swift-drive-audit script to /usr/local/bin
> Installing swift-get-nodes script to /usr/local/bin
> Installing swift-init script to /usr/local/bin
> Installing swift-object-auditor script to /usr/local/bin
> Installing swift-object-info script to /usr/local/bin
> Installing swift-object-replicator script to /usr/local/bin
> Installing swift-object-server script to /usr/local/bin
> Installing swift-object-updater script to /usr/local/bin
> Installing swift-proxy-server script to /usr/local/bin
> Installing swift-ring-builder script to /usr/local/bin
> Installing swift-stats-populate script to /usr/local/bin
> Installing swift-stats-report script to /usr/local/bin
> Installing swift-bench script to /usr/local/bin
> Installing swift-log-uploader script to /usr/local/bin
> Installing swift-log-stats-collector script to /usr/local/bin
> Installing swift-account-stats-logger script to /usr/local/bin
> Installing swauth-add-account script to /usr/local/bin
> Installing swauth-add-user script to /usr/local/bin
> Installing swauth-cleanup-tokens script to /usr/local/bin
> Installing swauth-delete-account script to /usr/local/bin
> Installing swauth-delete-user script to /usr/local/bin
> Installing swauth-list script to /usr/local/bin
> Installing swauth-prep script to /usr/local/bin
> Installing swauth-set-account-service script to /usr/local/bin
>
> Installed /home/swift/swift/trunk
> Processing dependencies for swift==1.3-dev
> Finished processing dependencies for swift==1.3-dev
> swift at test3:~/swift/trunk$
>
>
> swift at test3:~$ startmain
> WARNING: Unable to increase file descriptor limit.  Running as non-root?
> Starting proxy-server...(/etc/swift/proxy-server.conf)
> Starting container-server...(/etc/swift/container-server/1.conf)
> Starting container-server...(/etc/swift/container-server/2.conf)
> Starting container-server...(/etc/swift/container-server/3.conf)
> Starting container-server...(/etc/swift/container-server/4.conf)
> Starting account-server...(/etc/swift/account-server/1.conf)
> Starting account-server...(/etc/swift/account-server/2.conf)
> Starting account-server...(/etc/swift/account-server/3.conf)
> Starting account-server...(/etc/swift/account-server/4.conf)
> Starting object-server...(/etc/swift/object-server/1.conf)
> Starting object-server...(/etc/swift/object-server/2.conf)
> Starting object-server...(/etc/swift/object-server/3.conf)
> Starting object-server...(/etc/swift/object-server/4.conf)
> Traceback (most recent call last):
>   File "/usr/local/bin/swift-proxy-server", line 7, in <module>
>     execfile(__file__)
>   File "/home/swift/swift/trunk/bin/swift-proxy-server", line 22, in
> <module>
>     run_wsgi(conf_file, 'proxy-server', default_port=8080, **options)
>   File "/home/swift/swift/trunk/swift/common/wsgi.py", line 123, in
> run_wsgi
>     sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
>   File "/home/swift/swift/trunk/swift/common/wsgi.py", line 89, in
> get_socket
>     bind_addr)
> Exception: Could not bind to 0.0.0.0:8080 after trying for 30 seconds
>
> WARNING: Unable to increase file descriptor limit.  Running as non-root?
> Starting auth-server...(/etc/swift/auth-server.conf)
> Traceback (most recent call last):
>   File "/usr/local/bin/swift-auth-server", line 5, in <module>
>     pkg_resources.run_script('swift==1.3-dev', 'swift-auth-server')
>   File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in
> run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1188, in
> run_script
>     raise ResolutionError("No script named %r" % script_name)
> pkg_resources.ResolutionError: No script named 'swift-auth-server'
>
> swift at test3:~$
>
> Kindly help me to resolve the above error
>
> Thanks & Regards,
> shashi
>
> _______________________________________________
> Openstack-operators mailing list
> Openstack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20110401/2351229c/attachment-0002.html>


More information about the Openstack-operators mailing list