It may not be picking up the recon.py file as being in the swift egg. There are probably errors in /var/log/syslog. I've had to manually edit /usr/share/pyshared/swift-1.4.1.egg-info (for 1.4.1) to have the file I wanted included. On Wed, Nov 30, 2011 at 12:50 PM, Amar Kapadia <akapadia_usa at yahoo.com> wrote: > 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. > =============================================================================== > > > _______________________________________________ > Openstack-operators mailing list > Openstack-operators at lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators > -- Jeff Kramer jeffkramer at gmail.com http://www.jeffkramer.org/