1. 25 Aug, 2009 2 commits
  2. 24 Aug, 2009 2 commits
  3. 12 Aug, 2009 1 commit
  4. 11 Aug, 2009 1 commit
  5. 10 Aug, 2009 3 commits
  6. 07 Aug, 2009 1 commit
  7. 05 Aug, 2009 1 commit
    • Guido Trotter's avatar
      ConfigObject.ToDict() only export non-None values · 4c14965f
      Guido Trotter authored
      The method is changed to a normal loop, to avoid calling getattr()
      twice. Also __getstate__ is changed to just use ToDict() by default.
      This should also make __getstate__ work for objects which have to
      override the ToDict function because they contain other objects.
      __setstate__ is probably still broken in this case, but so it was
      before, and it's not used inside our code, so I'll pretend not to have
      noticed, as there is no "nice" way to fix it, without overriding it all
      over the place :(
      Some unittests are added as a bonus, to make sure we behave well.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
  8. 04 Aug, 2009 1 commit
    • Iustin Pop's avatar
      Simplify the devel/upload script · c5159571
      Iustin Pop authored
      Instead of multiple uploads to each node, this script copies everything
      as needed to the temporary directory, exactly as to be installed in the
      destination machine, then runs only one rsync per host.
      This is more dangerous (we can break /etc now), but for development
      machines is fine.
      The patch then also uploads the bash completions and the current name
      for the cron job (I think that ganeti-master-cron is a deprecated name,
      not that someone actually intends to upload a file named like that). A
      flag --no-cron is added to skip uploading the cron file if desired.
      The patch also changes rsync to propagate the file permissions.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  9. 29 Jul, 2009 1 commit
  10. 27 Jul, 2009 1 commit
  11. 07 Jul, 2009 1 commit
  12. 08 Jun, 2009 2 commits
  13. 12 May, 2009 4 commits
    • Iustin Pop's avatar
      New hypervisor implementation: chroot manager · 48297fa2
      Iustin Pop authored
      This patch adds a new hypervisor implementation: a chroot manager. This
      hypervisor type can be used to manage (in combination with special OS
      definitions) the start and stop of chroot areas, and if used with drbd
      instances, it allows (via failover) the migration of chroots between
      This is a work in progress, and the way chroots should work is not very
      clear and does not fit very well in the OS definition framework.
      However, the hypervisor works and (if the sshd in the chroot is well
      configured) it allows login to the instance both via ssh and console as
      for a normal instance.
        - implement instance IP add/remove to/from the bridge, if the instance
          has a defined IP
        - investigate improvements to the OS API so that the create script has
          more information available, e.g. about the hypervisor type
        - mount extra disks in the chroot or alternatively refuse to start
          with more than one disk
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    • Iustin Pop's avatar
      Move the glossary to a separate file · e2078d28
      Iustin Pop authored
      Currently we have an insignificant glossary at the end of the design-2.0
      document. This patch moves it to a separate file with the goal that it
      will grow and all files can refer to it.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    • Iustin Pop's avatar
      Switch the documentation to sphinx · d17e74b4
      Iustin Pop authored
      This big patch converts the documentation build system to sphinx
      ). Since that uses reStructuredText sources
      too, there is no change (yet) in the documents themselves, just in the
      build system.
      As before, the docs are pre built by the maintainer, and the end-user
      doesn't need sphinx or other rst tools to build the docs. Note that we
      are not distributing PDFs, so building that will require the tools.
      The docs will be stored under doc/html and the build system also need an
      extra directory doc/build. These are considered (by automake)
      maintainer-related objects and are removed at maintainer-clean time.
      The patch also fixes some small issues: add a docpng variable, add
      doc/api (also generated by maintainer) in maintainer-clean-local, etc.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    • Iustin Pop's avatar
      Convert from auto-generated RAPI docs to static · 6d81475c
      Iustin Pop authored
      This patch removes the autogeneration of the RAPI docs from the code
      (based on docstrings) and moves the current autogenerated output to
      the rapi.rst file.
      The reasons behind this are multiple:
        - the build system becomes a little more simple (this could have been
      	achieved also by distributing the built documentation, though)
        - it's hard to actually write documentation in docstrings; you have to
      	fit restructured text inside the docstrings, and this results in
      	not really nice output
        - even by being close to the code, the documentation manages to get
      	out of sync (not paying attention to docstrings)
      This will also help with the move to sphinx.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  14. 11 May, 2009 1 commit
  15. 07 May, 2009 1 commit
  16. 14 Apr, 2009 1 commit
  17. 07 Apr, 2009 1 commit
    • Iustin Pop's avatar
      Distribute built documentation · 2ab2b9f5
      Iustin Pop authored
      This patch changes the way documentation is built in order to distribute
      the generated output in the 'dist' archive, and thus no longer
      requiring the presence of the docbook/rst toolchains during build time.
      This will lower the requirements for installation and also makes the
      build time insignificant.
      First, we remove the docbook2pdf rules and variables, since we no longer
      build this kind of docs. Furthermore, the rst source files are not
      (today) processed via replace_vars_sed, so the whole .in rules for doc/
      go away.
      Next, we change the ".sgml|.rst -> replace_vars_sed -> .in -> processor
      -> final file" processing to ".sgml|.rst -> generator -> .in ->
      replace_vars_sed -> final file"; this means we first process the file
      using the formatter, with the @VARIABLE@ entries in it, and save the
      output as .in; this output we distribute, and on the user side, the
      replace_vars_sed will use the new configure flags to transform the
      (almost final .in form) to the final form, without needing the
      In configure.ac we also change from ERROR to WARN for the documentation
      generators, and extra tests in Makefile.am check that the programs have
      been found.
      This was tested with distcheck and works as expected.
      Reviewed-by: ultrotter
  18. 27 Feb, 2009 2 commits
    • Iustin Pop's avatar
      Convert the RAPI document to restructured text · 4352bf6d
      Iustin Pop authored
      This patch changes the RAPI document, and the RAPI resources
      autogenerated-documentation to restructured text. This meant changing
      the autogen tool.
      The new fragment can be included via RST directives, and doesn't need
      passing through replace-sed-vars. This was also the last sgml document
      in doc/, so we remove old makefile rules about it.
      Reviewed-by: imsnah
    • Iustin Pop's avatar
      Convert the install document to restructured text. · 28e15341
      Iustin Pop authored
      This switches back to the hardcoding of the version number, as we don't
      yet have a wrapper for rst files that passes them through
      Reviewed-by: imsnah
  19. 26 Feb, 2009 2 commits
    • Iustin Pop's avatar
      Fix the Makefile after the bash_completion patch · f72f8622
      Iustin Pop authored
      I've somehow left these two out. Sorry!
      Reviewed-by: imsnah
    • Iustin Pop's avatar
      Add bash-completion rules · e2a2a2eb
      Iustin Pop authored
      This is a not-complete bash completion file for ganeti commands (gnt-*)
      and the burnin tool. It is based on previous work by Minghua Ye
      <yeminghua@google.com> for Ganeti 1.1, which wasn't used because the
      lack of ssconf keys (which allow easy inspection by the shell of the
      existing nodes and instances) made it too slow.
      The file works as expected, however I realized that our custom (like
      comma-separated, or a=b:c,e:f) options are not very nice for
      auto-completion. There are a few FIXMEs in the source for that.
      The file is not installed at make install time, but it should be put in
      the correct place by packages.
      Reviewed-by: imsnah
  20. 25 Feb, 2009 1 commit
  21. 24 Feb, 2009 2 commits
    • Iustin Pop's avatar
      Convert iallocator.sgml to restructured text · 876860a3
      Iustin Pop authored
      This is a no-contents change, this doc will need update to conform to
      2.0 message contents (and also the code will need increase to version 2
      of the iallocator protocol).
      Reviewed-by: imsnah
    • Iustin Pop's avatar
      Convert the admin guide to restructured text · ffa6869f
      Iustin Pop authored
      The RST format holds a little bit less information, as all the <file
      class="directory"> and <userinput> tags are gone, however we're not
      really losing important context here. And it's way easier to read and
      Reviewed-by: imsnah
  22. 20 Feb, 2009 1 commit
  23. 12 Feb, 2009 3 commits
  24. 29 Jan, 2009 1 commit
  25. 21 Jan, 2009 1 commit
    • Guido Trotter's avatar
      KVM: instance migration · 30e42c4e
      Guido Trotter authored
      The tcp port used for migrating KVM instances is selectable at
      ./configure time. We use a single port as nodes are locked anyway during
      a migration, so no two migrations can happen at the same time to the
      same node.
      Reviewed-by: iustinp
  26. 19 Dec, 2008 1 commit
  27. 16 Dec, 2008 1 commit
    • Guido Trotter's avatar
      KVM: improve socat interface · 14aa53cb
      Guido Trotter authored
      Call socat with a full path specified at configure time, rather than
      just by its name, and check for the binary to exist at hypervisor
      Reviewed-by: iustinp