[Openstack-operators] swift-recon problem

Amar Kapadia akapadia_usa at yahoo.com
Wed Nov 30 18:50:18 UTC 2011


I am trying out swift-recon but running into problems. Help appreciated :-)!!

 - The standard object server install as per instructions on http://docs.openstack.org/diablo/openstack-object-storage/admin/content/installing-and-configuring-storage-nodes.html does not install swift-recon.

So I did the following:

1. Downloaded swift code from - http://openstack.org/projects/storage/latest-release/

2. sudo cp ~/swift-1.4.3/swift/common/middleware/recon.py /usr/share/pyshared/swift/common/middleware
3. sudo ln -s /usr/share/pyshared/swift/common/middleware/recon.py /usr/lib/pymodules/python2.6/swift/common/middleware
4. Compiled recon.py to generate recon.pyc
5. sudo cp swift-recon* /usr/bin
6. sudo mkdir /var/cache/swift
7. sudo chown swift:swift swift
8. Followed swift-recon instructions from http://swift.openstack.org/admin_guide.html
9. My object-server.conf looks like this:
===
[DEFAULT]
bind_ip = x.x.x.x
workers = 2

[pipeline:main]
pipeline = recon object-server

[filter:recon]
use = egg:swift#recon
recon_cache_path = /var/cache/swift

[app:object-server]
use = egg:swift#object

[object-replicator]

[object-updater]

[object-auditor]
===
10. I restarted the object server
11. When I try the curl command I get the following error:

/etc/swift$ curl -i http://localhost:6030/recon/async
curl: (7) couldn't connect to host

12. Ditto with the cli (the other hosts don't have swift-recon so that's OK, but the first one does, IP addresses masked):

/etc/swift$ sudo swift-recon -d

===============================================================================
[2011-11-30 18:47:24] Checking disk usage on 5 hosts...
-> http://10.x.x.x:6000/recon/diskusage: <urlopen error [Errno 111] ECONNREFUSED>
-> http://10.x.x.x:6000/recon/diskusage: HTTP Error 400: Bad Request
-> http://10.x.x.x:6000/recon/diskusage: HTTP Error 400: Bad Request
-> http://10.x.x.x:6000/recon/diskusage: HTTP Error 400: Bad Request
-> http://10.x.x.x:6000/recon/diskusage: HTTP Error 400: Bad Request
-> http://10.x.x.x:6000/recon/diskusage: Error. No drive info available.
Error: No hosts available or returned valid information.
===============================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111130/5384b2e4/attachment-0002.html>


More information about the Openstack-operators mailing list