- 04 Mar, 2014 3 commits
-
-
Thomas Thrainer authored
LUNodeAdd, the only LU using a node name still, is changed to overwrite PreparePostHookNodes() and use node UUIDs only as well. This allows to remove the support for 3-tuples as results of BuildHooksNodes() and removes the translation to node names. Fixes issue 742. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Thomas Thrainer authored
This method can be used to alter the list of node UUIDs on which post hooks are executed. PreparePostHookNodes is called after Exec, so LUs can use data only known after the execution of the LU. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michele Tartara authored
An error in the post-commit hooks could not be propagated correctly and could result in e.g. the return code of gnt-cluster verify to be 0 even in presence of an error in its output. Fixes Issue 744. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 26 Feb, 2014 3 commits
-
-
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 3 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>
-
- 24 Feb, 2014 11 commits
-
-
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>
-
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>
-
- 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>
-
- 19 Feb, 2014 4 commits
-
-
Helga Velroyen authored
Since 2.6, hbal crashes when used on a cluster where no LVM storage is enabled at all. The problem is that it always queries for fields that only sometimes make sense for certain types of storage. This patch will make it fall-back to a default value if those fields are not returned by a query. This way it will simply disregard the space information in its calculation which is the best we can do in this situation, because not all storage types support space reporting. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
Remove the ~rc3 suffix from the version for the official 2.10.0 release. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Thomas Thrainer authored
Mention the bug fix commited to the 2.8 branch and set the release date to tomorrow. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Thomas Thrainer authored
* stable-2.8 Fix integer overflow problem in hbal Add missing space Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 13 Feb, 2014 3 commits
-
-
Klaus Aehlig authored
* stable-2.8 Fix integer overflow problem in hbal Add missing space Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
waitForJobs in src/Ganeti/Jobs.hs has an integer overflow that (at least on amd64) causes it to break after waiting for ~10 minutes. This results in hbal sleeping forever (when compiled with squeeze's ghc 6.12.1) or crashing (when compiled with precise's ghc 7.4.1) whenever it has to wait ~10 minutes for a jobset to complete. Thanks to gjo@google.com for finding the bug and suggesting the fix. Fixes Issue 717. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Also, refactor the line to keep it under 80 chars. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 11 Feb, 2014 2 commits
-
-
Thomas Thrainer authored
Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Thomas Thrainer authored
Mention changes between 2.10.0~rc2 and 2.10.0~rc3 and set the release date to tomorrow. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 10 Feb, 2014 4 commits
-
-
Klaus Aehlig authored
* stable-2.9 Revision bump for 2.9.4 Set release date for 2.9.4 Note UUID identification change in NEWS file Allow classic queries to use either names or UUIDs Document the change of noded's group in NEWS Conflicts: NEWS: take all stable-2.9 additions, effectively restoring the 2.9.4 entry, hence effectively reverting 78cb4606 configure.ac: ignore revision bump Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Jose A. Lopes authored
* This patch fixes a type discrepancy between the Haskell type 'Ganeti.OpCodes.JobIdListOnly' and the Python type predicate 'ganeti.ht.TJobIdListOnly', the former being a list and the latter a dictionary. * Remove some whitespace Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 07 Feb, 2014 2 commits
-
-
Hrvoje Ribicic authored
Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
When UUIDs are used in CLI commands, such addressing of objects fails or succeeds inconsistently across object types. Worse yet, some calls do not fail, but simply return no result. This is due to the way the classical queries are handled in the Haskell code - a filter is built, checking if the names match. If the names do not match, but the object can still be retrieved through UUID, the query is successful, but there is nothing to return. This patch remedies the situation by extending the filter into an or clause checking for either name or uuid. For objects that have no uuid field, the name is reused, making the filter equivalent to the old one. Works towards resolving issue 703. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-