- Apr 22, 2013
-
-
Bernardo Dal Seno authored
This is similar to 405692ef, reverted in aeefb4cd. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 19, 2013
-
-
Klaus Aehlig authored
As people rely on the master node being the last node of the last group, make hroller fail, if no master node could be found in the cluster. This happens, e.g., if a backend format is used that does not contain information about the master node. The error can be turned into a warning by using the --force option. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Where the information is available, hroller now schedules the master node as the last node in the last group. Update the man page to reflect this change. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
The cluster data contains the information about the master node. Use this information to set the isMaster bit correctly. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
The cluster data contains the information about the master node. Use this information to set the isMaster bit correctly. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
The information about which node is the master node is a cluster-wide setting, in most formats provided independently of the node information. Most backends therefore have to set the isMaster bit indepently in the obtained node list. This patch provides a utility function for this. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
If in the list of nodes to be scheduled for maintaince, one is marked as being the master node, schedule it as the last node in the last group. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Extend the description of the node by the property of being the master node; also provide and appropriate setter function. This property will be used, e.g., by hroller to schedule reboot of the master last. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Filtering of nodes by node group was already implemented in 2fce67b6; fix the man page to reflect this change. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
This was renamed in b284f504 but the old name was still in use in the makefile and draft designs list. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- Apr 18, 2013
-
-
Helga Velroyen authored
Adding the design decision regarding the consistency of the enabled disk templates in the ipolicy and in the cluster config. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
Since the design doc for storage space reporting ended up being mostly about disk templates and storage types, and the space reporting being just a small part of it, I am renaming the design doc. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This fixes an error in case there are no disk names in the QA config (which was the case till recently). Right now, QA tries to use 'None' as disk name and that makes instance creation fail. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This reverts commit 405692ef, because it breaks QA. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
When adding a 'Reviewed-by'-line, also add the reviewer passed through the REVIEWER environment variable. In that way, adding the reviewer for patch series all reviewed by the same person gets easier. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 17, 2013
-
-
Helga Velroyen authored
This does not solve the underlying problem of the rapi test not being runnable locally, but it makes it at least configurable to avoid having to patch in/out all the time. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Thomas Thrainer authored
These lines are ok according to previous versions of hlint but trigger an error with version 1.8.43. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Fix 'move-instance' tool to preserve the instance disk and NIC names when moving instances from one cluster to another. Also, fix value error since an instance NIC is an 8-tuple, containing also name and UUID. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
This patch updates gnt-instance man page to include refering to devices by their name and UUID. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Modify existing tests to use the name option for instance disks. The configuration options 'disk' and 'disk-growth' are merged into a single 'disks' option, which is a list of dictionaries with 'size', 'growth' and 'name' items. Also, add 'instance-device-names' QA test, which tests addition, renaming and removal of named devices. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
This commits adds name to NIC and Disk modification definition. Signed-off-by:
Chris Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Add name and uuid fields to Disk and nic Haskell objects. Also, since they now have an UUID, make them instances of UuidObject. Signed-off-by:
Christor Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Since disks and NICs have UUIDs, they must be considered to _AllUUIDObjects. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Modify gnt-instance client to display the UUID and name fields of instances disks and NICs. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Extend instance queries to list 'uuid' and 'name' fields of instance's Disks and NICs. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Extend the CheckArguments phase of LUInstanceCreate and CheckPrereq phase of LUInstanceSetParams to also check if the name parameters of disks and NICs are unique and valid. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Implement renaming Disks and NICs in LUInstanceSetParams. Remove code that checked that changing disk mode was the only disk modification supported. Also, handle case of 'None' value for 'name' parameter. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Modify _ApplyContainerMods function to lookup NICs/Disks not only by their index inside the container, but also by their UUID or name. Abstract the lookup code in new GetItemFromContainer function. Make type of identifier in "opcode._TestInstSetParamsModList" to be TInt or TString. Modify gnt-instance client to not check if identifier is an integer. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Handle UUID and name fields when creating/managing NICs and Disks. Also, export NICs and Disks names to instance hooks environment. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
Declare IDISK_NAME and INIC_NAME constants and add them to the IDISK_PARAMS_TYPE and INIC_PARAMS_TYPE. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
This patch adds "uuid" and "name" slots to Disk and NIC ConfigObjects. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Christos Stavrakakis authored
This commit adds the design document for adding UUID and name slots to NIC and Disk objects and the ability to refer to them by these slots. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Apr 14, 2013
-
-
Bernardo Dal Seno authored
The test failed because it was executed also in a configuration that wasn't expected, i.e., with exclusive storage enabled. Also the docstring is shortened, as it was being truncated in the QA output. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
qa_config.IsTemplateSupported() is already used to decide which disk templates are supported by QA. Enabled templates now are part of that decision. Unit tests are updated. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 12, 2013
-
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
The test data for hail allocating a multi-disk instance was originally added in the 2.7 branch. On master the format of the ipolicy had changed; "min" and "max" are no longer top-level of the ipolicy, but instead below the "minmax" key. Hence change the test data accordingly after the merge to master. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Apr 11, 2013
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Guido Trotter authored
* devel-2.7: (26 commits) Fix burnin install path Fix format of the NEWS file NEWS: Add news entry for the hail disk policy fix Add shelltests verifying hail applies disk ipolicy per disk Make the disks parameter available to the constructor Verify individual disks in Instance Compatibility fix for GHC 7 Properly update iv_name of disks while changing templates Limit the size of networks to /16 Check minimum size of networks on creation Fix job queue directory permission problems The disk size of a diskless instance is 0, not None Postpone non-urgent TODO from 2.7 to 2.9 Add tool for creating users and groups Backwards compatibility fix for Lucid Properly export errors while reading job list Fix typo and improve comment Fix a bug in the Runtime tests Restrict instance move to templates based on local files Introduce a constant for the copyable disk templates ... Conflicts: NEWS: trivial lib/network.py: trivial Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Helga Velroyen authored
This documents the new 'gnt-cluster init/modify' option '--enabled-disk-templates' in the man page. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
Since storage type are supposed to represent the underlying technology of disk templates, the storage type 'sharedfile' is superfluous, because technically both disk templates 'file' and 'sharedfile' use the file system. This will be of use when implementing the storage space reporting for all disk templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-