<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Blog entries (Logilab.org) RSS Feed</title>
    <description />
    <link>http://www.logilab.org/view?rql=Any%20X%20%20ORDERBY%20D%20DESC%20LIMIT%2015%20WHERE%20X%20creation_date%20D%2C%20X%20is%20BlogEntry</link>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/logilaborg" /><feedburner:info uri="logilaborg" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><thespringbox:skin xmlns:thespringbox="http://www.thespringbox.com/dtds/thespringbox-1.0.dtd">http://feeds.feedburner.com/logilaborg?format=skin</thespringbox:skin><item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/133321</guid>
  <title>Pylint 10th years anniversary from June 17  to 19 in Toulouse</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/Tuw3w2VP7TQ/133321</link>
  <description>&lt;p&gt;After a quick survey, we're officially scheduling Pylint 10th years anniversary sprint from monday, June 17 to wednesday, June 19 in &lt;a class="reference" href="http://www.logilab.fr/contact"&gt;Logilab's Toulouse&lt;/a&gt; office.&lt;/p&gt;
&lt;p&gt;There is still some room available if more people want to come, drop me a note (sylvain dot thenault at logilab dot fr).&lt;/p&gt;
</description>
  <dc:date>2013-04-18T14:37-01:00</dc:date>
  <dc:creator>Sylvain Thenault</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/133321</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/129458</guid>
  <title>Pylint development moving to BitBucket</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/msVIm341AE8/129458</link>
  <description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;After 10 years of hosting Pylint on our own forge at logilab.org, we've decided to publish version 1.0 and move Pylint and astng development to &lt;a class="reference" href="https://bitbucket.org/logilab/pylint"&gt;BitBucket&lt;/a&gt;. There has been repository mirrors there for some time, but we intend now to use all BitBucket features, notably Pull Request, to handle various development tasks.&lt;/p&gt;
&lt;p&gt;There are several reasons behind this. First, using both BitBucket and our own forge is rather cumbersome, for integrators at least. This is mainly because BitBucket doesn't provide support for Mercurial's &lt;a class="reference" href="http://mercurial.selenic.com/wiki/ChangesetEvolution"&gt;changeset evolution&lt;/a&gt; feature while our forge relies on it. Second, our forge has several usability drawbacks that make it hard to use for newcomers, and we lack the time to be responsive on this. Finally, we think that our quality-control process, as exposed by our forge, is a bit heavy for such community projects and may keep potential contributors away.&lt;/p&gt;
&lt;p&gt;All in all, we hope this will help to have a wider contributor audience as well as more regular maintainers / integrators which are not Logilab employees. And so, bring the best Pylint possible to the Python community!&lt;/p&gt;
&lt;p&gt;Logilab.org web pages will be updated to mention this, but kept as there is still valuable information there (eg tickets). We may also keep automatic tests and package building services there.&lt;/p&gt;
&lt;p&gt;So, please use &lt;a class="reference" href="https://bitbucket.org/logilab/pylint"&gt;https://bitbucket.org/logilab/pylint&lt;/a&gt; as main web site regarding pylint development. Bug reports, feature requests as well as contributions should be done there. The same move will be done for Pylint's underlying library, logilab-astng (&lt;a class="reference" href="https://bitbucket.org/logilab/astng"&gt;https://bitbucket.org/logilab/astng&lt;/a&gt;). We also wish in this process to move it out of the 'logilab' python package. It may be a good time to give it another name, if you have any idea don't hesitate to express yourself.&lt;/p&gt;
&lt;p&gt;Last but not least, remember that &lt;a class="reference" href="http://www.pylint.org"&gt;Pylint home page&lt;/a&gt; may be edited using &lt;a class="reference" href="https://bitbucket.org/logilab/pylint.org"&gt;Mercurial&lt;/a&gt;, and that the new &lt;a class="reference" href="http://docs.pylint.org"&gt;http://docs.pylint.org&lt;/a&gt; is generated using the content found in &lt;a class="reference" href="https://bitbucket.org/logilab/pylint/src"&gt;Pylint source&lt;/a&gt; &lt;cite&gt;doc&lt;/cite&gt; subdirectory.&lt;/p&gt;
&lt;p&gt;Pylint turning 10 and moving out of its parents is probably a good time to thank Logilab for paying me and some colleagues to create and maintain this project!&lt;/p&gt;
&lt;img alt="https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Apr/05/pylint-logo-1661676867-0_avatar.png" src="https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Apr/05/pylint-logo-1661676867-0_avatar.png" /&gt;
</description>
  <dc:date>2013-04-16T17:31-01:00</dc:date>
  <dc:creator>Sylvain Thenault</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/129458</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/124658</guid>
  <title>PyLint 10th years anniversary, 1.0 sprint</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/4gcsddtWeZ4/124658</link>
  <description>&lt;p&gt;In a few week, pylint will be 10 years old (0.1 released on may 19 2003!).
At this occasion, I would like to release a 1.0. Well, not exactly at that date,
but not too long after would be great. Also, I think it would be a good time
to have a few days sprint to work a bit on this 1.0 but also to meet all together
and talk about pylint status and future, as more and more contributions come from
outside Logilab (actually mostly Google, which employs Torsten and Martin, the most
active contributors recently).&lt;/p&gt;
&lt;p&gt;The first thing to do is to decide a date and place. Having discussed a bit with
Torsten about that, it seems reasonable to target a  sprint during june or july.
Due to personal constraints, I would like to host this sprint in Logilab's
Toulouse office.&lt;/p&gt;
&lt;p&gt;So, who would like to jump in and sprint to make pylint even better? I've created
a doodle so every one interested may tell his preferences:
&lt;a class="reference" href="http://doodle.com/4uhk26zryis5x7as"&gt;http://doodle.com/4uhk26zryis5x7as&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regarding the location, is everybody ok with Toulouse? Other ideas are Paris, or
Florence around EuroPython, or... &amp;lt;add your proposition here&amp;gt;.&lt;/p&gt;
&lt;p&gt;We'll talk about the sprint topics later, but there are plenty of exciting ideas
around there.&lt;/p&gt;
&lt;p&gt;Please, answer quickly so we can move on. And I hope to see you all there!&lt;/p&gt;
</description>
  <dc:date>2013-03-29T16:20-01:00</dc:date>
  <dc:creator>Sylvain Thenault</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/124658</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/121327</guid>
  <title>Release of PyLint 0.27 / logilab-astng 0.24.2</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/4WyBlM8EWXM/121327</link>
  <description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I'm very pleased to announce the release of pylint &lt;a class="reference" href="http://www.logilab.org/project/pylint/0.27.0"&gt;0.27&lt;/a&gt; and
