- 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>
-