<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can get more information about recon at <a href="http://swift.openstack.org/admin_guide.html">http://swift.openstack.org/admin_guide.html</a> <div><br></div><div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Marcelo Martins</div><div>Openstack-Swift  </div><div><a href="mailto:btorch-os@zeroaccess.org">btorch-os@zeroaccess.org</a></div><div><br></div><div><div>“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. “</div></div><div><br></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Nov 30, 2011, at 12:50 PM, Amar Kapadia wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I am trying out swift-recon but running into problems. Help appreciated :-)!!</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "> - The standard object server install as per instructions on <span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; "><a href="http://docs.openstack.org/diablo/openstack-object-storage/admin/content/installing-and-configuring-storage-nodes.html">http://docs.openstack.org/diablo/openstack-object-storage/admin/content/installing-and-configuring-storage-nodes.html</a> does not install swift-recon.</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; "><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; ">So I did the following:</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">1. Downloaded swift code from - <a href="http://openstack.org/projects/storage/latest-release/">http://openstack.org/projects/storage/latest-release/</a></font><br></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">2. sudo cp ~/swift-1.4.3/swift/common/middleware/recon.py /usr/share/pyshared/swift/common/middleware</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">3. sudo ln -s
 /usr/share/pyshared/swift/common/middleware/recon.py /usr/lib/pymodules/python2.6/swift/common/middleware</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">4. Compiled recon.py to generate recon.pyc</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">5. sudo cp swift-recon* /usr/bin</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">6. sudo mkdir /var/cache/swift</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">7. sudo chown swift:swift swift</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">8. Followed swift-recon instructions from </font><a href="http://swift.openstack.org/admin_guide.html">http://swift.openstack.org/admin_guide.html</a></div><div>9. My object-server.conf looks like
 this:</div><div>===</div><div><div>[DEFAULT]</div><div>bind_ip = x.x.x.x</div><div>workers = 2</div><div><br></div><div>[pipeline:main]</div><div>pipeline = recon object-server</div><div><br></div><div>[filter:recon]</div><div>use = egg:swift#recon</div><div>recon_cache_path = /var/cache/swift</div><div><br></div><div>[app:object-server]</div><div>use = egg:swift#object</div><div><br></div><div>[object-replicator]</div><div><br></div><div>[object-updater]</div><div><br></div><div>[object-auditor]</div><div>===</div><div>10. I restarted the object server</div><div>11. When I try the curl command I get the following error:</div><div><br></div><div><div>/etc/swift$ curl -i <a href="http://localhost:6030/recon/async">http://localhost:6030/recon/async</a></div><div>curl: (7) couldn't connect to host</div><div><br></div><div>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):</div><div><br></div><div><div>/etc/swift$ sudo swift-recon
 -d</div><div><br></div><div>===============================================================================</div><div>[2011-11-30 18:47:24] Checking disk usage on 5 hosts...</div><div>-> <a href="http://10.x.x.x:6000/recon/diskusage:">http://10.x.x.x:6000/recon/diskusage:</a> <urlopen error [Errno 111] ECONNREFUSED></div><div>-> <a href="http://10.x.x.x:6000/recon/diskusage:">http://10.x.x.x:6000/recon/diskusage:</a> HTTP Error 400: Bad Request</div><div>-> <a href="http://10.x.x.x:6000/recon/diskusage:">http://10.x.x.x:6000/recon/diskusage:</a> HTTP Error 400: Bad Request</div><div>-> <a href="http://10.x.x.x:6000/recon/diskusage:">http://10.x.x.x:6000/recon/diskusage:</a> HTTP Error 400: Bad Request</div><div>-> <a href="http://10.x.x.x:6000/recon/diskusage:">http://10.x.x.x:6000/recon/diskusage:</a> HTTP Error 400: Bad Request</div><div>-> <a href="http://10.x.x.x:6000/recon/diskusage:">http://10.x.x.x:6000/recon/diskusage:</a> Error. No drive info available.</div><div>Error: No hosts available or returned valid information.</div><div>===============================================================================</div><div><br></div></div></div></div></div></div>_______________________________________________<br>Openstack-operators mailing list<br><a href="mailto:Openstack-operators@lists.openstack.org">Openstack-operators@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators<br></blockquote></div><br></div></body></html>