HI Marcelo ,<br><br>Thanks for the reply ,<br><br>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 .<br>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 ,, <br>
<pre>#!/bin/bash<br><br># Replace swauthkey with whatever your super_admin key is (recorded in<br># /etc/swift/proxy-server.conf).<br>swauth-prep -K swauthkey<br>swauth-add-user -K swauthkey -a test tester testing<br>swauth-add-user -K swauthkey -a test2 tester2 testing2<br>
swauth-add-user -K swauthkey test tester3 testing3<br>swauth-add-user -K swauthkey -a -r reseller reseller reseller</pre><br><br>[shashi@shashi samples]$ curl -v -H 'X-Storage-User: test:tester3' -H 'X-Storage-Pass: testing3' <a href="http://192.168.62.63:8080/auth/v1.0">http://192.168.62.63:8080/auth/v1.0</a><br>
* About to connect() to 192.168.62.63 port 8080<br>* Trying 192.168.62.63... connected<br>* Connected to 192.168.62.63 (192.168.62.63) port 8080<br>> GET /auth/v1.0 HTTP/1.1<br>> 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<br>
> Host: <a href="http://192.168.62.63:8080">192.168.62.63:8080</a><br>> Accept: */*<br>> X-Storage-User: test:tester3<br>> X-Storage-Pass: testing3<br>><br>< HTTP/1.1 200 OK<br>< X-Storage-Url: <a href="http://127.0.0.1:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a">http://127.0.0.1:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a</a><br>
< X-Storage-Token: AUTH_tke67d8d3c037649688bd527a7b77cc287<br>< X-Auth-Token: AUTH_tke67d8d3c037649688bd527a7b77cc287<br>< Content-Length: 112<br>< Date: Fri, 01 Apr 2011 04:31:06 GMT<br>Connection #0 to host 192.168.62.63 left intact<br>
* Closing connection #0<br>{"storage": {"default": "local", "local": "<a href="http://127.0.0.1:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a">http://127.0.0.1:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a</a>"}}[shashi@shashi samples]$<br>
[shashi@shashi samples]$<br><br>[shashi@shashi samples]$ curl -v -H 'X-Auth-Token: AUTH_tke67d8d3c037649688bd527a7b77cc287' <a href="http://192.168.62.63:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a">http://192.168.62.63:8080/v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a</a><br>
* About to connect() to 192.168.62.63 port 8080<br>* Trying 192.168.62.63... connected<br>* Connected to 192.168.62.63 (192.168.62.63) port 8080<br>> GET /v1/AUTH_74ac0809-6c3f-4a0b-a6c8-6a664477b32a HTTP/1.1<br>> 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<br>
> Host: <a href="http://192.168.62.63:8080">192.168.62.63:8080</a><br>> Accept: */*<br>> X-Auth-Token: AUTH_tke67d8d3c037649688bd527a7b77cc287<br>><br>< HTTP/1.1 403 Forbidden<br>< Content-Length: 157<br>
< Content-Type: text/html; charset=UTF-8<br>< Date: Fri, 01 Apr 2011 04:45:35 GMT<br><html><br> <head><br> <title>403 Forbidden</title><br> </head><br> <body><br> <h1>403 Forbidden</h1><br>
Access was denied to this resource.<br /><br /><br><br> </body><br>Connection #0 to host 192.168.62.63 left intact<br>* Closing connection #0<br></html>[shashi@shashi samples]$<br>[shashi@shashi samples]$<br>
<br>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 ?<br><br>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 ?<br>
<br><br>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 ?<br>
<br><br><br>Thanks & Regards,<br>shashi<br> <br><br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 9:35 PM, Marcelo Martins <span dir="ltr"><<a href="mailto:btorch-os@zeroaccess.org">btorch-os@zeroaccess.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;"><div>Sent u a reply for the message below a few minutes ago .... Please reply to <a href="mailto:btorch-os@zeroaccess.org" target="_blank">btorch-os@zeroaccess.org</a> and the list when u do so.. Thanks</div>
<div><br></div><font color="#888888"><br><div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">
<div><span style="font-size: 12px;"><div>Marcelo</div></span></div></div></span><br> </div><br></font><div><div class="im"><div>On Mar 31, 2011, at 4:33 AM, shashidhar v wrote:</div><br></div><blockquote type="cite"><div>
<div></div><div class="h5">HI,<br><br>I am trying to install and test the Swift tool by following the SAIO <br>I have set up the repos and downloaded the code as per the steps given in SAIO <br><br>swift@test3:~/swift$ cd ~/swift/trunk; sudo python setup.py develop<br>
running develop<br>running egg_info<br>creating swift.egg-info<br>writing swift.egg-info/PKG-INFO<br>writing top-level names to swift.egg-info/top_level.txt<br>writing dependency_links to swift.egg-info/dependency_links.txt<br>
writing entry points to swift.egg-info/entry_points.txt<br>writing manifest file 'swift.egg-info/SOURCES.txt'<br>reading manifest file 'swift.egg-info/SOURCES.txt'<br>reading manifest template 'MANIFEST.in'<br>
warning: no files found matching 'ChangeLog'<br>writing manifest file 'swift.egg-info/SOURCES.txt'<br>running build_ext<br>Creating /usr/local/lib/python2.6/dist-packages/swift.egg-link (link to .)<br>Removing swift 1.3-dev from easy-install.pth file<br>
Adding swift 1.3-dev to easy-install.pth file<br>Installing st script to /usr/local/bin<br>Installing swift-account-auditor script to /usr/local/bin<br>Installing swift-account-audit script to /usr/local/bin<br>Installing swift-account-reaper script to /usr/local/bin<br>
Installing swift-account-replicator script to /usr/local/bin<br>Installing swift-account-server script to /usr/local/bin<br>Installing swift-container-auditor script to /usr/local/bin<br>Installing swift-container-replicator script to /usr/local/bin<br>
Installing swift-container-server script to /usr/local/bin<br>Installing swift-container-updater script to /usr/local/bin<br>Installing swift-drive-audit script to /usr/local/bin<br>Installing swift-get-nodes script to /usr/local/bin<br>
Installing swift-init script to /usr/local/bin<br>Installing swift-object-auditor script to /usr/local/bin<br>Installing swift-object-info script to /usr/local/bin<br>Installing swift-object-replicator script to /usr/local/bin<br>
Installing swift-object-server script to /usr/local/bin<br>Installing swift-object-updater script to /usr/local/bin<br>Installing swift-proxy-server script to /usr/local/bin<br>Installing swift-ring-builder script to /usr/local/bin<br>
Installing swift-stats-populate script to /usr/local/bin<br>Installing swift-stats-report script to /usr/local/bin<br>Installing swift-bench script to /usr/local/bin<br>Installing swift-log-uploader script to /usr/local/bin<br>
Installing swift-log-stats-collector script to /usr/local/bin<br>Installing swift-account-stats-logger script to /usr/local/bin<br>Installing swauth-add-account script to /usr/local/bin<br>Installing swauth-add-user script to /usr/local/bin<br>
Installing swauth-cleanup-tokens script to /usr/local/bin<br>Installing swauth-delete-account script to /usr/local/bin<br>Installing swauth-delete-user script to /usr/local/bin<br>Installing swauth-list script to /usr/local/bin<br>
Installing swauth-prep script to /usr/local/bin<br>Installing swauth-set-account-service script to /usr/local/bin<br><br>Installed /home/swift/swift/trunk<br>Processing dependencies for swift==1.3-dev<br>Finished processing dependencies for swift==1.3-dev<br>
swift@test3:~/swift/trunk$ <br><br><br>swift@test3:~$ startmain <br>WARNING: Unable to increase file descriptor limit. Running as non-root?<br>Starting proxy-server...(/etc/swift/proxy-server.conf)<br>Starting container-server...(/etc/swift/container-server/1.conf)<br>
Starting container-server...(/etc/swift/container-server/2.conf)<br>Starting container-server...(/etc/swift/container-server/3.conf)<br>Starting container-server...(/etc/swift/container-server/4.conf)<br>Starting account-server...(/etc/swift/account-server/1.conf)<br>
Starting account-server...(/etc/swift/account-server/2.conf)<br>Starting account-server...(/etc/swift/account-server/3.conf)<br>Starting account-server...(/etc/swift/account-server/4.conf)<br>Starting object-server...(/etc/swift/object-server/1.conf)<br>
Starting object-server...(/etc/swift/object-server/2.conf)<br>Starting object-server...(/etc/swift/object-server/3.conf)<br>Starting object-server...(/etc/swift/object-server/4.conf)<br>Traceback (most recent call last):<br>
File "/usr/local/bin/swift-proxy-server", line 7, in <module><br> execfile(__file__)<br> File "/home/swift/swift/trunk/bin/swift-proxy-server", line 22, in <module><br> run_wsgi(conf_file, 'proxy-server', default_port=8080, **options)<br>
File "/home/swift/swift/trunk/swift/common/wsgi.py", line 123, in run_wsgi<br> sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))<br> File "/home/swift/swift/trunk/swift/common/wsgi.py", line 89, in get_socket<br>
bind_addr)<br>Exception: Could not bind to <a href="http://0.0.0.0:8080" target="_blank">0.0.0.0:8080</a> after trying for 30 seconds<br><br>WARNING: Unable to increase file descriptor limit. Running as non-root?<br>
Starting auth-server...(/etc/swift/auth-server.conf)<br> Traceback (most recent call last):<br> File "/usr/local/bin/swift-auth-server", line 5, in <module><br> pkg_resources.run_script('swift==1.3-dev', 'swift-auth-server')<br>
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in run_script<br> self.require(requires)[0].run_script(script_name, ns)<br> File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1188, in run_script<br>
raise ResolutionError("No script named %r" % script_name)<br> pkg_resources.ResolutionError: No script named 'swift-auth-server'<br><br>swift@test3:~$ <br><br>Kindly help me to resolve the above error <br>
<br>Thanks & Regards,<br>shashi <br><br></div></div><div class="im"> _______________________________________________<br>Openstack-operators mailing list<br><a href="mailto:Openstack-operators@lists.openstack.org" target="_blank">Openstack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br></div></blockquote></div><br></div></blockquote>
</div><br>