- Jan 15, 2013
-
-
Michael Hanselmann authored
Before this patch, HTML versions of man pages (man/*.rst) were already built. However, since they are separate from the normal documentation, their content is not indexed for Sphinx' search functionality. Additionally it would simply be nice to have everything in one place. To this end a new configure-time option is added to enable the inclusion of man pages into the documentation. A dedicated option is necessary to still be able to provide a static documentation build in the tarball (not including man pages) as man pages contain build-specific paths and values. The documentation with man pages is written to the directory “doc/man-html”. A future patch will extend Sphinx to link occurences of “:manpage:`…`” to these man pages. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Dato Simó authored
Commas are not valid characters in tags, hence they can't be use to separate the different job IDs; plus signs (+) are available, and not too bad. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Burnin doesn't support all disk templates (specifically it doesn't support “blockdev”). The code, however, used manually composed lists in some places, constants.DISK_TEMPLATES in others, and an internal list of supported templates in some. This patch changes burnin to only use its internal list of supported disk templates. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Keep the lists at the top instead of having them embedded in the code. Use frozenset, too. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This fixes a bug that corrups the config when one adds a network to a node group. I wil soon extend QA by some commands that would have detected this. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 14, 2013
-
-
Dato Simó authored
At the moment, because 'mergeData' is pure, it may set instance auto-repair policies that are of the form `ArSuspended $ Until timestamp_in_the_past`. If later on the auto-repair tool notices this, it has lost access to what would be the next-in-line policy to use (and would have to re-parse all tags again). To avoid this, we pass the current time to 'mergeData' from ExtLoader.hs, and we propagate it to Loader.getArPolicy. ExtLoader.loadExternalData is in the IO monad, so it has ready access to getClockTime. A few other places were calling 'mergeData' directly. For Hscan.hs and IAlloc.hs, we add appropriate calls to getClockTime. For files under test/, we use a current time of 0. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
'getArPolicy' and 'setArPolicy' follow the precedence rules introduced in b1eb71c7: within an object, the most restrictive tag wins; across object, the nearest tag wins. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
This commit clarifies one particular point of the auto-repair workflow: what to do when multiple, conflicting administrator-set tags exist in an object; and how tags at different levels (cluster, node group and instance) interact. For conflict within an object, we choose to always let the most restrictive tag win (i.e. the least destructive repair, and the longest suspension time). For tags at different levels, we follow a simple "nearest tag wins" rule. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
Some auto-repair tags are composed of a prefix and then an optional argument; the new "chompPrefix" function in Utils.hs allows to strip a prefix, allowing the last character (the separator) to be absent if there is no argument. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
This function allows to easily convert a ClockTime object to a string representation of its timestamp (seconds-only). Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
The graph added here follows the data types introduced in 7ec2f76b, by which "Suspended" is not a state, but a possible value of the auto-repair policy. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
AutoRepairPolicy, AutoRepairStatus, and other auxiliary types are added. These are used only internally by the auto-repair tool, and parsed from the various object tags as defined in the design doc. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
In this commit, the AutoRepairType and AutoRepairResult types are defined, with the possible values specified in doc/design-autorepair.rst. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dato Simó authored
This commit changes the "ganeti:watcher:repair:pending" and "ganeti:watcher:repair:result" tag prefixes to use "ganeti:watcher:autorepair:{pending,result}", so that the same prefix is used in all cases. Signed-off-by:
Dato Simó <dato@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
One is the --help output for kvm 1.1.2 and the second one is the same as 0.9.1 but with a fake option added between -drive and its boot=on|off option: this tests that if boot=on|off appears in another option after -drive it is not accepted by our regexp. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Use range() instead of building the list manually. Keeps the code shorter starting next year. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> Reviewed-and-lolled-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
As requested in Issue 69. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
As requested in Issue 261 and many other times. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
All in one go, comma separated usb devices of all types. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
For all of us that love to listen to music on our kvm virtual machines, the -soundhw option is paramount. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Use a multiline regexp rather than a single line one, and then split lines in the code. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
As discussed on the list some people backport features to different kvm versions, making the version based detection system unreliable. We change wherever we can to detection on the help output. This also fixes Issue 250 Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This will be used later, for now nothing changes. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This will be the default anyway and it was a mistake to pass it only if the mouse was specified. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
...and use it for a few parameters for which it makes sense. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This was requested in Issue 322. Note that maxcpus is not implemented yet, as it should be considered in a cpu-hotplug global context. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
The serial port speed changed between versions of qemu (what didn't?), so the old hardcoded default doesn't do anymore. Upgrade it to a parameter. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
* devel-2.6: QA: Use instance name for rename test Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
* stable-2.6: QA: Use instance name for rename test Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 11, 2013
-
-
Michael Hanselmann authored
Reported in issue 341. In some setups the instance live in a different netblock from the cluster. Therefore a the configuration-global “rename” name shouldn't be used for them. Instead another instance name is used. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Dimitris Aragiorgis authored
Make use of _GetNames() to get the final network UUIDs. Get networks info after having aquired the locks. Refactor the code to use new local variables: - "network_uuids" returned from _GetNames() - "all_networks" that are the latest network info - "name_to_uuid" used for getting network UUID out of NIC's network Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Also add a check to make sure there are enough groups defined. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 10, 2013
-
-
Michael Hanselmann authored
When man pages should be included they need to be copied from man/*.rst. This means documentation can no longer be built from the static reST files alone (which are referenced using “abs_top_srcdir”). Similar to Python files, automake doesn't copy or link the input files for documentation into the build tree. This patch adds all files required to build the documentation to “srclink_files”, renames the “docrst" variable to “docinput”, and then references the files in the build tree using “abs_top_builddir”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Dimitris Aragiorgis authored
kvm -M ? returns the supported machines (e.g. pc-1.1). Add _GetDefaultMachineVersion() function to get the default value. Upon kvm runtime file creation (this is in _GenerateKVMRuntime() invoked only in StartInstance()) append this info in kvm_cmd. During live migration the -incoming kvm process is started based on this file. In case of different KVM versions between source and target nodes there is a possibility (e.g. due to a kvm bug) for migration to fail silently. This patch forces the target node to emulate the same machine version used by running process. If KVM on target node does not support it the -incoming kvm process will crash and migration will be aborted. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
A missing letter has been added to a docstring. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
This script checks for some of the most obvious mistakes when formatting man page references (which should have the form “**ganeti**\(7)”). While this works now, it is very hard to avoid ambiguities (e.g. references within verbatim blocks) when using regular expressions. Also fixes a typo in Makefile.am by replacing “harcoded” with “hardcoded”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Sphinx is stricter than pandoc when parsing reST and does not allow an opening parenthesis to directly follow inline markup. [1] describes the rules. A backslash, as described in [2], can be used to separate the two. Additionally, there were different forms for referring to man pages. Sometimes it was a plain “ganeti(7)”, sometimes “**ganeti**(7)” and other times “**ganeti(7)**” (of course with different names and numbers). Commit 7acbda7b added a new paragraph and used the Sphinx-specific “:manpage:…” markup, which isn't supported by pandoc. It is replaced with a standard reference. [1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html# inline-markup-recognition-rules [2] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html# character-level-inline-markup Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-