- Apr 16, 2013
-
-
Aaron Knister authored
LogicalVolume.Attach in bdev.py is calling "lvs" and specifying a unit of Megabytes that is then converted to an integer resulting in the value 0 for small sizes. This patch makes Ganeti use KB for the unit instead of MB. Fixes Issue 347. Signed-off-by:
Aaron Knister <aaron.knister@gmail.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Apr 12, 2013
-
-
Michele Tartara authored
Provide some more insights about how to use the RAPI from the command line through the "curl" command. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
Add some additional information about how to use/test the RAPI, including how to specify authentication credentials. Cherry picked from 681f4f7b on master. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 11, 2013
-
-
Guido Trotter authored
Due to a bug in 8e55e20f burnin's installation path got changed. Moving tools/burnin to the right makefile target reverts this (while preserving the value of the original commit). Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Klaus Aehlig authored
hail now correctly applies the instance disk policies, which leads to differnt allocations. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
We test on two minimal examples, a positive and a negative one, where the possibility to allocate a node depends on whether the disk policy is checked on a per-disk level or on the total amount of disk space requested. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
In that way, tools building on Instance will benefit from the corrected verification semantics of the instance policy on disk space. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Instance policy on disks is specified on a per-disk basis. So extend the instance description by the sizes of the individual disks and modify the instance policy verification to correctly check individual disks. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
Importing an instance, like JSON, automatically allows the names of all its functions to be used. If one of this functions (namely showJSON) is imported separately, GHC 6 is fine with that, but GHC 7 emits a warning (therefore, the compilation of Ganeti fails because it requires no warnings). This patch fixes the build for GHC 7 and has no impact on GHC 6. Note that the same does not apply to the import of readJSON, because that function is actually used in the same file, so it must be imported separately. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Trasforming the disk of an instance from DRBD to plain did not properly update the iv_name of disks, leaving it to None. This commit modifies _ConvertDrbdToPlain to properly set the iv_name variables. An analogous fix is not required in the opposite function, _ConvertPlainToDrbd, because it uses _GenerateDiskTemplate, that already takes care of doing that. Fixes Issue 403. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 10, 2013
-
-
Helga Velroyen authored
This patch introduces an upper limit to the size of the networks that can be created. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
When creating a network, so far no size constraints were checked. We now limit the size of a network to a /30 or bigger, although tecnically, the ipaddr library supports even /32 networks. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
If split users are used, the queue directory could only be accessed by masterd, but also confd needs to be able to read it, e.g. when it is queried as part of "gnt-job list" This commit fixes the permissions in such a way to allow proper access rights. Fixes Issue 406. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
For diskless instances it is still reasonable to sum up the disk usage of all the (zero) disks, resulting in the empty sum. This uniformity also has the advantage that iallocators (like hail) do not have to do any special considerations for diskless instances. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 09, 2013
-
-
Michele Tartara authored
When executed in split user mode, Ganeti requires a specific set of users and groups to be created in the appropriate way. This commit introduces a tool that takes care of that automatically. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 08, 2013
-
-
Michele Tartara authored
The code introduced by the previous commit triggered a possible library conflict in Ubuntu Lucid. This patch introduces an equivalent but more widely acceptable version of the same code. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
In case of problems while reading the job list from disk (such as permission errors) confd would silently fail, writing a warning on the log file but sending an empty list and no error message to the client. Also, tests have been updated in accordance to the new interface of the modified functions. This commit fixes this problem [Issue 405]. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 05, 2013
-
-
Michele Tartara authored
A group name was erroneusly inserted in the list of user names. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 03, 2013
-
-
Klaus Aehlig authored
Moving an instance is done by copying over the disks. Restrict this to disk templates that are copyable. This avoids accidental use on, e.g., the sharedfile template. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Klaus Aehlig authored
This list contains the disk templates suitable for moving an instance by copying the files. A requirement is that they're not accessed externally or shared between nodes; in particular, sharedfile is not suitable. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Klaus Aehlig authored
Now that _CreateDisks cleans up after itself in case of failure, do not clean up at call sites, as there we have to overapproximate thus potentially causing data loss. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
_CreateDisk used to just throw an exception if _CreateBlockDev failed leaving the caller in the state that some disks were created, without precise knowledge which. Usually, the clean up then overapproximated by removing all disks of the instance. This can cause data loss in case the disk creation failed because of a file being already in the place where the disk is to be created. With this patch, upon failure, _CreateDisk removes the disks that were successfully created, leaving a well-defined state. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 02, 2013
-
-
Guido Trotter authored
Also update the release date for beta2 Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Guido Trotter authored
Before: $ ./autotools/check-news < ./NEWS Traceback (most recent call last): File "./autotools/check-news", line 150, in <module> main() File "./autotools/check-news", line 120, in main parsed_ts = time.mktime(time.strptime(m.group("date"), "%d %b %Y")) AttributeError: 'NoneType' object has no attribute 'group' After: $ ./autotools/check-news < ./NEWS Line 8: Invalid release line This happened because the error function just updates an error log, rather than bailing out immediately. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Guido Trotter authored
Mention most relevant updates and user visible changes and fixes. These entries will only be maintained during the beta/rc series, but will then be replaced with a single "2.7.0" entry when we will release 2.7. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Mar 20, 2013
-
-
Bernardo Dal Seno authored
Messages were inconsistent. You could get both an error and a message saying that everything was fine. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
We are not ready for this change yet. Let's push it to 2.8. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 12, 2013
-
-
Daniel Krambrock authored
This allows migrating to any node, as it is already possible for failover, when instances are externally mirrored. Signed-off-by:
Daniel Krambrock <danielk_lists@z9d.de> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
This addresses Issue 237. Mirroring no disk is a no-op. As such we can treat them like mirrored instances, since the data they need (none) will be present on all nodes. This is definitely enough to failover or migrate instances with a manual target node. Further work might be needed for support in hail. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
This fixes issue 396. - Fix a wrong comment that mentions drbd8 when actually the code acts only on externally mirrored instances. - Fix a wrong assert that requires failover/migrate to acquire the NAL on externally mirrored instances: this is the case only when a iallocator is used, not if a node is manually specified. Extra qa should be added, but this can only be done if an externally mirrored instance or a diskless instance is tested. It is easier to add it on the master branch, where we have diskless instances support. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Mar 11, 2013
-
-
Bernardo Dal Seno authored
When instance policy is violated, creation fails. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Violations on policy changes are checked. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
qa_cluster.TestClusterSetISpecs() is exported as it will be used in future tests. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Tests for: objects.InstancePolicy.CheckParameterSyntax() objects.InstancePolicy.CheckDiskTemplates() objects.InstancePolicy.CheckISpecSyntax() Instance policies with an empty disk-template list now are reported. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
IPOLICY_DEFAULTS is now a legal policy (the disk-templates entry was a set instead of a list, before). Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Unknown elements were silently removed on startup. This means that a software upgrade could result in lost configuration information if cfgupgrade wasn't run promptly. Added unit test for Cluster.UpgradeConfig() to cover this case. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-