logilab-astng &lt;a class="reference" href="http://www.logilab.org/project/logilab-astng/0.24.2"&gt;0.24.2&lt;/a&gt;. There has been a lot of enhancements and
bug fixes since the latest release, so you're strongly encouraged
to upgrade. Here is a detailed list of changes:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/20693"&gt;#20693&lt;/a&gt;: replace pylint.el by Ian Eure version (patch by J.Kotta)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/105327"&gt;#105327&lt;/a&gt;: add support for --disable=all option and deprecate the
'disable-all' inline directive in favour of 'skip-file' (patch by
A.Fayolle)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/110840"&gt;#110840&lt;/a&gt;: add messages I0020 and I0021 for reporting of suppressed
messages and useless suppression pragmas. (patch by Torsten Marek)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/112728"&gt;#112728&lt;/a&gt;: add warning E0604 for non-string objects in __all__
(patch by Torsten Marek)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/120657"&gt;#120657&lt;/a&gt;: add warning W0110/deprecated-lambda when a map/filter
of a lambda could be a comprehension (patch by Martin Pool)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/113231"&gt;#113231&lt;/a&gt;: logging checker now looks at instances of Logger classes
in addition to the base logging module. (patch by Mike Bryant)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/111799"&gt;#111799&lt;/a&gt;: don't warn about octal escape sequence, but warn about o
which is not octal in Python (patch by Martin Pool)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/110839"&gt;#110839&lt;/a&gt;: bind &amp;lt;F5&amp;gt; to Run button in pylint-gui&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/115580"&gt;#115580&lt;/a&gt;: fix erroneous W0212 (access to protected member) on super call
(patch by Martin Pool)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/110853"&gt;#110853&lt;/a&gt;: fix a crash when an __init__ method in a base class has been
created by assignment rather than direct function definition (patch by
Torsten Marek)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/110838"&gt;#110838&lt;/a&gt;: fix pylint-gui crash when include-ids is activated (patch by
Omega Weapon)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/112667"&gt;#112667&lt;/a&gt;: fix emission of reimport warnings for mixed imports and extend
the testcase (patch by Torsten Marek)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/112698"&gt;#112698&lt;/a&gt;: fix crash related to non-inferable __all__ attributes and
invalid __all__ contents (patch by Torsten Marek)&lt;/li&gt;
&lt;li&gt;Python 3 related fixes:&lt;ul&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/110213"&gt;#110213&lt;/a&gt;: fix import of checkers broken with python 3.3, causing
&amp;quot;No such message id W0704&amp;quot; breakage&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/120635"&gt;#120635&lt;/a&gt;: redefine cmp function used in pylint.reporters&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Include full warning id for I0020 and I0021 and make sure to flush
warnings after each module, not at the end of the pylint run.
(patch by Torsten Marek)&lt;/li&gt;
&lt;li&gt;Changed the regular expression for inline options so that it must be
preceeded by a # (patch by Torsten Marek)&lt;/li&gt;
&lt;li&gt;Make dot output for import graph predictable and not depend
on ordering of strings in hashes. (patch by Torsten Marek)&lt;/li&gt;
&lt;li&gt;Add hooks for import path setup and move pylint's sys.path
modifications into them. (patch by Torsten Marek)&lt;/li&gt;
&lt;li&gt;pylint-brain: more subprocess.Popen faking (see &lt;a class="reference" href="http://www.logilab.org/ticket/46273"&gt;#46273&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/109562"&gt;#109562&lt;/a&gt; [jython]: java modules have no __doc__, causing crash&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/120646"&gt;#120646&lt;/a&gt; [py3]: fix for python3.3 _ast changes which may cause crash&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.logilab.org/ticket/109988"&gt;#109988&lt;/a&gt; [py3]: test fixes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Many thanks to all the people who contributed to this release!&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;
</description>
  <dc:date>2013-02-28T18:37-01:00</dc:date>
  <dc:creator>Sylvain Thenault</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/121327</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/120046</guid>
  <title>FOSDEM 2013</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/9KZH8K7IUbA/120046</link>
  <description>&lt;p&gt;I was in Bruxelles for FOSDEM 2013. As with previous FOSDEM there were too many
interesting talks and people to see. Here is a summary of what I saw:&lt;/p&gt;
&lt;p&gt;In the Mozilla's room:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;The html5 pdf viewer &lt;a class="reference" href="https://mozillalabs.com/en-US/pdfjs/"&gt;pdfjs&lt;/a&gt; is impressive. The PDF specification is really
scary but this full featured &amp;quot;native&amp;quot; viewer is able to renders most of it
with very good performance. Have a look at the &lt;a class="reference" href="http://mozilla.github.com/pdf.js/web/viewer.html"&gt;pdfjs demo&lt;/a&gt;!&lt;/li&gt;
&lt;/ol&gt;
&lt;ol class="arabic simple" start="2"&gt;
&lt;li&gt;Firefox debug tools overview with a specific focus of &lt;a class="reference" href="https://github.com/mozilla/r2d2b2g"&gt;Firefox OS emulator&lt;/a&gt; in
your browser.&lt;/li&gt;
&lt;/ol&gt;
&lt;ol class="arabic simple" start="3"&gt;
&lt;li&gt;Introduction to webl10n: an internationalization format and library used in
&lt;a class="reference" href="http://www.mozilla.org/en-US/firefoxos/"&gt;Firefox OS&lt;/a&gt;.  A successful mix that results in a format that is idiot-proof
enough for a duck to use, that relies on Unicode specifications to handle
complex pluralization rules and that allows cascading translation
definitions.&lt;/li&gt;
&lt;/ol&gt;
&lt;img alt="typical webl10n user" src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Red-crested.pochard.slimbridge.arp.jpg/307px-Red-crested.pochard.slimbridge.arp.jpg" /&gt;
&lt;ol class="arabic simple" start="4"&gt;
&lt;li&gt;Status of html5 video and audio support in Firefox. The topic looks like a
real headache but the team seems to be doing really well. Special mention
for the reverse demo effect: The speaker expected some format to be still
unsupported but someone else apparently implemented them over night.&lt;/li&gt;
&lt;li&gt;Last but not least I gave a talk about the &lt;a class="reference" href="http://mercurial.selenic.com/wiki/ChangesetEvolution"&gt;changeset evolution concept&lt;/a&gt; that
I'm putting in Mercurial. Thanks goes to Feth for asking me his
&lt;em&gt;not-scripted-at-all-questions&lt;/em&gt; during this talk. (&lt;a class="reference" href="https://www.logilab.org/file/120870/raw/evolve_talk.pdf"&gt;slides&lt;/a&gt;)&lt;/li&gt;
&lt;/ol&gt;
&lt;img alt="http://www.selenic.com/hg-logo/logo-droplets-150.png" src="http://www.selenic.com/hg-logo/logo-droplets-150.png" /&gt;
&lt;p&gt;In the &lt;a class="reference" href="http://www.postgresql.org/"&gt;postgresql&lt;/a&gt; room:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;Insightful talk about more event trigger in postgresql engine and how this may
becomes the perfect way to break your system.&lt;/li&gt;
&lt;li&gt;Full update of the capability of &lt;a class="reference" href="http://postgis.net/"&gt;postgis&lt;/a&gt; 2.0. The postgis suite was already
impressive for storing and querying 2D data, but it now have impressive
capability regarding &lt;a class="reference" href="http://gvsig3d.blogspot.fr/2011/07/coming-soon-postgis-3d.html"&gt;3D&lt;/a&gt; data.&lt;/li&gt;
&lt;/ol&gt;
&lt;img alt="http://upload.wikimedia.org/wikipedia/en/6/60/PostGIS_logo.png" src="http://upload.wikimedia.org/wikipedia/en/6/60/PostGIS_logo.png" /&gt;
&lt;p&gt;On python related topic:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.aldebaran-robotics.com/en/"&gt;Aldebaran Robotic&lt;/a&gt; are currently opening &lt;a class="reference" href="https://github.com/aldebaran/"&gt;most of their code&lt;/a&gt;. And
they are a perfect example of the value of python for implementing high level
logic.&lt;/li&gt;
&lt;/ul&gt;
&lt;img alt="http://www.python.org/community/logos/python-logo-master-v3-TM-flattened.png" src="http://www.python.org/community/logos/python-logo-master-v3-TM-flattened.png" /&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Victor Stinner has started an interesting project to improve CPython
performance. The first one: &lt;a class="reference" href="https://bitbucket.org/haypo/astoptimizer/"&gt;astoptimizer&lt;/a&gt; breaks some of the language
semantics to apply optimisation on compiling to byte code (lookup caching,
constant folding,…). The other, &lt;a class="reference" href="http://hg.python.org/sandbox/registervm/"&gt;registervm&lt;/a&gt; is a full redefinition of how the interpreter
handles reference in byte code.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After the FOSDEM, I crossed the channel to attend a Mercurial sprint in London.
Expect more on this topic soon.&lt;/p&gt;
</description>
  <dc:date>2013-02-13T12:05-01:00</dc:date>
  <dc:creator>Pierre-Yves David</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/120046</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/116824</guid>
  <title>Febuary 2013: Mercurial channel "tour"</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/eNlWPdsJug4/116824</link>
  <description>&lt;p&gt;The Release candidate version of &lt;a class="reference" href="http://mercurial.selenic.com/wiki/WhatsNew#Mercurial_2.5-rc_.282013-01-20.29"&gt;Mercurial 2.5&lt;/a&gt; was released last sunday.&lt;/p&gt;
&lt;img alt="http://mercurial.selenic.com/images/mercurial-logo.png" class="align-center" src="http://mercurial.selenic.com/images/mercurial-logo.png" /&gt;
&lt;p&gt;This new version makes a major change in the way &amp;quot;hidden&amp;quot; changesets are
handled.  In 2.4 only hg log (and a few others) would support effectively
hiding &amp;quot;hidden&amp;quot; changesets.  Now all hg commands are transparently compatible
with the hidden revision concept.  This is a considerable step towards
&lt;a class="reference" href="http://mercurial.selenic.com/wiki/ChangesetEvolution"&gt;changeset evolution&lt;/a&gt;, the next-generation collaboration technology that I'm
developing for Mercurial.&lt;/p&gt;
&lt;!-- This approach is compatible with the idea behind mercurial to provide simple commands for --&gt;
&lt;!-- simple uses and increase the complexity of the commands with the complexity of the use. --&gt;
&lt;img alt="https://fosdem.org/2013/assets/flyer-thumb-0505d19dbf3cf6139bc7490525310f8e253e60448a29ed4313801b723d5b2ef1.png" class="align-center" src="https://fosdem.org/2013/assets/flyer-thumb-0505d19dbf3cf6139bc7490525310f8e253e60448a29ed4313801b723d5b2ef1.png" /&gt;
&lt;p&gt;The 2.5 cycle is almost over, but there is no time to rest yet, Saturday the 2th of
February, I will &lt;a class="reference" href="https://fosdem.org/2013/schedule/event/changeset_evolution_with_mercurial_the_next_generation_of_dvcs_features/"&gt;give a talk about changeset evolution concept&lt;/a&gt; at &lt;a class="reference" href="https://fosdem.org/2013/"&gt;FOSDEM&lt;/a&gt; in the
Mozilla Room. This talk in an updated version of the one I gave at
&lt;cite&gt;OSDC.fr 2012&lt;/cite&gt; (&lt;a class="reference" href="http://www.dailymotion.com/video/xuh369_osdc-fr-2012-changesets-evolution-mercurial-secoue-le-monde-du-dvcs_tech#.UP6rW6j0rEw"&gt;video in french&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;The week after, I'm crossing the channel to attend the &lt;a class="reference" href="http://mercurial.selenic.com/wiki/2.6sprint"&gt;Mercurial 2.6 Sprint&lt;/a&gt;
hosted by Facebook London. I expect a lot of discussion about the user
interface and network access of changeset evolution.&lt;/p&gt;
&lt;img alt="The HG 2.3 sprint" class="align-center" src="http://www.logilab.org/file/92955?vid=download" /&gt;
</description>
  <dc:date>2013-01-22T17:17-01:00</dc:date>
  <dc:creator>Pierre-Yves David</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/116824</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/115219</guid>
  <title>Building Debian images for an OpenStack (private) cloud</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/PjjQLeWFFec/115219</link>
  <description>&lt;p&gt;Now I have a &lt;a class="reference" href="http://www.logilab.org/blogentry/114769"&gt;working OpenStack cloud&lt;/a&gt; at &lt;a class="reference" href="http://www.logilab.fr"&gt;Logilab&lt;/a&gt;, I want to provide
my fellow collegues a bunch of ready-made images to create instances.&lt;/p&gt;
&lt;p&gt;Strangely, there are no really usable ready-made UEC Debian images
available out there. There have been recent efforts made to provide
&lt;a class="reference" href="https://aws.amazon.com/marketplace/seller-profile/ref=srh_res_product_vendor?ie=UTF8&amp;amp;id=890be55d-32d8-4bc8-9042-2b4fd83064d5"&gt;Debian images on Amazon Market Place&lt;/a&gt;, and the toolsuite used to
build these is available as a collection of bash shell scripts from
a &lt;a class="reference" href="https://github.com/andsens/ec2debian-build-ami"&gt;github repository&lt;/a&gt;. There are also &lt;a class="reference" href="http://emis.eucalyptus.com/"&gt;some images for Eucalyptus&lt;/a&gt;,
but I have not been able to make them boot properly on my kvm-based
OpenStack install.&lt;/p&gt;
&lt;p&gt;So I have tried to build my own set of Debian images to upload in my
&lt;a class="reference" href="http://docs.openstack.org/developer/glance/"&gt;glance&lt;/a&gt; shop.&lt;/p&gt;
&lt;div class="section" id="vocabulary"&gt;
&lt;h3&gt;&lt;a&gt;Vocabulary&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;A bit of vocabulary may be useful for the one not very accustomed with
OpenStack nor AWS &lt;em&gt;jargons&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;When you want to create an instance of an &lt;em&gt;image&lt;/em&gt;, ie. boot a virtual
machine in a cloud, you generally choose from a set of ready made
system images, then you choose a virtual machine &lt;em&gt;flavor&lt;/em&gt; (ie. a
combination of a number of virtual CPUs, an amount of RAM, and a
harddrive size used as root device). Generally, you have to choose
between &lt;em&gt;tiny&lt;/em&gt; (1 CPU, 512MB, no disk), &lt;em&gt;small&lt;/em&gt; (1 CPU, 2G of RAM, 20G
of disk), etc.&lt;/p&gt;
&lt;p&gt;In the cloud world, an instance is not meant to be sustainable. What
is sustainable is a &lt;em&gt;volume&lt;/em&gt; that can be attached to a running instance.&lt;/p&gt;
&lt;p&gt;If you want your instance to be sustainable, there are 2 choices:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;you can snapshot a running instance and upload it as a new image ;
so it is not really a sustainable instance, instead, it's the
ability to configure an instance that is then the base for booting
other instances,&lt;/li&gt;
&lt;li&gt;or you can boot an instance from a &lt;em&gt;volume&lt;/em&gt; (which is the
sustainable part of a virtual machine in a cloud).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the Amazon world, a &amp;quot;standard&amp;quot; image (the one that is instanciated
when creating a new instance) is called an instance store-backed AMI
images, also called an UEC image, and a &lt;em&gt;volume&lt;/em&gt; image is called an
EBS-backed AMI image (EBS stands for Elastic Block Storage). So an AMI
images stored in a &lt;em&gt;volume&lt;/em&gt; cannot be instanciated, it can be booted
once and only once at a time. But it is sustainable. Different usage.&lt;/p&gt;
&lt;p&gt;An UEC or AMI image consist in a triplet: a kernel, an init ramdisk
and a root file system image. An EBS-backed image is just the raw
image disk to be booted on a virtulization host (a kvm raw or qcow2
image, etc.)&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="images-in-openstack"&gt;
&lt;h3&gt;&lt;a&gt;Images in OpenStack&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;In OpenStack, when you create an instance from a given image, what
happens depends on the kind of image.&lt;/p&gt;
&lt;p&gt;In fact, in OpenStack, one can upload traditional UEC AMI images (need
to upload the 3 files, the kernel, the initial ramdisk and the root
filesystem as a raw image). But one can also upload &lt;em&gt;bare&lt;/em&gt;
images. These kind of images are booted directly by the
virtualization host. So it is some kind of hybrid between a boot from
volume (an EBS-backed boot in the Amazon world) and the traditional
instanciation from an UEC image.&lt;/p&gt;
&lt;div class="section" id="instanciating-an-ami-image"&gt;
&lt;h4&gt;&lt;a&gt;Instanciating an AMI image&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;When one creates an instance from an AMI image in an OpenStack cloud:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;the kernel is copied to the virtualization host,&lt;/li&gt;
&lt;li&gt;the initial ramdisk is copied to the virtualization host,&lt;/li&gt;
&lt;li&gt;the root FS image is copied to the virtualization host,&lt;/li&gt;
&lt;li&gt;then, the root FS image is :&lt;ul&gt;
&lt;li&gt;duplicated (instanciated),&lt;/li&gt;
&lt;li&gt;resized (the file is increased if needed) to the size of the asked
instance &lt;em&gt;flavor&lt;/em&gt;,&lt;/li&gt;
&lt;li&gt;the file system is resized to the new size of the file,&lt;/li&gt;
&lt;li&gt;the contained filesystem is mounted (using qemu-nbd) and the
configured SSH acces key is added to
&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;/root/.ssh/authorized_keys&lt;/span&gt;&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;the nbd volume is then unmounted&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;a libvirt domain is created, configured to boot from the given
kernel and init ramdisk, using the resized and modified image disk
as root filesystem,&lt;/li&gt;
&lt;li&gt;the libvirt domain is then booted.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="instantiating-a-bare-image"&gt;
&lt;h4&gt;&lt;a&gt;Instantiating a BARE image&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;When one creates an instance from a BARE image in an OpenStack cloud:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;the VM image file is copied on the virtualization host,&lt;/li&gt;
&lt;li&gt;the VM image file is duplicated (instantiated),&lt;/li&gt;
&lt;li&gt;a libvirt domain is created, configured to boot from this copied
image disk as root filesystem,&lt;/li&gt;
&lt;li&gt;the libvirt domain is then booted.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="differences-between-the-2-instantiation-methods"&gt;
&lt;h4&gt;&lt;a&gt;Differences between the 2 instantiation methods&lt;/a&gt;&lt;/h4&gt;
&lt;dl class="docutils"&gt;
&lt;dt&gt;Instantiating a BARE image:&lt;/dt&gt;
&lt;dd&gt;&lt;ul class="first last simple"&gt;
&lt;li&gt;Involves a much simpler process.&lt;/li&gt;
&lt;li&gt;Allows to boot a non-linux system (depends on the virtualization
system, especially true when using kvm vitualization).&lt;/li&gt;
&lt;li&gt;Is slower to boot and consumes more resources, since the virtual
machine image must be the size of the required/wanted virtual
machine (but can remain minimal if using a qcow2 image format). If
you use a 10G raw image, then 10G of data will be copied from the
image provider to the virtualization host, and this big file will
be duplicated each time you instantiate this image.&lt;/li&gt;
&lt;li&gt;The root filesystem size corresponding to the &lt;em&gt;flavor&lt;/em&gt; of the
instance is not honored; the filesystem size is the one of the
BARE images.&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;Instantiating an AMI image:&lt;/dt&gt;
&lt;dd&gt;&lt;ul class="first last simple"&gt;
&lt;li&gt;Honours the &lt;em&gt;flavor&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Generally allows quicker instance creation process.&lt;/li&gt;
&lt;li&gt;Less resource consumption.&lt;/li&gt;
&lt;li&gt;Can only boot Linux guests.&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;If one wants to boot a Windows guest in OpenStack, the only solution
(as far as I know) is to use a BARE image of an installed Windows
system. It works (I have succeeded in doing so), but a minimal Windows
7 install is several GB, so instantiating such a BARE image is very
slow, because the image needs to be uploaded on the virtualization
host.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="building-a-debian-ami-image"&gt;
&lt;h3&gt;&lt;a&gt;Building a Debian AMI image&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;So I wanted to provide a minimal Debian image in my cloud, and to
provide it as an AMI image so the &lt;em&gt;flavor&lt;/em&gt; is honoured, and so the
standard cloud injection mechanisms (like setting up the ssh key to
access the VM) work without having to &lt;a class="reference" href="http://wiki.debian.org/Cloud/CreateEucalyptusImage#line-172"&gt;tweak the rc.local script&lt;/a&gt; or use
&lt;a class="reference" href="https://help.ubuntu.com/community/CloudInit"&gt;cloud-init&lt;/a&gt; in my guest.&lt;/p&gt;
&lt;p&gt;Here is what I did.&lt;/p&gt;
&lt;div class="section" id="install-a-debian-system-in-a-standard-libvirt-kvm-guest"&gt;
&lt;h4&gt;&lt;a&gt;1. Install a Debian system in a standard libvirt/kvm guest.&lt;/a&gt;&lt;/h4&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;virt-install  --connect qemu+tcp://virthost/system   &lt;span class="se"&gt;\&lt;/span&gt;
                 -n openstack-squeeze-amd64 -r 512 &lt;span class="se"&gt;\&lt;/span&gt;
                 -l http://ftp2.fr.debian.org/pub/debian/dists/stable/main/installer-amd64/ &lt;span class="se"&gt;\&lt;/span&gt;
                 --disk &lt;span class="nv"&gt;pool&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;default,bus&lt;span class="o"&gt;=&lt;/span&gt;virtio,type&lt;span class="o"&gt;=&lt;/span&gt;qcow2,size&lt;span class="o"&gt;=&lt;/span&gt;5 &lt;span class="se"&gt;\&lt;/span&gt;
                 --network &lt;span class="nv"&gt;bridge&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;vm7,model&lt;span class="o"&gt;=&lt;/span&gt;virtio  --nographics  &lt;span class="se"&gt;\&lt;/span&gt;
                 --extra-args&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;console=tty0 console=ttyS0,115200&amp;#39;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This creates a new virtual machine, launch the Debian installer
directly downloaded from a Debian mirror, and start the usual Debian
installer in a virtual serial console (I don't like VNC very much).&lt;/p&gt;
&lt;p&gt;I then followed the installation procedure. When asked for the
partitioning and so, I chose to create only one primary partition
(ie. with no swap partition; it wont be necessary here). I also chose
only &amp;quot;Default system&amp;quot; and &amp;quot;SSH server&amp;quot; to be installed.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="configure-the-system"&gt;
&lt;h4&gt;&lt;a&gt;2. Configure the system&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;After the installation process, the VM is rebooted, I log into it (by
SSH or via the console), so I can configure a bit the system.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;ssh root@openstack-squeeze-amd64.vm.logilab.fr
Linux openstack-squeeze-amd64 2.6.32-5-amd64 &lt;span class="c"&gt;#1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64&lt;/span&gt;

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms &lt;span class="k"&gt;for &lt;/span&gt;each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Dec 23 20:14:24 2012 from 192.168.1.34
root@openstack-squeeze-amd64:~# apt-get update
root@openstack-squeeze-amd64:~# apt-get install vim curl parted &lt;span class="c"&gt;# install some must have packages&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
root@openstack-squeeze-amd64:~# dpkg-reconfigure locales &lt;span class="c"&gt;# I like to have fr_FR and en_US in my locales&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
root@openstack-squeeze-amd64:~# &lt;span class="nb"&gt;echo &lt;/span&gt;virtio_baloon &amp;gt;&amp;gt; /etc/modules
root@openstack-squeeze-amd64:~# &lt;span class="nb"&gt;echo &lt;/span&gt;acpiphp &amp;gt;&amp;gt; /etc/modules
root@openstack-squeeze-amd64:~# update-initramfs -u
root@openstack-squeeze-amd64:~# apt-get clean
root@openstack-squeeze-amd64:~# rm /etc/udev/rules.d/70-persistent-net.rules
root@openstack-squeeze-amd64:~# rm .bash_history
root@openstack-squeeze-amd64:~# poweroff
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;What we do here is to install some packages, do some
configurations. The important part is adding the &lt;tt class="docutils literal"&gt;acpiphp&lt;/tt&gt; module so
the volume attachment will work in our instances. We also clean some
stuffs up before shutting the VM down.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="convert-the-image-into-an-ami-image"&gt;
&lt;h4&gt;&lt;a&gt;3. Convert the image into an AMI image&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Since I created the VM image as a qcow2 image, I needed to convert it back to a raw image:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;scp root@virthost:/var/lib/libvirt/images/openstack-squeeze-amd64.img .
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;qemu-img convert -O raw openstack-squeeze-amd64.img openstack-squeeze-amd64.raw
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then, as I want a minimal-sized disk image, the filesystem must be
resized to minimal. I did this like described below, but I think there
are simpler methods to do so.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;fdisk -l openstack-squeeze-amd64.raw  &lt;span class="c"&gt;# display the partition location in the disk&lt;/span&gt;

Disk openstack-squeeze-amd64.raw: 5368 MB, 5368709120 bytes
149 heads, 8 sectors/track, 8796 cylinders, total 10485760 sectors
&lt;span class="nv"&gt;Units&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; sectors of 1 * &lt;span class="nv"&gt;512&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; 512 bytes
Sector size &lt;span class="o"&gt;(&lt;/span&gt;logical/physical&lt;span class="o"&gt;)&lt;/span&gt;: 512 bytes / 512 bytes
I/O size &lt;span class="o"&gt;(&lt;/span&gt;minimum/optimal&lt;span class="o"&gt;)&lt;/span&gt;: 512 bytes / 512 bytes
Disk identifier: 0x0001fab7

                   Device Boot      Start         End      Blocks   Id  System
debian-squeeze-amd64.raw1            2048    10483711     5240832   83  Linux
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="c"&gt;# extract the filesystem from the image&lt;/span&gt;
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;dd &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;openstack-squeeze-amd64.raw &lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;openstack-squeeze-amd64.ami &lt;span class="nv"&gt;bs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1024 &lt;span class="nv"&gt;skip&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1024 &lt;span class="nv"&gt;count&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;5240832
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;losetup /dev/loop1 openstack-squeeze-amd64.ami
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;mkdir /tmp/img
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;mount /dev/loop1 /tmp/img
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;cp /tmp/img/boot/vmlinuz-2.6.32-5-amd64 .
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;cp /tmp/img/boot/initrd.img-2.6.32-5-amd64 .
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;umount /tmp/img
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;e2fsck -f /dev/loop1 &lt;span class="c"&gt;# required before a resize&lt;/span&gt;

e2fsck 1.42.5 &lt;span class="o"&gt;(&lt;/span&gt;29-Jul-2012&lt;span class="o"&gt;)&lt;/span&gt;
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/loop1: 26218/327680 files &lt;span class="o"&gt;(&lt;/span&gt;0.2% non-contiguous&lt;span class="o"&gt;)&lt;/span&gt;, 201812/1310208 blocks
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;resize2fs -M /dev/loop1 &lt;span class="c"&gt;# minimize the filesystem&lt;/span&gt;

resize2fs 1.42.5 &lt;span class="o"&gt;(&lt;/span&gt;29-Jul-2012&lt;span class="o"&gt;)&lt;/span&gt;
Resizing the filesystem on /dev/loop1 to 191461 &lt;span class="o"&gt;(&lt;/span&gt;4k&lt;span class="o"&gt;)&lt;/span&gt; blocks.
The filesystem on /dev/loop1 is now 191461 blocks long.
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="c"&gt;# note the new size ^^^^ and the block size above (4k)&lt;/span&gt;
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;losetup -d /dev/loop1 &lt;span class="c"&gt;# detach the lo device&lt;/span&gt;
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;dd &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;debian-squeeze-amd64.ami &lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;debian-squeeze-amd64-reduced.ami &lt;span class="nv"&gt;bs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;4096 &lt;span class="nv"&gt;count&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;191461
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="upload-in-openstack"&gt;
&lt;h4&gt;&lt;a&gt;4. Upload in OpenStack&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;After all this, you have a kernel image, a init ramdisk file and a
minimized root filesystem image file. So you just have to upload them to
your OpenStack image provider (glance):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;glance add &lt;span class="nv"&gt;disk_format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;aki &lt;span class="nv"&gt;container_format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;aki &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;debian-squeeze-uec-x86_64-kernel&amp;quot;&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
                 &amp;lt; vmlinuz-2.6.32-5-amd64
Uploading image &lt;span class="s1"&gt;&amp;#39;debian-squeeze-uec-x86_64-kernel&amp;#39;&lt;/span&gt;
&lt;span class="o"&gt;==================================================================================[&lt;/span&gt;100%&lt;span class="o"&gt;]&lt;/span&gt; 24.1M/s, ETA  0h  0m  0s
Added new image with ID: 644e59b8-1503-403f-a4fe-746d4dac2ff8
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;glance add &lt;span class="nv"&gt;disk_format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ari &lt;span class="nv"&gt;container_format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ari &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;debian-squeeze-uec-x86_64-initrd&amp;quot;&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
                 &amp;lt; initrd.img-2.6.32-5-amd64
Uploading image &lt;span class="s1"&gt;&amp;#39;debian-squeeze-uec-x86_64-initrd&amp;#39;&lt;/span&gt;
&lt;span class="o"&gt;==================================================================================[&lt;/span&gt;100%&lt;span class="o"&gt;]&lt;/span&gt; 26.7M/s, ETA  0h  0m  0s
Added new image with ID: 6f75f1c9-1e27-4cb0-bbe0-d30defa8285c
david@host:~&lt;span class="nv"&gt;$ &lt;/span&gt;glance add &lt;span class="nv"&gt;disk_format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ami &lt;span class="nv"&gt;container_format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;ami &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;debian-squeeze-uec-x86_64&amp;quot;&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
                 &lt;span class="nv"&gt;kernel_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;644e59b8-1503-403f-a4fe-746d4dac2ff8 &lt;span class="nv"&gt;ramdisk_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;6f75f1c9-1e27-4cb0-bbe0-d30defa8285c &lt;span class="se"&gt;\&lt;/span&gt;
                 &amp;lt; debian-squeeze-amd64-reduced.ami
Uploading image &lt;span class="s1"&gt;&amp;#39;debian-squeeze-uec-x86_64&amp;#39;&lt;/span&gt;
&lt;span class="o"&gt;==================================================================================[&lt;/span&gt;100%&lt;span class="o"&gt;]&lt;/span&gt; 42.1M/s, ETA  0h  0m  0s
Added new image with ID: 4abc09ae-ea34-44c5-8d54-504948e8d1f7
&lt;/pre&gt;&lt;/div&gt;
&lt;img alt="http://www.logilab.org/file/115220?vid=download" src="http://www.logilab.org/file/115220?vid=download" style="width: 80%;" /&gt;
&lt;p&gt;And that's it (!). I now have a working Debian squeeze image in my cloud that works fine:&lt;/p&gt;
&lt;img alt="http://www.logilab.org/file/115221?vid=download" src="http://www.logilab.org/file/115221?vid=download" style="width: 80%;" /&gt;
&lt;/div&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-12-23T22:15-01:00</dc:date>
  <dc:creator>David Douard</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/115219</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/115136</guid>
  <title>Nazca is out !</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/VFI6Y8QtT5A/115136</link>
  <description>&lt;div class="section" id="what-is-it-for"&gt;
&lt;h3&gt;&lt;a&gt;What is it for ?&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;a class="reference" href="https://www.logilab.org/project/Nazca"&gt;Nazca&lt;/a&gt; is a python library aiming to
help you to &lt;em&gt;align data&lt;/em&gt;. But, what does “align data”&amp;nbsp;mean? For instance,
you have a list of cities, described by their name and their country and you
would like to find their URI on dbpedia to have more information about them, as
the longitude and the latitude.  If you have two or three cities, it can be done
with bare hands, but it could not if there are hundreds or thousands cities.
Nazca provides you all the stuff we need to do it.&lt;/p&gt;
&lt;p&gt;This blog post aims to introduce you how this library works and can be used.
Once you have understood the main concepts behind this library, don't hesitate
to try Nazca &lt;a class="reference" href="http://demo.cubicweb.org/nazca/view?vid=nazca"&gt;online&lt;/a&gt; !&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="introduction"&gt;
&lt;h3&gt;&lt;a&gt;Introduction&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The alignment process is divided into three main steps:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;Gather and format the data we want to align.
In this step, we define two sets called the &lt;tt class="docutils literal"&gt;alignset&lt;/tt&gt; and the
&lt;tt class="docutils literal"&gt;targetset&lt;/tt&gt;. The &lt;tt class="docutils literal"&gt;alignset&lt;/tt&gt; contains our data, and the
&lt;tt class="docutils literal"&gt;targetset&lt;/tt&gt; contains the data on which we would like to make the links.&lt;/li&gt;
&lt;li&gt;Compute the similarity between the items gathered.  We compute a distance
matrix between the two sets according to a given distance.&lt;/li&gt;
&lt;li&gt;Find the items having a high similarity thanks to the distance matrix.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="section" id="simple-case"&gt;
&lt;h4&gt;&lt;a&gt;Simple case&lt;/a&gt;&lt;/h4&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;Let's define &lt;tt class="docutils literal"&gt;alignset&lt;/tt&gt; and &lt;tt class="docutils literal"&gt;targetset&lt;/tt&gt; as simple python lists.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;alignset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Victor Hugo&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Albert Camus&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;targetset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Albert Camus&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Guillaume Apollinaire&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Victor Hugo&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;ol class="arabic" start="2"&gt;
&lt;li&gt;&lt;p class="first"&gt;Now, we have to compute the similarity between each items. For that purpose, the
&lt;a class="reference" href="http://en.wikipedia.org/wiki/Levenshtein_distance"&gt;Levenshtein distance&lt;/a&gt;
&lt;a class="footnote-reference" href="#id2" id="id1"&gt;[1]&lt;/a&gt;, which is well accurate to compute the distance between few words, is used.
Such a function is provided in the &lt;tt class="docutils literal"&gt;nazca.distance&lt;/tt&gt; module.&lt;/p&gt;
&lt;p&gt;The next step is to compute the distance matrix according to the Levenshtein
distance. The result is given in the following table.&lt;/p&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="22%" /&gt;
&lt;col width="22%" /&gt;
&lt;col width="36%" /&gt;
&lt;col width="20%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;&amp;nbsp;&lt;/th&gt;
&lt;th class="head"&gt;&lt;p class="first last"&gt;Albert Camus&lt;/p&gt;
&lt;/th&gt;
&lt;th class="head"&gt;&lt;p class="first last"&gt;Guillaume Apollinaire&lt;/p&gt;
&lt;/th&gt;
&lt;th class="head"&gt;&lt;p class="first last"&gt;Victor Hugo&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;&lt;p class="first last"&gt;Victor Hugo&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;p class="first last"&gt;6&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;p class="first last"&gt;9&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;p class="first last"&gt;0&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;p class="first last"&gt;Albert Camus&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;p class="first last"&gt;0&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;p class="first last"&gt;8&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;p class="first last"&gt;6&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;The alignment process is ended by reading the matrix and saying items having a
value inferior to a given threshold are identical.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;table class="docutils footnote" frame="void" id="id2" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#id1"&gt;[1]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Also called the &lt;em&gt;edit distance&lt;/em&gt;, because the distance between two words
is equal to the number of single-character edits required to change one
word into the other.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div class="section" id="a-more-complex-one"&gt;
&lt;h4&gt;&lt;a&gt;A more complex one&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The previous case was simple, because we had only one &lt;em&gt;attribute&lt;/em&gt; to align (the
name), but it is frequent to have a lot of &lt;em&gt;attributes&lt;/em&gt; to align, such as the name
and the birth date and the birth city. The steps remain the same, except that
three distance matrices will be computed, and &lt;em&gt;items&lt;/em&gt; will be represented as
nested lists. See the following example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;alignset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Paul Dupont&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;14-08-1991&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Paris&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
            &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Jacques Dupuis&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;06-01-1999&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Bressuire&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
            &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Michel Edouard&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;18-04-1881&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Nantes&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt;
&lt;span class="n"&gt;targetset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Dupond Paul&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;14/08/1991&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Paris&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
             &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Edouard Michel&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;18/04/1881&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Nantes&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
             &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Dupuis Jacques &amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;06/01/1999&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Bressuire&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
             &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Dupont Paul&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;01-12-2012&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;Paris&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In such a case, two distance functions are used, the Levenshtein one for the
name and the city and a temporal one for the birth date &lt;a class="footnote-reference" href="#id5" id="id3"&gt;[2]&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt class="docutils literal"&gt;cdist&lt;/tt&gt; function of &lt;tt class="docutils literal"&gt;nazca.distances&lt;/tt&gt; enables us to compute those
matrices&amp;nbsp;:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;For the names:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;nazca&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;matrix&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cdist&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;alignset&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;targetset&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;                    &lt;span class="s"&gt;&amp;#39;levenshtein&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;matrix_normalized&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([[&lt;/span&gt; &lt;span class="mf"&gt;1.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;6.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;5.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
       &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="mf"&gt;5.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;6.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;5.&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
       &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="mf"&gt;6.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;6.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;6.&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;float32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="22%" /&gt;
&lt;col width="18%" /&gt;
&lt;col width="22%" /&gt;
&lt;col width="22%" /&gt;
&lt;col width="18%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;&amp;nbsp;&lt;/th&gt;
&lt;th class="head"&gt;Dupond Paul&lt;/th&gt;
&lt;th class="head"&gt;Edouard Michel&lt;/th&gt;
&lt;th class="head"&gt;Dupuis Jacques&lt;/th&gt;
&lt;th class="head"&gt;Dupont Paul&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;Paul Dupont&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Jacques Dupuis&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Edouard Michel&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;For the birthdates:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;nazca&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;matrix&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cdist&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;alignset&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;targetset&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;                    &lt;span class="s"&gt;&amp;#39;temporal&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;matrix_normalized&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([[&lt;/span&gt;     &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;40294.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="mf"&gt;2702.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="mf"&gt;7780.&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
       &lt;span class="p"&gt;[&lt;/span&gt;  &lt;span class="mf"&gt;2702.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;42996.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="mf"&gt;5078.&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
       &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="mf"&gt;40294.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;      &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;42996.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;48074.&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;float32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="20%" /&gt;
&lt;col width="20%" /&gt;
&lt;col width="20%" /&gt;
&lt;col width="20%" /&gt;
&lt;col width="20%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;&amp;nbsp;&lt;/th&gt;
&lt;th class="head"&gt;14/08/1991&lt;/th&gt;
&lt;th class="head"&gt;18/04/1881&lt;/th&gt;
&lt;th class="head"&gt;06/01/1999&lt;/th&gt;
&lt;th class="head"&gt;01-12-2012&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;14-08-1991&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;40294&lt;/td&gt;
&lt;td&gt;2702&lt;/td&gt;
&lt;td&gt;7780&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;06-01-1999&lt;/td&gt;
&lt;td&gt;2702&lt;/td&gt;
&lt;td&gt;42996&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;5078&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;18-04-1881&lt;/td&gt;
&lt;td&gt;40294&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;42996&lt;/td&gt;
&lt;td&gt;48074&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;For the birthplaces:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;nazca&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;matrix&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cdist&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;alignset&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;targetset&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;                    &lt;span class="s"&gt;&amp;#39;levenshtein&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;matrix_normalized&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([[&lt;/span&gt; &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;4.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;8.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
       &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="mf"&gt;8.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;9.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;8.&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
       &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="mf"&gt;4.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;0.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;9.&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mf"&gt;4.&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;float32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="25%" /&gt;
&lt;col width="16%" /&gt;
&lt;col width="18%" /&gt;
&lt;col width="25%" /&gt;
&lt;col width="16%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;&amp;nbsp;&lt;/th&gt;
&lt;th class="head"&gt;Paris&lt;/th&gt;
&lt;th class="head"&gt;Nantes&lt;/th&gt;
&lt;th class="head"&gt;Bressuire&lt;/th&gt;
&lt;th class="head"&gt;Paris&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;Paris&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Bressuire&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Nantes&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The next step is gathering those three matrices into a global one, called the
&lt;cite&gt;global alignment matrix&lt;/cite&gt;. Thus we have :&lt;/p&gt;
&lt;table border="1" class="docutils"&gt;
&lt;colgroup&gt;
&lt;col width="10%" /&gt;
&lt;col width="23%" /&gt;
&lt;col width="23%" /&gt;
&lt;col width="23%" /&gt;
&lt;col width="23%" /&gt;
&lt;/colgroup&gt;
&lt;thead valign="bottom"&gt;
&lt;tr&gt;&lt;th class="head"&gt;&amp;nbsp;&lt;/th&gt;
&lt;th class="head"&gt;0&lt;/th&gt;
&lt;th class="head"&gt;1&lt;/th&gt;
&lt;th class="head"&gt;2&lt;/th&gt;
&lt;th class="head"&gt;3&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;40304&lt;/td&gt;
&lt;td&gt;2715&lt;/td&gt;
&lt;td&gt;7780&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2715&lt;/td&gt;
&lt;td&gt;43011&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;5091&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;40304&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;43011&lt;/td&gt;
&lt;td&gt;48084&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Allowing some misspelling mistakes (for example &lt;em&gt;Dupont&lt;/em&gt; and &lt;em&gt;Dupond&lt;/em&gt; are very
closed), the matching threshold can be set to 1 or 2. Thus we can see that the
item 0 in our &lt;tt class="docutils literal"&gt;alignset&lt;/tt&gt; is the same that the item 0 in the &lt;tt class="docutils literal"&gt;targetset&lt;/tt&gt;, the
1 in the &lt;tt class="docutils literal"&gt;alignset&lt;/tt&gt; and the 2 of the &lt;tt class="docutils literal"&gt;targetset&lt;/tt&gt; too : the links can be
done&amp;nbsp;!&lt;/p&gt;
&lt;p&gt;It's important to notice that even if the item 0 of the &lt;tt class="docutils literal"&gt;alignset&lt;/tt&gt; and the 3
of the &lt;tt class="docutils literal"&gt;targetset&lt;/tt&gt; have the same name and the same birthplace they are
unlikely identical because of their very different birth date.&lt;/p&gt;
&lt;p&gt;You may have noticed that working with matrices as I did for the example is a
little bit boring. The good news is that &lt;a class="reference" href="https://www.logilab.org/project/Nazca"&gt;Nazca&lt;/a&gt; makes all this job for you. You just
have to give the sets and distance functions and that's all. An other good news
is the project comes with the needed functions to build the sets !&lt;/p&gt;
&lt;table class="docutils footnote" frame="void" id="id5" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#id3"&gt;[2]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Provided in the &lt;tt class="docutils literal"&gt;nazca.distances&lt;/tt&gt; module.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="real-applications"&gt;
&lt;h3&gt;&lt;a&gt;Real applications&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Just before we start, we will assume the following imports have been done:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nazca&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;dataio&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;aldio&lt;/span&gt;   &lt;span class="c"&gt;#Functions for input and output data&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nazca&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;distances&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;ald&lt;/span&gt;  &lt;span class="c"&gt;#Functions to compute the distances&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nazca&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;normalize&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;aln&lt;/span&gt;  &lt;span class="c"&gt;#Functions to normalize data&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nazca&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;aligner&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;ala&lt;/span&gt;    &lt;span class="c"&gt;#Functions to align data&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;div class="section" id="the-goncourt-prize"&gt;
&lt;h4&gt;&lt;a&gt;The Goncourt prize&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;On wikipedia, we can find the &lt;a class="reference" href="https://fr.wikipedia.org/wiki/Prix_Goncourt#Liste_des_laur.C3.A9ats"&gt;Goncourt prize winners&lt;/a&gt;, and we
would like to establish a link between the winners and their URI on dbpedia
(Let's imagine the &lt;em&gt;Goncourt prize winners&lt;/em&gt; category does not exist in dbpedia)&lt;/p&gt;
&lt;p&gt;We simply copy/paste the winners list of wikipedia into a file and replace all
the separators (&lt;tt class="docutils literal"&gt;-&lt;/tt&gt; and &lt;tt class="docutils literal"&gt;,&lt;/tt&gt;) by &lt;tt class="docutils literal"&gt;#&lt;/tt&gt;. So, the beginning of our file is :&lt;/p&gt;
&lt;!--  --&gt;
&lt;blockquote&gt;
&lt;div class="line-block"&gt;
&lt;div class="line"&gt;1903#John-Antoine Nau#Force ennemie (Plume)&lt;/div&gt;
&lt;div class="line"&gt;1904#Léon Frapié#La Maternelle (Albin Michel)&lt;/div&gt;
&lt;div class="line"&gt;1905#Claude Farrère#Les Civilisés (Paul Ollendorff)&lt;/div&gt;
&lt;div class="line"&gt;1906#Jérôme et Jean Tharaud#Dingley, l'illustre écrivain (Cahiers de la Quinzaine)&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;When using the high-level functions of this library, each item must have at
least two elements: an &lt;em&gt;identifier&lt;/em&gt; (the name, or the URI) and the &lt;em&gt;attribute&lt;/em&gt; to
compare. With the previous file, we will use the name (so the column number 1)
as &lt;em&gt;identifier&lt;/em&gt; (we don't have an &lt;em&gt;URI&lt;/em&gt; here as identifier) and &lt;em&gt;attribute&lt;/em&gt; to align.
This is told to python thanks to the following code:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;alignset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aldio&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;parsefile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;prixgoncourt&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;indexes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;delimiter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;#&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;So, the beginning of our &lt;tt class="docutils literal"&gt;alignset&lt;/tt&gt; is:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;alignset&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;John-Antoine Nau&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;u&amp;#39;John-Antoine Nau&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
 &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;Léon Frapié&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;u&amp;#39;Léon, Frapié&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
 &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;Claude Farrère&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;u&amp;#39;Claude Farrère&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now, let's build the &lt;tt class="docutils literal"&gt;targetset&lt;/tt&gt; thanks to a &lt;em&gt;sparql query&lt;/em&gt; and the dbpedia
end-point. We ask for the list of the French novelists, described by their URI
and their name in French:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;query&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="s"&gt;     SELECT ?writer, ?name WHERE {&lt;/span&gt;
&lt;span class="s"&gt;       ?writer  &amp;lt;http://purl.org/dc/terms/subject&amp;gt; &amp;lt;http://dbpedia.org/resource/Category:French_novelists&amp;gt;.&lt;/span&gt;
&lt;span class="s"&gt;       ?writer rdfs:label ?name.&lt;/span&gt;
&lt;span class="s"&gt;       FILTER(lang(?name) = &amp;#39;fr&amp;#39;)&lt;/span&gt;
&lt;span class="s"&gt;    }&lt;/span&gt;
&lt;span class="s"&gt; &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
 &lt;span class="n"&gt;targetset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aldio&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sparqlquery&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;http://dbpedia.org/sparql&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Both functions return nested lists as presented before. Now, we have to define
the distance function to be used for the alignment. This is done thanks to a
python dictionary where the keys are the columns to work on, and the values are
the treatments to apply.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;treatments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;metric&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ald&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;levenshtein&lt;/span&gt;&lt;span class="p"&gt;}}&lt;/span&gt; &lt;span class="c"&gt;# Use a levenshtein on the name&lt;/span&gt;
                                              &lt;span class="c"&gt;# (column 1)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Finally, the last thing we have to do, is to call the &lt;tt class="docutils literal"&gt;alignall&lt;/tt&gt; function:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;alignments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ala&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;alignall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alignset&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;targetset&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                       &lt;span class="mf"&gt;0.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c"&gt;#This is the matching threshold&lt;/span&gt;
                       &lt;span class="n"&gt;treatments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                       &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="c"&gt;#We&amp;#39;ll discuss about that later&lt;/span&gt;
                       &lt;span class="n"&gt;uniq&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt; &lt;span class="c"&gt;#Get the best results only&lt;/span&gt;
                      &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This function returns an iterator over the different alignments done. You can
see the results thanks to the following code&amp;nbsp;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;alignments&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt; has been aligned onto &lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;It may be important to apply some pre-treatment on the data to align. For
instance, names can be written with lower or upper characters, with extra
characters as punctuation or unwanted information in parenthesis and so on. That
is why we provide some functions to &lt;cite&gt;normalize&lt;/cite&gt; your data. The most useful may
be the &lt;cite&gt;simplify()&lt;/cite&gt; function (see the docstring for more information). So the
treatments list can be given as follow:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;remove_after&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot; Remove the text after ``sub`` in ``string``&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;gt;&amp;gt;&amp;gt; remove_after(&amp;#39;I like cats and dogs&amp;#39;, &amp;#39;and&amp;#39;)&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;#39;I like cats&amp;#39;&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;gt;&amp;gt;&amp;gt; remove_after(&amp;#39;I like cats and dogs&amp;#39;, &amp;#39;(&amp;#39;)&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;#39;I like cats and dogs&amp;#39;&lt;/span&gt;
&lt;span class="sd"&gt;    &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sub&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;())]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="ne"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt;


&lt;span class="n"&gt;treatments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;normalization&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;remove_after&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;(&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                                    &lt;span class="n"&gt;aln&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;simply&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
                  &lt;span class="s"&gt;&amp;#39;metric&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ald&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;levenshtein&lt;/span&gt;
                 &lt;span class="p"&gt;}&lt;/span&gt;
             &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="cities-alignment"&gt;
&lt;h4&gt;&lt;a&gt;Cities alignment&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The previous case with the &lt;cite&gt;Goncourt prize winners&lt;/cite&gt; was pretty simply because
the number of items was small, and the computation fast. But in a more real use
case, the number of items to align may be huge (some thousands or millions…). In
such a case it's unthinkable to build the global alignment matrix because it
would be too big and it would take (at least...) fews days to achieve the computation.
So the idea is to make small groups of possible similar data to compute smaller
matrices (i.e. a &lt;em&gt;divide and conquer&lt;/em&gt; approach).
For this purpose, we provide some functions to group/cluster data. We have
functions to group text and numerical data.&lt;/p&gt;
&lt;p&gt;This is the code used, we will explain it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;targetset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aldio&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rqlquery&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;http://demo.cubicweb.org/geonames&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                           &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;Any U, N, LONG, LAT WHERE X is Location, X name&lt;/span&gt;
&lt;span class="sd"&gt;                              N, X country C, C name &amp;quot;France&amp;quot;, X longitude&lt;/span&gt;
&lt;span class="sd"&gt;                              LONG, X latitude LAT, X population &amp;gt; 1000, X&lt;/span&gt;
&lt;span class="sd"&gt;                              feature_class &amp;quot;P&amp;quot;, X cwuri U&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                           &lt;span class="n"&gt;indexes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;
&lt;span class="n"&gt;alignset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aldio&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sparqlquery&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;http://dbpedia.inria.fr/sparql&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                             &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;prefix db-owl: &amp;lt;http://dbpedia.org/ontology/&amp;gt;&lt;/span&gt;
&lt;span class="sd"&gt;                             prefix db-prop: &amp;lt;http://fr.dbpedia.org/property/&amp;gt;&lt;/span&gt;
&lt;span class="sd"&gt;                             select ?ville, ?name, ?long, ?lat where {&lt;/span&gt;
&lt;span class="sd"&gt;                              ?ville db-owl:country &amp;lt;http://fr.dbpedia.org/resource/France&amp;gt; .&lt;/span&gt;
&lt;span class="sd"&gt;                              ?ville rdf:type db-owl:PopulatedPlace .&lt;/span&gt;
&lt;span class="sd"&gt;                              ?ville db-owl:populationTotal ?population .&lt;/span&gt;
&lt;span class="sd"&gt;                              ?ville foaf:name ?name .&lt;/span&gt;
&lt;span class="sd"&gt;                              ?ville db-prop:longitude ?long .&lt;/span&gt;
&lt;span class="sd"&gt;                              ?ville db-prop:latitude ?lat .&lt;/span&gt;
&lt;span class="sd"&gt;                              FILTER (?population &amp;gt; 1000)&lt;/span&gt;
&lt;span class="sd"&gt;                             }&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                             &lt;span class="n"&gt;indexes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;


&lt;span class="n"&gt;treatments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;normalization&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;aln&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;simply&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
                  &lt;span class="s"&gt;&amp;#39;metric&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ald&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;levenshtein&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="s"&gt;&amp;#39;matrix_normalized&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;
                 &lt;span class="p"&gt;}&lt;/span&gt;
             &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ala&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;alignall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alignset&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;targetset&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;treatments&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;treatments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c"&gt;#As before&lt;/span&gt;
                       &lt;span class="n"&gt;indexes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="c"&gt;#On which data build the kdtree&lt;/span&gt;
                       &lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;kdtree&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c"&gt;#The mode to use&lt;/span&gt;
                       &lt;span class="n"&gt;uniq&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c"&gt;#Return only the best results&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Let's explain the code. We have two files, containing a list of cities we want
to align, the first column is the identifier, and the second is the name of the city
and the last one is location of the city (longitude and latitude), gathered into
a single tuple.&lt;/p&gt;
&lt;p&gt;In this example, we want to build a &lt;a class="reference" href="http://en.wikipedia.org/wiki/K-d_tree"&gt;kdtree&lt;/a&gt; on the couple (longitude, latitude)
to divide our data in few candidates. This clustering is coarse, and is only
used to reduce the potential candidats without loosing any more refined possible
matchs.&lt;/p&gt;
&lt;p&gt;So, in the next step, we define the treatments to apply.
It is the same as before, but we ask for a non-normalized matrix
(ie: the real output of the levenshtein distance).
Thus, we call the &lt;tt class="docutils literal"&gt;alignall&lt;/tt&gt; function. &lt;tt class="docutils literal"&gt;indexes&lt;/tt&gt; is a tuple saying the
position of the point on which the &lt;a class="reference" href="http://en.wikipedia.org/wiki/K-d_tree"&gt;kdtree&lt;/a&gt; must be built, &lt;tt class="docutils literal"&gt;mode&lt;/tt&gt; is the mode
used to find neighbours &lt;a class="footnote-reference" href="#id7" id="id6"&gt;[3]&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Finally, &lt;tt class="docutils literal"&gt;uniq&lt;/tt&gt; ask to the function to return the best
candidate (ie: the one having the shortest distance below the given threshold)&lt;/p&gt;
&lt;p&gt;The function outputs a generator yielding tuples where the first element is the
identifier of the &lt;tt class="docutils literal"&gt;alignset&lt;/tt&gt; item and the second is the &lt;tt class="docutils literal"&gt;targetset&lt;/tt&gt; one (It
may take some time before yielding the first tuples, because all the computation
must be done…)&lt;/p&gt;
&lt;table class="docutils footnote" frame="void" id="id7" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#id6"&gt;[3]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;The available modes are &lt;tt class="docutils literal"&gt;kdtree&lt;/tt&gt;, &lt;tt class="docutils literal"&gt;kmeans&lt;/tt&gt; and &lt;tt class="docutils literal"&gt;minibatch&lt;/tt&gt; for
numerical data and &lt;tt class="docutils literal"&gt;minhashing&lt;/tt&gt; for text one.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="try-it-online"&gt;
&lt;h3&gt;&lt;a&gt;Try it online !&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;We have also made this &lt;a class="reference" href="http://demo.cubicweb.org/nazca/view?vid=nazca"&gt;little application&lt;/a&gt; of Nazca, using &lt;a class="reference" href="http://www.cubicweb.org/"&gt;Cubicweb&lt;/a&gt;. This application provides a user interface for
Nazca, helping you to choose what you want to align. You can use sparql or rql
queries, as in the previous example, or import your own cvs file &lt;a class="footnote-reference" href="#id9" id="id8"&gt;[4]&lt;/a&gt;. Once you
have choosen what you want to align, you can click the &lt;em&gt;Next step&lt;/em&gt; button to
customize the treatments you want to apply, just as you did before in python !
Once done, by clicking the &lt;em&gt;Next step&lt;/em&gt;, you start the alignment process. Wait a
little bit, and you can either download the results in a &lt;em&gt;csv&lt;/em&gt; or &lt;em&gt;rdf&lt;/em&gt; file, or
directly see the results online choosing the &lt;em&gt;html&lt;/em&gt; output.&lt;/p&gt;
&lt;table class="docutils footnote" frame="void" id="id9" rules="none"&gt;
&lt;colgroup&gt;&lt;col class="label" /&gt;&lt;col /&gt;&lt;/colgroup&gt;
&lt;tbody valign="top"&gt;
&lt;tr&gt;&lt;td class="label"&gt;&lt;a class="fn-backref" href="#id8"&gt;[4]&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Your csv file must be tab-separated for the moment…&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-12-21T19:01-01:00</dc:date>
  <dc:creator>Simon Chabot</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/115136</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/114769</guid>
  <title>Openstack, Wheezy and ZFS on Linux</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/4JYx8nSVy-8/114769</link>
  <description>&lt;h3 class="title"&gt;Openstack, Wheezy and ZFS on Linux&lt;/h3&gt;
&lt;p&gt;A while ago, I started the install of an &lt;a class="reference" href="http://www.openstack.org"&gt;OpenStack&lt;/a&gt; cluster at
Logilab, so our developers can play easily with any kind of
environment. We are planning to improve our &lt;a class="reference" href="http://www.cubicweb.org/projects/apycot"&gt;Apycot&lt;/a&gt; automatic testing
platform so it can use &amp;quot;elastic power&amp;quot;. And so on.&lt;/p&gt;
&lt;img alt="http://www.openstack.org/themes/openstack/images/open-stack-cloud-computing-logo-2.png" src="http://www.openstack.org/themes/openstack/images/open-stack-cloud-computing-logo-2.png" /&gt;
&lt;p&gt;I first tried a &lt;a class="reference" href="http://www.ubuntu.com"&gt;Ubuntu&lt;/a&gt; Precise based setup, since at that time,
&lt;a class="reference" href="http://www.debian.org"&gt;Debian&lt;/a&gt; packages were not really usable. The setup never reached a point
where it could be relased as production ready, due to the fact I tried a
too complex and bleeding edge configuration (involving &lt;a class="reference" href="http://wiki.openstack.org/Quantum"&gt;Quantum&lt;/a&gt;,
&lt;a class="reference" href="http://openvswitch.org/"&gt;openvswitch&lt;/a&gt;, &lt;a class="reference" href="http://www.osrg.net/sheepdog/"&gt;sheepdog&lt;/a&gt;)...&lt;/p&gt;
&lt;p&gt;Meanwhile, we went really short of storage capacity. For now, it
mainly consists in hard drives distributed in our 19&amp;quot; Dell racks
(generally with hardware RAID controllers).  So I recently purchased a
low-cost storage bay (&lt;a class="reference" href="http://www.supermicro.com"&gt;SuperMicro&lt;/a&gt; SC937 with a 6Gb/s JBOD-only HBA)
with 18 spinning hard drives and 4 SSDs. This storage bay being driven
by &lt;a class="reference" href="http://zfsonlinux.org"&gt;ZFS on Linux&lt;/a&gt; (tip: the SSD-stored ZIL &lt;strong&gt;is&lt;/strong&gt; a requirement to
get decent performances). This storage setup is still under test for
now.&lt;/p&gt;
&lt;img alt="http://zfsonlinux.org/images/zfs-linux.png" src="http://zfsonlinux.org/images/zfs-linux.png" /&gt;
&lt;p&gt;I also went to the last &lt;a class="reference" href="http://fr2012.mini.debconf.org/"&gt;Mini-DebConf&lt;/a&gt; in Paris, where Loic Dachary
&lt;a class="reference" href="http://fr2012.mini.debconf.org/slides/openstack-and-debian.pdf"&gt;presented&lt;/a&gt; the status of the &lt;a class="reference" href="http://www.openstack.org"&gt;OpenStack&lt;/a&gt; packaging effort in
Debian. This gave me the will to give a new try to OpenStack using
Wheezy and a bit simpler setup. But I could not
consider not to use my new ZFS-based storage as a &lt;cite&gt;nova volume&lt;/cite&gt;
provider. It is not available for now in OpenStack (there is a backend
for Solaris, but not for ZFS on Linux). However, this is Python and in
fact, the current &lt;a class="reference" href="https://github.com/openstack/nova/blob/feaeadab934e3d31fd3562014ffd2e44ae6dce34/nova/volume/driver.py"&gt;ISCSIDriver&lt;/a&gt; backend needs very little to
make it work with zfs instead of lvm as &amp;quot;elastics&amp;quot; block-volume
provider and manager.&lt;/p&gt;
&lt;p&gt;So, I wrote a custom nova volume driver to handle this. As I don't
want the nova-volume daemon to run on my ZFS SAN, I wrote this backend
mixing the &lt;a class="reference" href="https://github.com/openstack/nova/blob/feaeadab934e3d31fd3562014ffd2e44ae6dce34/nova/volume/san.py"&gt;SanISCSIDriver&lt;/a&gt; (which manages the storage system via
SSH) and the standard &lt;a class="reference" href="https://github.com/openstack/nova/blob/feaeadab934e3d31fd3562014ffd2e44ae6dce34/nova/volume/driver.py"&gt;ISCSIDriver&lt;/a&gt; (which uses standard Linux isci
target tools). I'm not very fond of the API of the VolumeDriver
(especially the fact that the ISCSIDriver is responsible for 2 roles:
managing block-level volumes and exporting block-level volumes). This
small design flaw (IMHO) is the reason I had to duplicate some code
(not much but...) to implement my ZFSonLinuxISCSIDriver...&lt;/p&gt;
&lt;p&gt;So here is the setup I made:&lt;/p&gt;
&lt;div class="section" id="infrastructure"&gt;
&lt;h3&gt;&lt;a&gt;Infrastructure&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;My OpenStack Essex &amp;quot;cluster&amp;quot; consists for now in:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;one control node, running in a &amp;quot;normal&amp;quot; libvirt-controlled virtual
machine; it is a Wheezy that runs:&lt;ul&gt;
&lt;li&gt;nova-api&lt;/li&gt;
&lt;li&gt;nova-cert&lt;/li&gt;
&lt;li&gt;nova-network&lt;/li&gt;
&lt;li&gt;nova-scheduler&lt;/li&gt;
&lt;li&gt;nova-volume&lt;/li&gt;
&lt;li&gt;glance&lt;/li&gt;
&lt;li&gt;postgresql&lt;/li&gt;
&lt;li&gt;OpenStack dashboard&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;one computing node (Dell R310, Xeon X3480, 32G, Wheezy), which runs:&lt;ul&gt;
&lt;li&gt;nova-api&lt;/li&gt;
&lt;li&gt;nova-network&lt;/li&gt;
&lt;li&gt;nova-compute&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;ZFS-on-Linux SAN (3x raidz1 poools made of 6 1T drives, 2x
(mirrored) 32G SLC SDDs, 2x 120G MLC SSDs for cache); for now, the storage is
exported to the SAN via one 1G ethernet link.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="opensstack-essex-setup"&gt;
&lt;h3&gt;&lt;a&gt;OpensStack Essex setup&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;I mainly followed the &lt;a class="reference" href="http://wiki.debian.org/OpenStackHowto"&gt;Debian HOWTO&lt;/a&gt; to setup my private cloud. I
mainly tuned the network settings to match my environement (and the
fact my control node lives in a VM, with VLAN stuff handled by the
host).&lt;/p&gt;
&lt;p&gt;I easily got a working setup (I must admit that I think my
previous experiment with OpenStack helped a lot when dealing with
custom configurations... and vocabulary; I'm not sure I would have
succeded &amp;quot;easily&amp;quot; following the HOWTO, but hey, it is a functionnal
HOWTO, meaning if you do not follow the instructions because you want
special tunings, don't blame the HOWTO).&lt;/p&gt;
&lt;p&gt;Compared to the HOWTO, my &lt;tt class="docutils literal"&gt;nova.conf&lt;/tt&gt; looks like (as of today):&lt;/p&gt;
&lt;pre class="literal-block"&gt;
[DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
root_helper=sudo nova-rootwrap
auth_strategy=keystone
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
sql_connection=postgresql://novacommon:XXX&amp;#64;control.openstack.logilab.fr/nova

##  Network config
# A nova-network on each compute node
multi_host=true
# VLan manger
network_manager=nova.network.manager.VlanManager
vlan_interface=eth1
# My ip
my-ip=172.17.10.2
public_interface=eth0
# Dmz &amp;amp; metadata things
dmz_cidr=169.254.169.254/32
ec2_dmz_host=169.254.169.254
metadata_host=169.254.169.254

## More general things
# The RabbitMQ host
rabbit_host=control.openstack.logilab.fr

## Glance
image_service=nova.image.glance.GlanceImageService
glance_api_servers=control.openstack.logilab.fr:9292
use-syslog=true
ec2_host=control.openstack.logilab.fr

novncproxy_base_url=http://control.openstack.logilab.fr:6080/vnc_auto.html
vncserver_listen=0.0.0.0
vncserver_proxyclient_address=127.0.0.1
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="volume"&gt;
&lt;h3&gt;&lt;a&gt;Volume&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;I had a bit more work to do to make nova-volume work. First, I got hit
by this nasty bug &lt;a class="reference" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695791"&gt;#695791&lt;/a&gt; which is trivial to fix... when you know
how to fix it (I noticed the bug report after I fixed it by myself).&lt;/p&gt;
&lt;p&gt;Then, as I wanted the volumes to be stored and exported by my shiny
new ZFS-on-Linux setup, I had to write my own volume driver, which was
quite easy, since it is Python, and the logic to implement was already
provided by the ISCSIDriver class on the one hand, and by the
SanISCSIDrvier on the other hand. So I ended with this firt
implementation. This file should be copied to nova volumes package
directory (nova/volume/zol.py):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="c"&gt;# vim: tabstop=4 shiftwidth=4 softtabstop=4&lt;/span&gt;

&lt;span class="c"&gt;# Copyright 2010 United States Government as represented by the&lt;/span&gt;
&lt;span class="c"&gt;# Administrator of the National Aeronautics and Space Administration.&lt;/span&gt;
&lt;span class="c"&gt;# Copyright 2011 Justin Santa Barbara&lt;/span&gt;
&lt;span class="c"&gt;# Copyright 2012 David DOUARD, LOGILAB S.A.&lt;/span&gt;
&lt;span class="c"&gt;# All Rights Reserved.&lt;/span&gt;
&lt;span class="c"&gt;#&lt;/span&gt;
&lt;span class="c"&gt;#    Licensed under the Apache License, Version 2.0 (the &amp;quot;License&amp;quot;); you may&lt;/span&gt;
&lt;span class="c"&gt;#    not use this file except in compliance with the License. You may obtain&lt;/span&gt;
&lt;span class="c"&gt;#    a copy of the License at&lt;/span&gt;
&lt;span class="c"&gt;#&lt;/span&gt;
&lt;span class="c"&gt;#         http://www.apache.org/licenses/LICENSE-2.0&lt;/span&gt;
&lt;span class="c"&gt;#&lt;/span&gt;
&lt;span class="c"&gt;#    Unless required by applicable law or agreed to in writing, software&lt;/span&gt;
&lt;span class="c"&gt;#    distributed under the License is distributed on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT&lt;/span&gt;
&lt;span class="c"&gt;#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the&lt;/span&gt;
&lt;span class="c"&gt;#    License for the specific language governing permissions and limitations&lt;/span&gt;
&lt;span class="c"&gt;#    under the License.&lt;/span&gt;
&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;Driver for ZFS-on-Linux-stored volumes.&lt;/span&gt;

&lt;span class="sd"&gt;This is mainly a custom version of the ISCSIDriver that uses ZFS as&lt;/span&gt;
&lt;span class="sd"&gt;volume provider, generally accessed over SSH.&lt;/span&gt;
&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;

&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;os&lt;/span&gt;

&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nova&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;exception&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nova&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;flags&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nova&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;utils&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nova&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;logging&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nova.openstack.common&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;cfg&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nova.volume.driver&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;_iscsi_location&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nova.volume&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;iscsi&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="nn"&gt;nova.volume.san&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SanISCSIDriver&lt;/span&gt;


&lt;span class="n"&gt;LOG&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;logging&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;getLogger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;san_opts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="n"&gt;cfg&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StrOpt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;san_zfs_command&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="n"&gt;default&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;/sbin/zfs&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="n"&gt;help&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;The ZFS command.&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;FLAGS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;flags&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;FLAGS&lt;/span&gt;
&lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;register_opts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;san_opts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ZFSonLinuxISCSIDriver&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SanISCSIDriver&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;Executes commands relating to ZFS-on-Linux-hosted ISCSI volumes.&lt;/span&gt;

&lt;span class="sd"&gt;    Basic setup for a ZoL iSCSI server:&lt;/span&gt;

&lt;span class="sd"&gt;    XXX&lt;/span&gt;

&lt;span class="sd"&gt;    Note that current implementation of ZFS on Linux does not handle:&lt;/span&gt;

&lt;span class="sd"&gt;      zfs allow/unallow&lt;/span&gt;

&lt;span class="sd"&gt;    For now, needs to have root access to the ZFS host. The best is to&lt;/span&gt;
&lt;span class="sd"&gt;    use a ssh key with ssh authorized_keys restriction mechanisms to&lt;/span&gt;
&lt;span class="sd"&gt;    limit root access.&lt;/span&gt;

&lt;span class="sd"&gt;    Make sure you can login using san_login &amp;amp; san_password/san_private_key&lt;/span&gt;
&lt;span class="sd"&gt;    &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;ZFSCMD&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;san_zfs_command&lt;/span&gt;

    &lt;span class="n"&gt;_local_execute&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;utils&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;execute&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_getrl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_runlocal&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_setrl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;basestring&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
            &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;true&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;t&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;1&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;y&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;yes&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_runlocal&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;
    &lt;span class="n"&gt;run_local&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;property&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_getrl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_setrl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="nb"&gt;super&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ZFSonLinuxISCSIDriver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;__init__&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tgtadm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;set_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_execute&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;LOG&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;run local = &lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt; (&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;)&amp;quot;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;run_local&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;san_is_local&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;set_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;LOG&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;debug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;override local execute cmd with &lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt; (&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;)&amp;quot;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;
                  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;repr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;__module__&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_local_execute&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;run_local&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;LOG&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;debug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;LOCAL execute cmd &lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt; (&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;)&amp;quot;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_local_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;LOG&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;debug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;SSH execute cmd &lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt; (&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;)&amp;quot;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
            &lt;span class="n"&gt;check_exit_code&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;kwargs&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;check_exit_code&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;command&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39; &amp;#39;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_run_ssh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;command&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;check_exit_code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_create_volume&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sizestr&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;zfs_poolname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_build_zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;volume_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

        &lt;span class="c"&gt;# Create a zfs volume&lt;/span&gt;
        &lt;span class="n"&gt;cmd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ZFSCMD&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;create&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;san_thin_provision&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;-s&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;-V&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sizestr&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_volume_not_present&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume_name&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;zfs_poolname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_build_zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;volume_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ZFSCMD&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;list&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;-H&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
                &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="ne"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="c"&gt;# If the volume isn&amp;#39;t present&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;create_volume_from_snapshot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;snapshot&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;Creates a volume from a snapshot.&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
        &lt;span class="n"&gt;zfs_snap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_build_zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;snapshot&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;zfs_vol&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_build_zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;snapshot&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ZFSCMD&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;clone&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zfs_snap&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zfs_vol&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ZFSCMD&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;promote&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zfs_vol&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;delete_volume&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;Deletes a volume.&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_volume_not_present&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]):&lt;/span&gt;
            &lt;span class="c"&gt;# If the volume isn&amp;#39;t present, then don&amp;#39;t attempt to delete&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
        &lt;span class="n"&gt;zfs_poolname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_build_zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ZFSCMD&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;destroy&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;create_export&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;Creates an export for a logical volume.&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_ensure_iscsi_targets&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;host&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;iscsi_target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;volume_allocate_iscsi_target&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                                                            &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;id&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
                                                      &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;host&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;iscsi_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;%s%s&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iscsi_target_prefix&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;volume_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;local_path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

        &lt;span class="c"&gt;# XXX (ddouard) this code is not robust: does not check for&lt;/span&gt;
        &lt;span class="c"&gt;# existing iscsi targets on the host (ie. not created by&lt;/span&gt;
        &lt;span class="c"&gt;# nova), but fixing it require a deep refactoring of the iscsi&lt;/span&gt;
        &lt;span class="c"&gt;# handling code (which is what have been done in cinder)&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tgtadm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;new_target&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;iscsi_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;iscsi_target&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tgtadm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;new_logicalunit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;iscsi_target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume_path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iscsi_helper&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;tgtadm&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;lun&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;lun&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;run_local&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;iscsi_ip_address&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iscsi_ip_address&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;iscsi_ip_address&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;san_ip&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;provider_location&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;_iscsi_location&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;iscsi_ip_address&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;iscsi_target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;iscsi_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lun&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;remove_export&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;Removes an export for a logical volume.&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;iscsi_target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;volume_get_iscsi_target_num&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                                                           &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;id&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;exception&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;NotFound&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;LOG&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Skipping remove_export. No iscsi_target &amp;quot;&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
                       &lt;span class="s"&gt;&amp;quot;provisioned for volume: &lt;/span&gt;&lt;span class="si"&gt;%d&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;id&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt;

        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="c"&gt;# ietadm show will exit with an error&lt;/span&gt;
            &lt;span class="c"&gt;# this export has already been removed&lt;/span&gt;
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tgtadm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;show_target&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;iscsi_target&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="ne"&gt;Exception&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;LOG&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Skipping remove_export. No iscsi_target &amp;quot;&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
                       &lt;span class="s"&gt;&amp;quot;is presently exported for volume: &lt;/span&gt;&lt;span class="si"&gt;%d&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;id&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt;

        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tgtadm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;delete_logicalunit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;iscsi_target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tgtadm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;delete_target&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;iscsi_target&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check_for_export&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume_id&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;Make sure volume is exported.&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
        &lt;span class="n"&gt;tid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;volume_get_iscsi_target_num&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tgtadm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;show_target&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;exception&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ProcessExecutionError&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="c"&gt;# Instances remount read-only in this case.&lt;/span&gt;
            &lt;span class="c"&gt;# /etc/init.d/iscsitarget restart and rebooting nova-volume&lt;/span&gt;
            &lt;span class="c"&gt;# is better since ensure_export() works at boot time.&lt;/span&gt;
            &lt;span class="n"&gt;LOG&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Cannot confirm exported volume &amp;quot;&lt;/span&gt;
                        &lt;span class="s"&gt;&amp;quot;id:&lt;/span&gt;&lt;span class="si"&gt;%(volume_id)s&lt;/span&gt;&lt;span class="s"&gt;.&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="nb"&gt;locals&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
            &lt;span class="k"&gt;raise&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;local_path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;zfs_poolname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_build_zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;volume&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="n"&gt;zvoldev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;/dev/zvol/&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;zfs_poolname&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;zvoldev&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_build_zfs_poolname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume_name&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;zfs_poolname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;&lt;/span&gt;&lt;span class="si"&gt;%s%s&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FLAGS&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;san_zfs_volume_base&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;volume_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;zfs_poolname&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;To configure my nova-volume instance (which runs on the control node,
since it's only a manager), I added these to my &lt;tt class="docutils literal"&gt;nova.conf&lt;/tt&gt; file:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# nove-volume config
volume_driver=nova.volume.zol.ZFSonLinuxISCSIDriver
iscsi_ip_address=172.17.1.7
iscsi_helper=tgtadm
san_thin_provision=false
san_ip=172.17.1.7
san_private_key=/etc/nova/sankey
san_login=root
san_zfs_volume_base=data/openstack/volume/
san_is_local=false
verbose=true
&lt;/pre&gt;
&lt;p&gt;Note that the private key (&lt;tt class="docutils literal"&gt;/etc/nova/sankey&lt;/tt&gt; here) is stored
in clear and that it must be readable by the &lt;tt class="docutils literal"&gt;nova&lt;/tt&gt; user.&lt;/p&gt;
&lt;p&gt;This key being stored in clear and giving root acces to my ZFS host, I
have limited a bit this root access by using a custom command wrapper
in the &lt;tt class="docutils literal"&gt;.ssh/authorized_keys&lt;/tt&gt; file.&lt;/p&gt;
&lt;p&gt;Something like (naive implementation):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="o"&gt;[&lt;/span&gt;root@zfshost ~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;cat /root/zfswrapper
&lt;span class="c"&gt;#!/bin/sh&lt;/span&gt;
&lt;span class="nv"&gt;CMD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nv"&gt;$SSH_ORIGINAL_COMMAND&lt;/span&gt; | awk &lt;span class="s1"&gt;&amp;#39;{print $1}&amp;#39;&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;$CMD&amp;quot;&lt;/span&gt; !&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;/sbin/zfs&amp;quot;&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;$CMD&amp;quot;&lt;/span&gt; !&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;tgtadm&amp;quot;&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;; &lt;span class="k"&gt;then&lt;/span&gt;
&lt;span class="k"&gt;  &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Can do only zfs/tgtadm stuff here&amp;quot;&lt;/span&gt;
  &lt;span class="nb"&gt;exit &lt;/span&gt;1
&lt;span class="k"&gt;fi&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;[`date`] $SSH_ORIGINAL_COMMAND&amp;quot;&lt;/span&gt; &amp;gt;&amp;gt; .zfsopenstack.log
&lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nv"&gt;$SSH_ORIGINAL_COMMAND&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Using this in root's &lt;tt class="docutils literal"&gt;.ssh/authorized_keys&lt;/tt&gt; file:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="o"&gt;[&lt;/span&gt;root@zfshost ~&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;cat /root/.ssh/authorized_keys | grep control
&lt;span class="nv"&gt;from&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;control.openstack.logilab.fr&amp;quot;&lt;/span&gt;,no-pty,no-port-forwarding,no-X11-forwarding, &lt;span class="se"&gt;\&lt;/span&gt;
      no-agent-forwarding,command&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;/root/zfswrapper&amp;quot;&lt;/span&gt; ssh-rsa AAAA&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt; root@control
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;I had to set the &lt;tt class="docutils literal"&gt;iscsi_ip_address&lt;/tt&gt; (the ip address of the ZFS
host), but I think this is a result of something mistakenly
implemented in my ZFSonLinux driver.&lt;/p&gt;
&lt;p&gt;Using this config, I can boot an image, create a volume on my ZFS
storage, and attach it to the running image.&lt;/p&gt;
&lt;p&gt;I have to test things like snapshot, (live?) migration and so. This is a
very first draft implementation which needs to be refined, improved
and tested.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="what-s-next"&gt;
&lt;h3&gt;&lt;a&gt;What's next&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Besides the fact that it needs more tests, I plan to use &lt;a class="reference" href="http://www.saltstack.org"&gt;salt&lt;/a&gt; for my OpenStack
deployment (first to add more compute nodes in my cluster), and on the
other side, I'd like to try the &lt;a class="reference" href="https://github.com/saltstack/salt-cloud"&gt;salt-cloud&lt;/a&gt; so I have a bunch of
Debian images that &amp;quot;just work&amp;quot; (without the need of porting the
cloud-init Ubuntu package).&lt;/p&gt;
&lt;p&gt;On the side of my zol driver, I need to port it to &lt;a class="reference" href="http://wiki.openstack.org/Cinder"&gt;Cinder&lt;/a&gt;, but I do not have a &lt;a class="reference" href="http://www.openstack.org/software/folsom/"&gt;Folsom&lt;/a&gt; install to test it...&lt;/p&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-12-21T22:54-01:00</dc:date>
  <dc:creator>David Douard</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/114769</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/113067</guid>
  <title>Retour OSDC 2012 - présentation mercurial DVCS</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/DPjc-NCw_oE/113067</link>
  <description>&lt;p&gt;À la mi-octobre, j'ai participé à la &lt;a class="reference" href="http://act.osdc.fr/osdc2012fr/"&gt;conférence OSDC 2012&lt;/a&gt; à Paris. Le but de
cette conférence est de permettre à des développeurs de différentes communautés de se rencontrer dans une ambiance chaleureuse. De fait, j'ai découvert un certain nombre de projets et de pratiques intéressants.&lt;/p&gt;
&lt;img alt="http://act.osdc.fr/osdc2012fr/css/logo.png" class="align-center" src="http://act.osdc.fr/osdc2012fr/css/logo.png" /&gt;
&lt;p&gt;Le samedi, j'ai découvert des outils javascript mettant l'accent sur les
modèles de données comme &lt;a class="reference" href="http://angularjs.org/"&gt;AngularJS&lt;/a&gt; ou &lt;a class="reference" href="http://backbonejs.org/"&gt;BackBone&lt;/a&gt;, Une présentation rapide du
langage &lt;a class="reference" href="http://blog.menfin.info/Presentations/20121012_Concurrency_patterns/#slide1"&gt;Go&lt;/a&gt;, le très prometteur portage des outils GCC sur Windows nommé
&lt;a class="reference" href="http://mingw-w64.sourceforge.net/"&gt;MinGW&lt;/a&gt; ainsi que les nouveautés de &lt;a class="reference" href="http://dodji.seketeli.net/talks/osdc-2012/osdc.pdf"&gt;GCC 4.8&lt;/a&gt;. La journée s'est conclut sur des
présentations éclairs dont je retiendrai surtout la perversité des &lt;a class="reference" href="https://metacpan.org/module/perlsecret"&gt;opérateurs
secrets en Perl&lt;/a&gt; et le livre &lt;a class="reference" href="http://fr.eloquentjavascript.net/"&gt;Javascript Éloquent&lt;/a&gt; intégralement en HTML qui en
profite donc pour inclure exemples et &lt;a class="reference" href="http://fr.eloquentjavascript.net/chapter4.html#key3"&gt;exercices interactifs&lt;/a&gt; au fil du
contenu.&lt;/p&gt;
&lt;p&gt;Le dimanche matin j'ai ouvert le bal en présentant mes travaux actuels dans
le DVCS Mercurial: l'&lt;a class="reference" href="http://mercurial.selenic.com/wiki/ChangesetEvolution"&gt;Évolution de Changeset&lt;/a&gt; (&lt;a class="reference" href="http://www.logilab.org/file/113065?vid=download"&gt;PDF de la présentation&lt;/a&gt;). Ce concept permet aux développeurs de découvrir la réécriture d'historique de manière
simple et sûre. Les utilisateurs avancés ont accès de leur côté à
des processus de travail et de revue encore inédits dans le monde des DVCS. Ma présentation fut suivie d'une introduction à la
découverte automatique de bugs grâce à la &lt;a class="reference" href="http://lwn.net/Articles/317154/"&gt;bisection dans les DVCS&lt;/a&gt;.&lt;/p&gt;
&lt;object width="480" height="270"&gt;&lt;param name="movie"
value="http://www.dailymotion.com/swf/video/xuh369"&gt;&lt;/param&gt;&lt;param
name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowScriptAccess"
value="always"&gt;&lt;/param&gt;&lt;param name="wmode"
value="transparent"&gt;&lt;/param&gt;&lt;embed type="application/x-shockwave-flash"
src="http://www.dailymotion.com/swf/video/xuh369" width="480" height="270"
wmode="transparent" allowfullscreen="true"
allowscriptaccess="always"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;a
href="http://www.dailymotion.com/video/xuh369_osdc-fr-2012-changesets-evolution-mercurial-secoue-le-monde-du-dvcs_tech"
target="_blank"&gt;Changesets Evolution : Mercurial secoue le
monde du dvcs&lt;/a&gt;
&lt;i&gt;par Pierre-Yves David&lt;/i&gt;&lt;p&gt;La journée s'est poursuivie avec une présentation du langage &lt;a class="reference" href="http://www.haskell.org/haskellwiki/Haskell"&gt;Haskell&lt;/a&gt;, de la bibliothèque de visualisation &lt;a class="reference" href="http://sigmajs.org/"&gt;sigmajs&lt;/a&gt; et la spécification &lt;a class="reference" href="https://github.com/SPORE/specifications"&gt;SPORE&lt;/a&gt; apportant un peu d'espoir dans les spécifications de services Web &lt;tt class="docutils literal"&gt;REST&lt;/tt&gt;.&lt;/p&gt;
</description>
  <dc:date>2012-12-05T17:37-01:00</dc:date>
  <dc:creator>Pierre-Yves David</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/113067</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/113043</guid>
  <title>Retour Agile Tour Nantes 2012 - présentation et pistes à explorer</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/uN1tDj3WjVY/113043</link>
  <description>&lt;p&gt;Nous utilisons les méthodes agiles depuis la création de Logilab.
Nous avons parfois pris des libertés avec le formalisme des méthodes connues, en adaptant nos pratiques à nos clients et nos particularités. Nous avons en chemin développé nos propres outils orientés vers notre activité de développement logiciel
(gestion de version, processus sur les tickets, intégration continue, etc).&lt;/p&gt;
&lt;img alt="https://www.logilab.org/file/113044?vid=download" class="align-center" src="https://www.logilab.org/file/113044?vid=download" /&gt;
&lt;p&gt;Il est parfois bon de se replonger dans la théorie et d'échanger
les bonnes pratiques en terme d'agilité. C'est pour cette raison que nous avons participé à l'étape nantaise de l'&lt;a class="reference" href="http://at2012.agiletour.org/fr/nantes.html"&gt;Agile Tour&lt;/a&gt;.&lt;/p&gt;
&lt;div class="section" id="logiciels-libres-et-agilite"&gt;
&lt;h3&gt;&lt;a&gt;Logiciels libres et agilité&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Plutôt que d'être simples spectateurs, nous avons présenté nos pratiques agiles, fortement liées au logiciel libre, dont un avantage indéniable est la possibilité offerte à chacun de le modifier pour l'adapter à ses besoins.&lt;/p&gt;
&lt;p&gt;Premièrement, en utilisant la plate-forme web &lt;a class="reference" href="http://www.cubicweb.org"&gt;CubicWeb&lt;/a&gt;, nous avons pu construire une forge dont nous contrôlons le modèle de données. Les processus de gestion peuvent donc être spécifiques et les données des applications peuvent être étroitement intégrées. Par exemple, bien que la base logicielle soit la même, le circuit de validation des tickets sur l'extranet n'est pas identique à celui de nos forges publiques. Autre exemple, les versions livrées sur l'extranet apparaissent directement dans l'outil intranet de suivi des affaires et de décompte du temps (CRM/ERP).&lt;/p&gt;
&lt;p&gt;Deuxièmement, nous avons choisi &lt;a class="reference" href="http://mercurial.selenic.com/"&gt;mercurial (hg)&lt;/a&gt; en grande partie car il est
écrit en &lt;a class="reference" href="http://www.python.org/"&gt;python&lt;/a&gt; ce qui nous a permis de l'intégrer à nos autres outils, mais aussi d'y
contribuer (cf &lt;a class="reference" href="http://hg-lab.logilab.org/doc/mutable-history/html/"&gt;evolve&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Notre présentation est visible sur slideshare :&lt;/p&gt;
&lt;a class="reference image-reference" href="http://fr.slideshare.net/arthurlutz/prsentation-outils-agiles-revue-de-code-publication-continue"&gt;&lt;img alt="http://www.logilab.org/file/113040?vid=download" src="http://www.logilab.org/file/113040?vid=download" /&gt;&lt;/a&gt;
&lt;p&gt;ou &lt;a class="reference" href="http://www.logilab.org/file/111231?vid=download"&gt;à télécharger en PDF&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="behaviour-driven-development"&gt;
&lt;h3&gt;&lt;a&gt;Behaviour Driven Development&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Le &lt;a class="reference" href="https://fr.wikipedia.org/wiki/Behavior_Driven_Development"&gt;BDD (Behaviour Driven Development)&lt;/a&gt; se combine avec des tests
fonctionnels haut niveau qui peuvent être décrits grâce à un formalisme syntaxique souvent associé au
langage Gherkin. Ces scénarios de test peuvent ensuite être convertis en
code et exécutés. Coté Python, nous avons trouvé &lt;a class="reference" href="http://packages.python.org/behave/"&gt;behave&lt;/a&gt; et &lt;a class="reference" href="http://packages.python.org/lettuce/"&gt;lettuce&lt;/a&gt;. De manière similaire à &lt;a class="reference" href="http://seleniumhq.org/"&gt;Selenium&lt;/a&gt; (scénarios de test de
navigation Web), la difficulté de ce genre de tests est plutôt leur
maintenance que l'écriture initiale.&lt;/p&gt;
&lt;img alt="https://www.logilab.org/file/113042?vid=download" class="align-center" src="https://www.logilab.org/file/113042?vid=download" /&gt;
&lt;p&gt;Ce langage haut niveau peut néanmoins être un canal de communication
avec un client écrivant des tests. À ce jour, nous avons eu plusieurs
clients prenant le temps de faire des fiches de tests que nous
&amp;quot;traduisons&amp;quot; ensuite en tests unitaires. Si le client n'est pas forcément prêt à apprendre le Python et leurs tests unitaires, il serait
peut-être prêt à écrire des tests selon ce formalisme.&lt;/p&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-12-05T09:47-01:00</dc:date>
  <dc:creator>Arthur Lutz</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/113043</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/113035</guid>
  <title>Announcing pylint.org</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/qORoDR9uwpM/113035</link>
  <description>&lt;p&gt;Pylint - the world renowned Python code static checker - now has a
landing page : &lt;a class="reference" href="http://www.pylint.org"&gt;http://www.pylint.org&lt;/a&gt;&lt;/p&gt;
&lt;img alt="http://www.python.org/images/python-logo.gif" class="align-center" src="http://www.python.org/images/python-logo.gif" /&gt;
&lt;p&gt;We've tried to summarize all the things a newcomer should know about
pylint. We hope it reflects the diversity of uses and support canals
for pylint.&lt;/p&gt;
&lt;div class="section" id="open-and-decentralized-web"&gt;
&lt;h3&gt;&lt;a&gt;Open and decentralized Web&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Note that pylint is not hosted on &lt;a class="reference" href="http://www.github.com"&gt;github&lt;/a&gt; or another well-known forge, since we firmly believe in a decentralized architecture for the web.&lt;/p&gt;
&lt;p&gt;This applies especially to open source software development. Pylint's development is self-hosted on a &lt;a class="reference" href="http://www.logilab.org/project/pylint"&gt;forge&lt;/a&gt; and its code is version-controlled with &lt;a class="reference" href="http://mercurial.selenic.com/"&gt;mercurial&lt;/a&gt;, a distributed version control system (DVCS). Both tools are free software written in python.&lt;/p&gt;
&lt;img alt="http://www.zjulian.com/wp-content/uploads/2012/05/Centralized-Decentralized-And-Distributed-System.jpg" class="align-center" src="http://www.zjulian.com/wp-content/uploads/2012/05/Centralized-Decentralized-And-Distributed-System.jpg" /&gt;
&lt;p&gt;We know centralized (and closed source) platforms for managing
software projects can make things easier for contributors. We have
enabled a mirror on &lt;a class="reference" href="https://bitbucket.org/logilab/pylint"&gt;bitbucket&lt;/a&gt; (and &lt;a class="reference" href="https://bitbucket.org/logilab/pylint-brain"&gt;pylint-brain&lt;/a&gt;) so as to ease forks and
pull requests. Pull requests can be made there and even from a
self-hosted mercurial (with a quick email on the &lt;a class="reference" href="http://lists.logilab.org/mailman/listinfo/python-projects"&gt;mailing-list&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Feel free to add your comments or feedback below.&lt;/p&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-12-04T19:18-01:00</dc:date>
  <dc:creator>Arthur Lutz</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/113035</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/112652</guid>
  <title>Mini-DebConf Paris 2012</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/uZlXWneik_A/112652</link>
  <description>&lt;p&gt;Last week-end, I attended the &lt;a class="reference" href="http://fr2012.mini.debconf.org/"&gt;mini-DebConf&lt;/a&gt; organized at EPITA (near
Paris) by the &lt;a class="reference" href="http://france.debian.net/"&gt;French Debian association&lt;/a&gt; and sponsored by &lt;a class="reference" href="http://www.logilab.fr/"&gt;Logilab&lt;/a&gt;.&lt;/p&gt;
&lt;img alt="http://www.logilab.org/file/112649?vid=download" src="http://www.logilab.org/file/112649?vid=download" /&gt;
&lt;p&gt;The event was a great success, with a rather large number of attendees,
including people coming from abroad such as Debian kernel maintainers &lt;a class="reference" href="http://womble.decadent.org.uk/blog"&gt;Ben
Hutchings&lt;/a&gt; and &lt;a class="reference" href="http://www.itp.tuwien.ac.at/~mattems/blog"&gt;Maximilian Attems&lt;/a&gt;, who talked about their work with Linux.&lt;/p&gt;
&lt;p&gt;Among the other speakers were &lt;a class="reference" href="http://www.dachary.org/loic/"&gt;Loïc Dachary&lt;/a&gt; about &lt;a class="reference" href="http://www.openstack.org/"&gt;OpenStack&lt;/a&gt; and its
packaging in Debian, and &lt;a class="reference" href="http://np237.livejournal.com/"&gt;Josselin Mouette&lt;/a&gt; about his work deploying
Debian/&lt;a class="reference" href="http://www.gnome.org/"&gt;GNOME&lt;/a&gt; desktops in a large enterprise environment at &lt;a class="reference" href="http://research.edf.com/"&gt;EDF R&amp;amp;D&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On my part I gave a talk on Saturday about Debian's &lt;a class="reference" href="http://release.debian.org/"&gt;release team&lt;/a&gt;, and the
current state of the wheezy (to-be Debian 7.0) release.&lt;/p&gt;
&lt;p&gt;On Sunday I presented together with &lt;a class="reference" href="http://www.igmors.u-psud.fr/spip.php?article773"&gt;Vladimir Daric&lt;/a&gt; the work we did to
migrate a computation cluster from Red Hat to Debian.  Attendees had quite a
few questions about our use of &lt;a class="reference" href="http://zfsonlinux.org/"&gt;ZFS on Linux&lt;/a&gt; for storage, and &lt;a class="reference" href="http://saltstack.org/"&gt;salt&lt;/a&gt; for
configuration management and deployment.&lt;/p&gt;
&lt;p&gt;Slides for the talks are available on the mini-DebConf web page (&lt;a class="reference" href="http://fr2012.mini.debconf.org/slides/rt-minidebconf12.pdf"&gt;wheezy state&lt;/a&gt;, &lt;a class="reference" href="http://fr2012.mini.debconf.org/slides/cluster-talk.pdf"&gt;migration to debian cluster&lt;/a&gt; also &lt;a class="reference" href="http://fr2012.mini.debconf.org/slides/rt-minidebconf12.pdf"&gt;viewable on slideshare&lt;/a&gt;), and videos
will soon be on &lt;a class="reference" href="http://video.debian.net/"&gt;http://video.debian.net/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Now looking forward to next summer's &lt;a class="reference" href="http://debconf13.debconf.org/"&gt;DebConf13&lt;/a&gt; in Switzerland, and
hopefully next year's edition of the Paris event.&lt;/p&gt;
</description>
  <dc:date>2012-11-29T16:29-01:00</dc:date>
  <dc:creator>Julien Cristau</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/112652</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/107686</guid>
  <title>Logilab à PyConFR 2012 - compte rendu</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/j3EZTn00BgQ/107686</link>
  <description>&lt;a class="reference image-reference" href="http://tarek.openphoto.me/p/as/album-3"&gt;&lt;img alt="http://awesomeness.openphoto.me/custom/201209/4ed140-pycon3--1-of-37-_870x550.jpg" src="http://awesomeness.openphoto.me/custom/201209/4ed140-pycon3--1-of-37-_870x550.jpg" style="width: 256px;" /&gt;&lt;/a&gt;
&lt;p&gt;Logilab était à la conférence &lt;a class="reference" href="http://www.pycon.fr/2012/"&gt;PyConFR&lt;/a&gt; qui a pris place à Paris il y a
deux semaines.&lt;/p&gt;
&lt;p&gt;Nous avons commencé par un sprint &lt;a class="reference" href="http://www.logilab.org/project/pylint"&gt;pylint&lt;/a&gt;, coordonné par &lt;a class="reference" href="http://feldboris.alwaysdata.net/"&gt;Boris
Feld&lt;/a&gt;, où pas mal de volontaires sont passés pour traquer des bogues
ou ajouter des nouvelles fonctionnalités. Merci à tous!&lt;/p&gt;
&lt;p&gt;Pour ceux qui ne connaissent pas encore, &lt;a class="reference" href="http://www.logilab.org/project/pylint"&gt;pylint&lt;/a&gt; est un utilitaire
pratique que nous avons dans notre &lt;a class="reference" href="http://www.logilab.org"&gt;forge&lt;/a&gt;.  C'est un outil très
puissant d'analyse statique de scripts python qui aide à
améliorer/maintenir la qualité du code.&lt;/p&gt;
&lt;p&gt;Par la suite, après les &amp;quot;talks&amp;quot; des sponsors¸ où vous auriez pu voir &lt;a class="reference" href="http://tarek.openphoto.me/p/bu/album-3"&gt;Olivier&lt;/a&gt;,
vous avons pu participer à quelques tutoriels et présentations
vraiment excellentes. Il y avait des présentations pratiques avec,
entre autres, les &lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/27/"&gt;tests&lt;/a&gt;, &lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/7/"&gt;scikit-learn&lt;/a&gt; ou les outils pour gérer des services (&lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/51/"&gt;Cornice&lt;/a&gt;,
&lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/2/"&gt;Circus&lt;/a&gt;). Il y avait aussi des retours d'information sur le processus de
&lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/49/"&gt;développement de CPython&lt;/a&gt;, le &lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/7/"&gt;développement communautaire&lt;/a&gt; ou un
&lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/46/"&gt;supercalculateur&lt;/a&gt;.  Nous avons même pu faire de la
&lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/3/"&gt;musique avec python&lt;/a&gt; et un peu d'&amp;quot;embarqué&amp;quot; avec le
&lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/9/"&gt;Raspberry Pi et Arduino&lt;/a&gt; !&lt;/p&gt;
&lt;p&gt;Nous avons, avec Pierre-Yves, proposé deux tutoriels d'introduction au
gestionnaire de versions décentralisé &lt;a class="reference" href="http://mercurial.selenic.com/"&gt;Mercurial&lt;/a&gt;.  Le &lt;a class="reference" href="http://www.pycon.fr/2012/schedule/presentation/30/"&gt;premier
tutoriel&lt;/a&gt; abordait les bases avec des cas pratiques.  Lors du second
tutoriel, que l'on avait prévu initialement dans la continuité du
premier, nous avons finalement abordé des utilisations plus avancées
permettant de résoudre avec énormément d'efficacité des problématiques quotidiennes, comme les &lt;a class="reference" href="http://www.selenic.com/hg/help/revsets"&gt;requêtes sur les dépôts&lt;/a&gt;, ou la recherche
automatique de régression par &lt;a class="reference" href="http://mercurial.selenic.com/wiki/BisectExtension"&gt;bissection&lt;/a&gt;. Vous pouvez retrouver le support avec les exercices &lt;a class="reference" href="http://tuto.octopoid.net"&gt;là&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Pierre-Yves a présenté une nouvelle propriété importante de Mercurial:
l'&lt;a class="reference" href="http://hg-lab.logilab.org/doc/mutable-history/html/obs-concept.html"&gt;obsolescence&lt;/a&gt;.  Elle permet de mettre en place des outils d'édition
d'historique en toute sécurité ! Parmi ces outils, Pierre-Yves a
écrit une extension &lt;a class="reference" href="http://hg-lab.logilab.org/doc/mutable-history/html/"&gt;mutable-history&lt;/a&gt; qui vous offre une multitude de
commandes très pratiques.&lt;/p&gt;
&lt;p&gt;La présentation est disponible en &lt;a class="reference" href="http://www.logilab.org/file/107771?vid=download"&gt;PDF&lt;/a&gt; et en consultation en ligne sur &lt;a class="reference" href="http://fr.slideshare.net/logilab/historique-volutif-avec-mercurial-pyconfr-2012"&gt;slideshare&lt;/a&gt;. Nous mettrons bientôt la vidéo en ligne.&lt;/p&gt;
&lt;a class="reference image-reference" href="http://www.logilab.org/file/107771?vid=download"&gt;&lt;img alt="http://www.logilab.org/file/107770?vid=download" src="http://www.logilab.org/file/107770?vid=download" /&gt;&lt;/a&gt;
&lt;!-- raw::html :

&lt;iframe src="http://www.slideshare.net/slideshow/embed_code/14665329" width="427" height="356" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen&gt; &lt;/iframe&gt; &lt;div style="margin-bottom:5px"&gt; &lt;strong&gt; &lt;a href="http://www.slideshare.net/logilab/historique-volutif-avec-mercurial-pyconfr-2012" title="Historique évolutif avec Mercurial - Pyconfr 2012" target="_blank"&gt;Historique évolutif avec Mercurial - Pyconfr 2012&lt;/a&gt; &lt;/strong&gt; from &lt;strong&gt;&lt;a href="http://www.slideshare.net/logilab" target="_blank"&gt;Logilab&lt;/a&gt;&lt;/strong&gt; &lt;/div&gt; --&gt;
&lt;!-- html --&gt;
&lt;!-- &lt;video controls src="http://public.octopoid.net/Mercurial_PyConFr_2012.mp4"&gt;video de la présentation de l'obsolescence dans Mercurial&lt;/video&gt; --&gt;
&lt;p&gt;Si le sujet vous intéresse et que vous avez raté cette présentation, Pierre-Yves reparlera de ce sujet à l'&lt;a class="reference" href="http://act.osdc.fr/osdc2012fr/"&gt;OSDC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Pour ceux qui en veulent plus, &lt;a class="reference" href="http://ziade.org"&gt;Tarek Ziadé&lt;/a&gt; à mis à disposition des photos de la conférence
&lt;a class="reference" href="http://tarek.openphoto.me/photos/album-3/list"&gt;ici&lt;/a&gt;.&lt;/p&gt;
</description>
  <dc:date>2012-10-10T14:44-01:00</dc:date>
  <dc:creator>Alain Leufroy</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/107686</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.logilab.org/blogentry/107483</guid>
  <title>PyLint 0.26 is out</title>
  <link>http://feedproxy.google.com/~r/logilaborg/~3/-zhP6hY0gIw/107483</link>
  <description>&lt;p&gt;I'm very pleased to announce new releases of Pylint and
underlying ASTNG library, respectivly 0.26 and 0.24.1. The great
news is that both bring a lot of new features and some bug fixes,
mostly provided by the community effort.&lt;/p&gt;
&lt;p&gt;We're still trying to make it easier to contribute on our free
software project at Logilab, so I hope this will continue and
we'll get even more contritions in a near future, and an even
smarter/faster/whatever pylint!&lt;/p&gt;
&lt;p&gt;For more details, see ChangeLog files or &lt;a class="reference" href="http://www.logilab.org/project/pylint/0.26.0"&gt;http://www.logilab.org/project/pylint/0.26.0&lt;/a&gt; and &lt;a class="reference" href="http://www.logilab.org/project/logilab-astng/0.24.1"&gt;http://www.logilab.org/project/logilab-astng/0.24.1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So many thanks to all those who made that release, and enjoy!&lt;/p&gt;
</description>
  <dc:date>2012-10-08T18:32-01:00</dc:date>
  <dc:creator>Sylvain Thenault</dc:creator>
<feedburner:origLink>http://www.logilab.org/blogentry/107483</feedburner:origLink></item>
  </channel>
</rss>
