- May 13, 2014
-
-
Hrvoje Ribicic authored
This patch makes import and export operations fail when a non-whitelisted compression type is used. The whitelisted tools have to be specified manually via "gnt-cluster modify --custom-compression-tools=<tools>". Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- May 09, 2014
-
-
Klaus Aehlig authored
Locks are now identified by their name, and no longer a resource in the master daemon. In particular, there is no more need for explicitly removing the locks; freeing them is enough. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- May 05, 2014
-
-
Ilias Tsitsimpis authored
This patch replaces 'instance.disks' with 'GetInstanceDisks' everywhere in the codebase. From now on, the function 'GetInstanceDisks' from the config file has to be used in order to get the disks of an instance. Also the functions 'AddInstanceDisk'/'RemoveInstanceDisk' have to be used to add/remove a disk object to/from the config file. Signed-off-by:
Ilias Tsitsimpis <iliastsi@grnet.gr> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Ilias Tsitsimpis authored
Use 'GetInstanceSecondaryNodes' to get the secondary nodes of an instance, instead of the 'secondary_nodes'. Annotate 'secondary_nodes' in rpc so that backend has access to it. Signed-off-by:
Ilias Tsitsimpis <iliastsi@grnet.gr> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Ilias Tsitsimpis authored
The function BuildHooksEnv in LUInstanceRemove, calls the function BuildInstanceHookEnvByObject which needs to query the config to get the secondary_nodes/disks of an instance. The function BuildHooksEnv will be called before and after the Exec function. The second time it will fail to query for the secondary_nodes/disks of the instance as the instance will not be available at the config any more. This patch changes BuildInstanceHookEnvByObject to allow it to override the secondary_nodes/disks of an instance. Signed-off-by:
Ilias Tsitsimpis <iliastsi@grnet.gr> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- Apr 02, 2014
-
-
Jose A. Lopes authored
This function is responsible for transforming the instance into a dict and optionally overriding the OS parameters (public, private, secret). Also, in case of failure it issues a warning. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- Mar 17, 2014
-
-
Jose A. Lopes authored
... as this is now performed on the node. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- Mar 13, 2014
-
-
Klaus Aehlig authored
So far, the mcpu acquires locks that live in memory of masterd. This design does not fit with our jobs-as-processes goal. So make mcpu acquire the corresponding locks in WConfD instead. Note that this implies changes in various other files that call to the Ganeti Lock Manager directly. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- Jan 30, 2014
-
-
Klaus Aehlig authored
In the case of a degraded file-based instance, the file storage directory for that instance cannot be obtained by looking at the first disk. Use the standard location, computed from first principles, in this case. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- Dec 17, 2013
-
-
Santi Raffa authored
Add parameters to the Gluster disk template so Gluster can manage the mount point point autonomously. Signed-off-by:
Santi Raffa <rsanti@google.com> Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- Oct 07, 2013
-
-
Helga Velroyen authored
This patch renames the constant 'LDS_DRBD' to 'DTS_DRBD' to make it consistent with the renaming of LD_* constants to DT_* constants. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- Sep 24, 2013
-
-
Thomas Thrainer authored
The 'physical_id' field of disk objects is no longer used, so remove it. Also, all references are removed together with the code which made sure that the physical_id is up to date when transmitted over RPC. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Thomas Thrainer authored
The disk field 'physical_id' has to be kept up to date whenever a disk object is sent to a node via RPC. This is done with the SetDiskID method manually, which is a source of bugs. This patch replaces the use of 'physical_id' with a new field names 'dynamic_params'. The RPC code is adapted to update this field whenever a disk object is sent to a node. Furthermore, this field is only ever set on copies of disk objects which don't get written to the configuration file. On the node side, the use of 'physical_id' is removed and the new dynamic parameters are used now for the same purpose. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- Aug 12, 2013
-
-
Thomas Thrainer authored
CheckNodeNotDrained displayed only the node UUID if the node is drained. In order to provide a more helpful error message, use the node name instead. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jul 24, 2013
-
-
Sebastian Gebhard authored
Extensions for "gnt-instance show" to output the vlan parameter which was introduced by my recent patch series. This is done by extending the nic object that is used to output the info. Every other occurrence of this object is adopted as well. This should fix the errors during make commit-check and lint errors Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- Jul 15, 2013
-
-
Helga Velroyen authored
This patch removes the usage of the ENABLE_FILE_STORAGE constant in the backend code. To avoid having to pass it through various RPC calls, we instead move the check to cmdlib. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- Jul 02, 2013
-
-
Helga Velroyen authored
This patch extends the actual RPC call to accept storage parameters with each storage units. It adjusts all code which performs this code by integrating the 'exclusive storage' flag into the lvm storage unit. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- Jun 20, 2013
-
-
Thomas Thrainer authored
No longer index instances by their name but by their UUID in the cluster config. This change changes large parts of the code, as the following adjustments were necessary: * Change the index key to UUID in the configuration and the ConfigWriter, including all methods. * External interfaces (command line interface, IAllocator interface, hook scripts, etc.) are kept stable. * Instance UUID's are resolved in ExpandNames and then stored in the OpCode. This allows to check for instance renames if the OpCode is reloaded after a cluster restart. This check is currently only done for single instance parameters. * Instance locking unfortunately can't use instances UUID as identifiers. The reasons is that new instances (which have no UUID yet) have to be locked as well, so the instance name is used. * Variable names are renamed to follow the following pattern: - Suffix is 'inst' or 'insts': Variable holds Instance objects - Suffix is 'name' or 'names': Variable holds Instance names - Suffix is 'uuid' or 'uuids': Variable holds Instance UUID's * Tests are adapted. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- Jun 13, 2013
-
-
Thomas Thrainer authored
No longer index nodes by their name but by their UUID in the cluster config. This change changes large parts of the code, as the following adjustments were necessary: * Change the index key to UUID in the configuration and the ConfigWriter, including all methods. * Change all cross-references to nodes to use UUID's. * External interfaces (command line interface, IAllocator interface, hook scripts, etc.) are kept stable. * RPC-calls can resolve UUID's as target node arguments, if the RPC runner is based on a ConfigWriter instance. The result dictionary is presented in the form the nodes are addressed: by UUID if UUID's were given, or by name if names were given. * Node UUID's are resolved in ExpandNames and then stored in the OpCode. This allows to check for node renames if the OpCode is reloaded after a cluster restart. This check is currently only done for single node parameters. * Variable names are renamed to follow the following pattern: - Suffix is 'node' or 'nodes': Variable holds Node objects - Suffix is 'name' or 'names': Variable holds node names - Suffix is 'uuid' or 'uuids': Variable holds node UUID's * Tests are adapted. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- Jun 12, 2013
-
-
Helga Velroyen authored
This patch contains all adjustments necessary to code that uses the 'call_node_info' call. The adjustment is necessary because the call's signature changed from receiving a list of hypervisor names to a list of tuples (hypervisor_name, hvparams). Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- Jun 04, 2013
-
-
Christos Stavrakakis authored
Export UUIDs and names of instance NICs and disks to the environment of OS scripts and instance related hooks. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- May 17, 2013
-
-
Thomas Thrainer authored
All functions/classes which are used outside of their defining module (with tests as an exception) no longer have a leading underscore. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Thomas Thrainer authored
Split instance.py further by extracting instance operations (start/stop/reboot/etc.) related logical units and functions to instance_operation.py. The extracted operations have in common that they affect the operating system in a running instance directly. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Thomas Thrainer authored
Split instance.py further by extracting migration related logical units and functions to instance_migration.py. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Thomas Thrainer authored
Split instance.py further by extracting storage related logical units and functions to instance_storage.py. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Thomas Thrainer authored
All LUInstance* classes are extracted to instance.py. Common functions are moved to common.py if used by non-instance logical units as well. Additionally, helper functions which are only used by LUBackup* and LUInstance* are moved to instance_utils.py. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-