- 27 Feb, 2014 6 commits
-
-
Helga Velroyen authored
This patch updates the quick installation guide with with respect to some missing dependencies. Besides, it rephrases some instructions to make them more clear. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Petr Pudlak authored
.. so that Ganeti imports are below library imports and ordered alphabetically. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
The function convert the opcode name to lowercase with underscores, strips the 'Op' prefix and prepends Constants.opcodeReasonSrcOpcode. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
The function strips the 'Op' prefix from a constructor name and converts it to lower-case with underscores. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
This will allow compile-time checks for constructor names. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 26 Feb, 2014 6 commits
-
-
Hrvoje Ribicic authored
* stable-2.9 Make gnt-debug locks display fake job locks properly Make NiceSort treat integers well Revision bump for 2.9.5 Set release date for 2.9.5 Add NEWS entry for 2.9.5 Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Klaus Aehlig authored
While requests only get forwarded, it still helps to get luxid feature-complete with respect to master. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com> Cherry-picked from commit a6e406ceSigned-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
For luxid to be feature-complete with respect to masterd, it also needs to answer requests about locks. This includes knowing the fields available for locks. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com> Cherry-picked from commit 86b04819Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
* stable-2.9 Make gnt-debug locks display fake job locks properly Make NiceSort treat integers well Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
When a job is dependent on other jobs, a fake lock is created whose pending entry contains a list of job ids waiting on the job. gnt-debug locks did not expect the job ids to be ints, crashing when encountering them. This patch fixes the situation by forcing a string cast. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
NiceSort is invoked on arrays that may contain strings, but in other situations can contain ints as well. As this surprisingly makes sense, add a tiny modification to make NiceSort work in these conditions. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 25 Feb, 2014 4 commits
-
-
Klaus Aehlig authored
* stable-2.9 Revision bump for 2.9.5 Set release date for 2.9.5 Add NEWS entry for 2.9.5 Conflicts: NEWS: take both additions configure.ac: ignore revision bump Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Petr Pudlak authored
The offending target 'test/hs/offline-test.sh' requires the dependencies even when the test isn't actually run. This is because currently our Makefile doesn't distinguish between prerequisites for building test scripts and running them. This is a quick fix that hides the dependencies if the Haskell tests aren't built, but it doesn't address the core problem. This will be fixed in a separate patch series. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 24 Feb, 2014 19 commits
-
-
Klaus Aehlig authored
* stable-2.10 Let the instance's tuple of nodes start with the primary Fix the test that checks for the order of instance's nodes Revision bump for the 2.10.0 release Update NEWS file for 2.10.0 * stable-2.9 Fix net-common script in case of routed mode Document hspace's SPN parameters Document spindles in TSPEC man: Update the manual page of gnt-node FAILOVER Make hbal deal with no-LVM storage space properly * stable-2.8 Fix expression describing optional parameters Improve job status assert affected by race condition Export and import Disk/NIC name Fix backup import in case NIC is inside a network Override get() method of ConfigParser Conflicts: NEWS: take both additions configure.ac: ignore suffix bump Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
Describe the changes since 2.9.4 for the soon-to-be-released version 2.9.5. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
* stable-2.8 Fix expression describing optional parameters Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Klaus Aehlig authored
* stable-2.8 Fix expression describing optional parameters Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Klaus Aehlig authored
The NIC's network and vlan are also newly added, hence need to be considered optional to remain backwards compatible. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
* stable-2.9 Fix net-common script in case of routed mode Document hspace's SPN parameters Document spindles in TSPEC man: Update the manual page of gnt-node FAILOVER Make hbal deal with no-LVM storage space properly * stable-2.8 Improve job status assert affected by race condition Export and import Disk/NIC name Fix backup import in case NIC is inside a network Override get() method of ConfigParser Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Petr Pudlak authored
In particular, the test object and interface files and Makefile.ghc Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Instead of showing the long GHC command line, show which file is being compiled and what its dependencies are. This gives more meaningful information to developers. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This allows parallel compilation of all targets, including the Haskell object files. While re-starting GHC for every Haskell source almost doubles the total CPU time, allowing it run in parallel at the end cuts down the wall-clock time to half. Haskell targets are split into two: main ones and testing ones. The testing targets (starting with "test/") are build with coverage automatically. Therefore the testing object and interface files have different extensions (this also allows their parallel compilation). GHC is now used to produce a separate Makefile.ghc with all dependencies. This is then included and used for compiling each object file separately. Note that the inclusion + generation of Makefile.ghc is turned off when calling clean/ganeti/distclean. For some reason, Makefile infinitely recurses when calling "make ganeti", if it includes Makefile.ghc. But since using ifneq/endif in Makefile.am conflicts with Automake, it was necessary to put the snippet into an Automake variable and substitute it into the resulting Makefile. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Previously this was addressed by Makefile variables, which meant that it was possible to build the same binary with different compilation options without recompiling. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
When the build directory differs from the source directory, the automatic variable '$<' points to the file found by prepending the path. This causes double '../' to be inserted when combined with '$(abs_top_srcdir)'. This patch fixes this. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Dimitris Aragiorgis authored
setup_route should run in case or routed mode and not openvswitch. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com> Cherry-picked from 49c60905. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Klaus Aehlig authored
With the introduction of spindles as resources, the machine-readable output of hspace(1) has been extended. Document the additional parameters. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Klaus Aehlig authored
As spindles are now considered a resource, they are also output in the TSPEC parameter of hspace --machine-readable. Document this interface change. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Petr Pudlak authored
Before the tuple of nodes of an instance was created from a set, listing the nodes in alphabetical order. This patch ensures that the primary node is always the first one in the list. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
The test checks if the first node in the tuple is the primary node, but because it names the node so that it's the least one alphabetically, the test always succeeds. This fixes the test. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
In particular explicitly note that a node failover causes all instances to be stopped and later restarted (issue #724). Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Petr Pudlak authored
Before, if any of these were missing, the creation of a cluster failed and the cluster remained in an inconsistent state, without the possibility to destroy it or to re-create it (#603). This patch calls 'GetEnts' during bootstrap, which tries to read all required system users and groups, and if it fails, stops before commencing the cluster creation. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Currently masterd and luxid run under separate user accounts, which makes it impossible for them to share access to the job queue. This patch adds the easiest fix - to configure luxid to run under the same user as masterd. It's open for discussion if we should keep the distinction between luxid and masterd users/groups at the code level (constants) as now, or to merge these constants together. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 20 Feb, 2014 5 commits
-
-
Klaus Aehlig authored
* stable-2.8 Improve job status assert affected by race condition Export and import Disk/NIC name Fix backup import in case NIC is inside a network Override get() method of ConfigParser Conflicts: lib/cmdlib/instance.py: manually apply 0973f9ed on the stable-2.9 version Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Hrvoje Ribicic authored
In the sliver of time between choosing a waiting job to be executed and trying to acquire locks for its execution, the status of the job can be changed to canceling. An assert checking the job status neglected to take this into account, and raised an error that managed to perpetually lock the job in the canceling state. This patch resolves the issue by making the assert accept the canceling state as well, and exiting if the job was cancelled. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Dimitris Aragiorgis authored
Name of Disk/NIC were not exported during backup until now. Use the exported info during gnt-backup import. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Dimitris Aragiorgis authored
Network UUID is written in .ini file during backup export but is not used by _ReadExportParams(). This patch fixes it. Please note that in case a network is given, link and mode should not be included in NIC options. This fixes issue 716. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Dimitris Aragiorgis authored
During backup import/export SafeConfigParser() is used to save/restore instance's configuration. There is a possibility if an export is done with a different Ganeti version, a specific value not to be saved during export (e.g. the NIC/Disk name) but still requested during import. With this patch we override the get() method of SafeConfigParser() and catch NoOptionError if raised and return None. Additionally we translate "None" values read from .ini file into None. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-