- 17 Jul, 2013 7 commits
-
-
Thomas Thrainer authored
As queryd will, in the future, handle all LUXI request, queue jobs and most likely perform various other tasks, it is renamed to luxid already. This will safe some headache when upgrading Ganeti installations, as we don't have to deal with a daemon rename. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
While there is a luxi query QueryNetworks, the rapi client does not provide such a method. Document this by declaring it in the KNOWN_UNUSED_LUXI calls. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Helga Velroyen authored
A while ago, the execution of python unit tests was accidentally disabled for distcheck. This patch enables them again. This will lead to a couple of tests failing, but we decided to submit this first and then fix the broken tests in separate patches. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
Add a man page for ganeti-queryd and update the documentation for ganeti-confd in various places. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
Test for the newly introduces ganeti-queryd in the environment test of QA. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
queryd is added as a new daemon which handles configuration queries over LUXI. This functionality was removed from confd, which now only queries over the network. The queryd user is added to the master group such that it can access server.pem. The confd user no longer needs to be in the master group. This fixes issue 292. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
Confd's functionality to watch the Ganeti configuration file is extracted to the ConfigReader module. No functional changes are introduced. This extraction makes will enable us to split queryd from confd, as queryd will have to use the same functionality. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 16 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
Add timestamp fields to the list of available network query fields in the Haskell code. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 15 Jul, 2013 4 commits
-
-
Klaus Aehlig authored
* stable-2.7 Fix RAPI to include missing network fields Add support for querying network timestamps In the crontab example, look for the correct binary Fix wrong numbering in UPGRADE documentation Conflicts: src/Ganeti/Objects.hs test/hs/Test/Ganeti/Objects.hs Resolved by taking both additions. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
ClientOps' handle_request dispatches on the luxi request received. Change this to first verify if the request is luxi.REQ_ALL. In this way, we catch programming errors introducing "secret" luxi requests earlier. This is relevant, as our other checks for internal consistency compare against luxi.REQ_ALL. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michele Tartara authored
The modify_etc_hosts options, enabling the cluster to modify the /etc/hosts files of nodes, and to keep them in sync, could only be set at cluster init time. With this commit it can now be changed through modify_etc_hosts as well. Fixes Issue 206. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
The option will be used by gnt-cluster modify in the following commit. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 12 Jul, 2013 2 commits
-
-
Klaus Aehlig authored
When the QueryNetwork was introduced as a method, apparently it was forgotten in the Haskell world. Add it here as well. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
At debug level, we can well afford to have a detailed entry for each message received by a server. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 11 Jul, 2013 3 commits
-
-
Michele Tartara authored
Starting confd as a member of the daemons group allows the RAPI daemon to access the LUXI socket. Fixes Issue 477. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
executeRpcCall is the function to be used for executing RPCs, so it makes sense to use it as the single point for logging all thte RPC call errors. Fixes Issue 293. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
This function can be useful to multiple RPC calls, therefore it is moved to the file containing the common RPC functions. Also, it is made more generic by changing its signature. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 10 Jul, 2013 6 commits
-
-
Leon Handreke authored
This patch exposes the bulk argument of the jobs resource on the RAPI python wrapper, making it possible to retrieve status information about all jobs with a single call. Signed-off-by:
Leon Handreke <lhandreke@google.com> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
"git send-email" is used as part of the official workflow but it was not installed in the chroot. This patch adds it. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Verify that the CanRead function is actually able to check whether a file has the proper permissions. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Christos Stavrakakis authored
Fix RAPI interface to include missing network fields. Specifically, fix instance queries to include the network name for instance NICs. Also fix network queries to include missing common fields, like uuid and serial. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Christos Stavrakakis authored
Add creation and modified timestamps when creating a new network, and extend the available query fields for networks with these fields, namely 'ctime' and 'mtime'. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
genNodeList is used in testing to generate list of nodes that could come up in cluster configurations. Since names are used to assign indices to nodes, they have to be unique; this is also the case in all real clusters. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Iustin Pop <iusty@k1024.org> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 09 Jul, 2013 4 commits
-
-
Michele Tartara authored
Currently, ConfD must be able to access server.pem (though this is likely to change in the future). If this is not true, all sorts of weird things happen, such as "gnt-node list" printing lots of question marks instead of actual data, with no meaningful error. This patch adds a check for the proper access permission to "gnt-cluster verify". Fixes Issue 518. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
The CanRead function checks whether a user of the local machine (specified by name) can access a given file. IsUserInGroup is a helper function for CanRead, but might also be used independently, so its name does not begin with an underscore. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
While running "gnt-node list", if a query to ConfD fails (especially because of permission problems) it used to just fail silently, with gnt-node showing question marks instead of data. With this patch, ConfD records the error in its log file, together with a message giving an indication of the reason. Fixes Issue 517. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
When ganeti-master-cleaner was merged back into ganeti-cleaner in 46118ed2 , the binary to test for should have also been updated. Do this now. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 08 Jul, 2013 2 commits
-
-
Michele Tartara authored
Use the macro containing all the required parameters, instead of just using "apt-get install". Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 05 Jul, 2013 1 commit
-
-
Klaus Aehlig authored
* stable-2.7: Release version 2.7.0 Fix "instance replace" typo in admin.rst Fix typo in the install guide Disable pylint E1101 on hypothetical import Conflicts: NEWS: trivial configure.ac: trivial Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 04 Jul, 2013 4 commits
-
-
Klaus Aehlig authored
In f4d1bb75 that test was removed, but forgotten to remove it from the list of tests to be executed. Fix that. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
As discussed in the last commit, placing a new instance on the cluster can lead to a cluster that can be improved by moving previously added instances. For an empty cluster, however, there are no previous instances. So add this to the test description to make obvious why this test tests for a valid property. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
The test is testing for a property that just isn't true. Iterated allocation greedily place one instance at a time taking the locally most balanced solution. Then it is tested whether the resulting global allocation can be improved. To see that this assumption does not hold, consider placing 3 identical instances on 3 nodes. The most balanced allocation of all 3 instances would be that each node is primary and secondary for one instance. Now let's see what iterative allocation does. Up to symmetry, the placing of the first instance is unique. Any placement of the second instance that keeps the way to the global optimum open would be one node being primary and secondary for one instance each, one node being only secondary for instance, and one node being only primary for one instance. An alternative allocation would be to place the instances on two different nodes as primaries and using the third node as shared secondary. For cpu (2 nodes with 1 cpu, 1 with none), free memory (on two nodes all minus 1 unit, on one node all), and disk (2 nodes with 1 disk, 1 with 2) there is no difference between these allocations. For reserved memory, there's a difference in the values. In the first case, on two nodes, there's one unit reserved and nothing on the third. In the second case, on two nodes, there is nothing reserved, while on the third node, there still is only one unit reserved, as the two instances have different primaries. Nevertheless, the standard deviations of 0,0,1 and 1,1,0 are both sqrt(5/9); so, in everything that contributes to the balancedness metric these allocations are equal. Therefore, it is locally correct to chose the wrong allocation. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Guido Trotter authored
We don't have notice of anything blocking for 2.7, and it's been in release candidate state long enough. Any future problems can be addressed as bugfixes. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 03 Jul, 2013 3 commits
-
-
Guido Trotter authored
gnt-instance `replace` should read `replace-disks` Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
These functions simply served as a work around to express host name matching by regular expressions, instead of using correct equality filter on host names that provides the correct matching already. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
As, since 91c1a265 , the equality used for host names already is based on matching, there is no need to use a special function for this any more. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 02 Jul, 2013 1 commit
-
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 01 Jul, 2013 1 commit
-
-
Michele Tartara authored
Remove erroneous trailing "\" Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 28 Jun, 2013 1 commit
-
-
Michele Tartara authored
Include a section in the Administrator's guide describing how to use the autorepair tool. Fixes Issue 446 Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-