- 23 Jul, 2013 3 commits
-
-
Helga Velroyen authored
This extends the description of 'gnt-cluster init' and 'gnt-cluster modify' with respect to the file storage directory. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
This patch implements consistent usage and behavior of the --file-storage-dir option in 'gnt-cluster init' and 'gnt-cluster modify'. It includes a bunch of unit tests as well. Additionally, it enables the previously written unit tests for 'instance_storage', which were forgotten to be included in the Makefile so far. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Thomas Thrainer authored
ExpandNodeName and ExpandInstanceName now always return a tuple. If the node/instance was not found, (None, None) is returned. This fixes bugs where callers blindly assign the return value of those methods to multiple variables without checking if it was None. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 22 Jul, 2013 1 commit
-
-
Helga Velroyen authored
This prepares the QA for running tests regarding shared file storage. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 19 Jul, 2013 1 commit
-
-
Weiwei Jia authored
Update the document as agreed on the mailing list: the project should be realized in two parts: one is for supporting Xen VMs (similarly to the sharedfile template) and the other one for QEMU/KVM VMs. Signed-off-by:
Weiwei Jia <harryxiyou@gmail.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 18 Jul, 2013 6 commits
-
-
Klaus Aehlig authored
* stable-2.8 Fix permission problem related to Issue 477 Add hs function to easily change file ownership Conflicts: src/Ganeti/Utils.hs (trivial) trivial Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michele Tartara authored
The "primaryNode" and "secondaryNode" fields of "Instance" entities in the cluster configuration where changed to use UUIDs instead of names. The ReqNodeInstances query inside Confd was not upgraded yet, and was thus not working anymore. This commit fixes it. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Knowing the replies actually sent helps tracking down problems much more efficiently. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Commit 91525dee fixed Issue 477 but broke "gnt-cluster info". This commit offers a solution to both problems, by changing the permission of the socket instead of changing the permission the confd process is run with. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
The Haskell library functions only allow to change file ownership using uid/gid. A function for doing that with explicit names is added by this commit. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 17 Jul, 2013 15 commits
-
-
Klaus Aehlig authored
* stable-2.8 Rename queryd to luxid Document the rapi client not to have a QueryNetworks method Enable unit tests again Document ganeti-queryd Add ganeti-queryd to QA env test Add queryd daemon (split from confd) Extract ConfigReader from Confd/Server.hs Add timestamps to haskell network query fields Conflicts: src/Ganeti/Confd/Server.hs (trivial) Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
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>
-
Helga Velroyen authored
This fixes a deprecation warning regarding the retrieval of the error message from an exception. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
Some code was moved from bdev to file storage in previous patches, but the related unit tests were accidentally left in bdev. Moving and adjusting them now. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This fixes the unit test for the iallocator. The fix is necessary, because a renamed functions was not properly renamed in the tests as well. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch makes an FileStorageError to be risen with a proper error message instead of just an assertion in case the given disk template is not a valid disk template at all. Signed-off-by:
Helga Velroyen <helgav@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>
-
Thomas Thrainer authored
This unit test checks for proper parsing of the output from `drbdsetup show` when re-attaching the local disk. In this case, disk parameters are not (yet) set, so the corresponding dict is empty. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
This reverts commit b2525349. Issue 516 was fixed, so now the QA test can be re-enabled again. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
DRBD 8.4 contains two `disk` entries under the `volume` section. In some circumstances, the parsing code could wrongly use the empty one which causes DRBD8Dev._SlowAssemble() to fail. This fixes issue 516. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 16 Jul, 2013 3 commits
-
-
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>
-
Dimitris Aragiorgis authored
The function _NetworkConflictCheck expects a list of instances as last argument, not a list of pairs of instance names and instances. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
* stable-2.8 Change method dispatch in ClientOps to enforce luxi.REQ_ALL Allow modify_etc_hosts to be changed Add --modify-etc-hosts option for CLI tools Add luxiReqQueryNetworks to LuxiOp Log received message at debug level Set the correct group for confd Log RPC errors from inside executeRpcCall Factor out the logRpcErrors function Expose bulk parameter for GetJobs in RAPI client Add git send-email to the chroot Add tests for CanRead Only generate node lists with nodes having different names Cluster verify checks server.pem permissions Add function for checking file access permissions Prevent silent failure in case of connection problems Fix apt-get invocation in chroot_builder * merged from 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: devel/build_chroot lib/client/gnt_cluster.py Resolved by taking both additions. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 15 Jul, 2013 11 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>
-
Helga Velroyen authored
This patch updates the 'gnt-cluster' man page and the NEWS file regarding the changes related to the file storage en/disabling and the configuration of the file storage directory. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch adds two verification steps to 'gnt-cluster verify': - The configured file storage directory is checked against the allowed file storage directories file. - We check whether the configured file storage directory is existing and writable on each node. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch prepares the verification code for adding a new verification step for the file storage paths: - It moves a couple of file storage helper functions from bdev to filestorage (since they make more sense there and bdev is too big anyway). - They rename constants and functions related to the verification step where the allowed file paths are checked agains forbidden paths to a more expressive name, because otherwise they would be confused to be related to the verification of the file storage paths against the allowed file storage paths. - Use the cluster objects helper functions to check if file storage is inabled instead of using the utils function directly, because it simplifies the code. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch removes the option to configure the file storage path at configure time, because it is now replaced by a runtime option for gnt-cluster init. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This improves the QA code wrt to file storage in the following ways: - It fixes a FIXME to make the file storage directory customizable in the QA config. Fallback is the default value. - It makes QA derive the enabled storage types from the enabled disk templates and runs the 'gnt-node storage tests' only on the enabled ones. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch make the storage utils read the file storage directory from the cluster config instead of the constants. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch removes the ENABLE_FILE_STORAGE completely from the remaining files, such as Makefile, configure, constants, pathutils and objects. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch adjusts the cluster-merge tool so that it does no longer check the constant 'ENABLE_FILE_STORAGE' but the clusters' configurations. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch fixes the node storage QA, which checked whether file storage is enabled by looking at the constant 'ENABLE_FILE_STORAGE'. QA should rather retrieve this information from the QA config. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-