Hi everyone,<br><br>Swift (running in labs) is now available to all labs projects to use for integration testing with mediawiki.  It is only available from within labs; it does not have a public IP address.  <br><br>You can reach swift at swift-fe1.pmtpa.wmflabs.  Just as in production, it will respond to requests sent its way using the same URL format as <a href="http://upload.wikimedia.org">upload.wikimedia.org</a>.  For example:<br>
curl -o /tmp/from-swift.jpg -v <a href="http://swift-fe1.pmtpa.wmflabs/wikipedia/commons/thumb/a/a2/Little_kitten_.jpg/45px-Little_kitten_.jpg">http://swift-fe1.pmtpa.wmflabs/wikipedia/commons/thumb/a/a2/Little_kitten_.jpg/45px-Little_kitten_.jpg</a><br>
and<br>curl -o /tmp/from-upload.jpg -v <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Little_kitten_.jpg/45px-Little_kitten_.jpg">http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Little_kitten_.jpg/45px-Little_kitten_.jpg</a><br>
will return files with the same content.<br><br>Swift in labs treats <a href="http://upload.wikimedia.org">upload.wikimedia.org</a> as its back end, so if you request an image that doesn't exist in swift (but does exist in upload), it will use the 404 handler and fetch the real data.  Because of this it will appear to have all the data you need, though will respond slowly at first.<br>
<br>I have only created the commons container, so right now it will only fetch images that exist in commons.  It will return 401 or 500 for all other wikis.  If there is a short list of wikis for which you would like it to work, let me know and I will create them for you.  Alternately, you can join the 'swift' project and follow <a href="http://wikitech.wikimedia.org/view/Swift/Setup_New_Swift_Cluster">the documentation</a> and make them yourself!  :)<br>
<br>Access credentials for mediawiki to interact with swift (1.19 purges images from swift using the swift API, etc.) are:<br>account:user - mw:thumbnail<br>password - userpassword<br><br>These credentials would be secret in any real deploy, but are currently public in labs.  (you can see all the configs in puppet)<br>
<br>For more information about mediawiki integration, talk to Aaron Schulz.  :)<br><br>Enjoy,<br><br>-ben<br>