Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Operators

swift-recon problem

 

 

OpenStack operators RSS feed   Index | Next | Previous | View Threaded


akapadia_usa at yahoo

Nov 30, 2011, 11:50 AM

Post #1 of 3 (164 views)
Permalink
swift-recon problem

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.html>


jeffkramer at gmail

Nov 30, 2011, 11:57 AM

Post #2 of 3 (181 views)
Permalink
swift-recon problem [In reply to]

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/


btorch-os at zeroaccess

Dec 1, 2011, 1:47 PM

Post #3 of 3 (160 views)
Permalink
swift-recon problem [In reply to]

You can get more information about recon at http://swift.openstack.org/admin_guide.html


Marcelo Martins
Openstack-Swift
btorch-os at zeroaccess.org

?Knowledge is the wings on which our aspirations take flight and soar. When it comes to surfing and life if you know what to do you can do it. If you desire anything become educated about it and succeed. ?





On Nov 30, 2011, at 12:50 PM, Amar Kapadia 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20111201/30d003ba/attachment.html>

OpenStack operators RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.