- 12 May, 2015 4 commits
-
-
Petr Pudlak authored
Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Petr Pudlak authored
.. with the latest bugfixes and known issues Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Petr Pudlak authored
Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
After cherry-picking the changes needed for GHC7.8, the former isn't used any more. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 08 May, 2015 2 commits
-
-
Hrvoje Ribicic authored
to ensure we are not reporting stray volumes on other VGs as orphans. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
Prior to patch eeda5882, Ganeti checked all the LVs on nodes under its control, and dutifuly declared any stray volumes as orphans in warnings emitted during cluster-verify. After the patch, the nodes returned information related only to the LV set as *the* Ganeti VG, bypassing this problem. Unfortunately, this led Ganeti to report the disks of instances created on a different VG as non-existent. This patch fixes things by reverting patch eeda5882 and making Ganeti warn about orphan volumes only if they belong to the Ganeti-administered VG. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 07 May, 2015 2 commits
-
-
Hrvoje Ribicic authored
When opening domain sockets for communication, the Haskell daemons did not set any permissions for the sockets, defaulting to 0700. This was fine when all of them ran as root, but was bound to cause trouble in a split-user setup. The first issue is RAPI access after master-failover, where RAPI could not send make any inquiries until the watcher restored the desired permissions of the socket. This patch modifies Luxid to use a g+rw socket, and leaves other servers to their default of 0600. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Lisa Velden authored
Signed-off-by:
Lisa Velden <velden@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 06 May, 2015 5 commits
-
-
Niklas Hambuechen authored
It turns out that GHC 7.8's -dynamic-too is forbidden not only for profiling builds object files, but also for those using HPC coverage. This commit accordingly renames HFLAGS_NOPROF to HFLAGS_DYNAMIC (since it now is not conditional on profiling any more), and makes sure that it is not used for profiling or HPC. This way we achieve that, for profiling+coverage builds - .dyn_o files are available for use in TH in the following 3 cases - .o files are for the normal binaries - .hpc_o files are for coverage-enabled test binaries - .prof_o files are for profiling binaries We make .hpc_o files depend on the .o files because the creation of the .o files will also create the .so files needed for TH. This was already in place for .prof_o files. This requires that HFLAGS now also contains `-itest/hs` since the rule for .o files is now also responsible for building .o/.so files in test/hs. Signed-off-by:
Niklas Hambuechen <niklash@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com> Cherry-picked-from: 1ad14f38Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Niklas Hambuechen authored
This fixes ./configure --enable-haskell-tests && make hs-tests builds on GHC 7.8. It changes `-osuf .ext` to `-osuf ext`; the old form was allowed in GHC <= 7.6, but GHC 7.8 seems to have problems with it: https://ghc.haskell.org/trac/ghc/ticket/9760 The form without dot works in all GHC versions, and we don't have dots in other -osuf arguments in the same file either, so this was probably an accident. Signed-off-by:
Niklas Hambuechen <niklash@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com> Cherry-picked-from: 9664aff9Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Niklas Hambuechen authored
GHC 7.8 switched to dynamic linking being used for ghci, which requires that .so file are being built for modules that are loaded for TH. For this reason, GHC >= 7.8 has a -dynamic-too flag, which we now use. However, -dynamic-too must not be enabled for profiling builds, which is why this commit introduces a HFLAGS_NOPROF variable (currently only containing -dynamic-too) that must be passed to all GHC invocations that are not creating profiling output. Signed-off-by:
Niklas Hambuechen <niklash@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com> Cherry-picked-from: 083776b9Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Niklas Hambuechen authored
This works around https://ghc.haskell.org/trac/ghc/ticket/9749: GHC 7.8 (undocumentedly) changed the way in which ghc -M generated object file dependencies, lacking the underscore that older versions added automatically to the file names. It also requires a -dep-suffix for the plain object file (.o). This commit detects GHC 7.6 and older (7.7 is development only, has no release and is treated equal to 7.8), and adjusts the -M invocation appropriately for newer GHC versions. Signed-off-by:
Niklas Hambuechen <niklash@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com> Cherry-picked-from: b78a2c30Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
Whenever we set a configuration, we also upgrade it. In particular, there is no need for an unconditional upgrade; so avoid upgrading the configuration over and over again if it did not change. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 05 May, 2015 3 commits
-
-
Klaus Aehlig authored
We only acquired a config lock if it was not shared in order to have lock-free reads. Hence, only release the config lock if we actually acquired it. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Niklas Hambuechen <niklash@google.com> Cherry-picked-from: 35056743Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Hrvoje Ribicic authored
Add a mention into the install file, and provide a link to the official DRBD documentation. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
...as we still support python versions older than the introduction of assertIn. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 04 May, 2015 4 commits
-
-
Lisa Velden authored
Make sure that there is an environment variable for each parameter with the correct value. Signed-off-by:
Lisa Velden <velden@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Lisa Velden authored
and unobscure them Signed-off-by:
Lisa Velden <velden@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
...even if the initial hand shake succeeded. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
...so that we do not accumulate open file descriptors. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 28 Apr, 2015 2 commits
-
-
Petr Pudlak authored
Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Petr Pudlak authored
.. with the latest bugfixes and known issues. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 23 Apr, 2015 2 commits
-
-
Klaus Aehlig authored
Old versions of Ganeti (in particular, 2.5 and earlier) did not have UUIDs assigned to objects. If we happen to find such an old configuration, we assign UUIDs now, during the upgrade. However, we must do this recursively, as disks might have children. Note that before Ganeti 2.12 this didn't matter, as the UUIDs of the children where never used or enforced. With the strict type checking introduced by the switch to haskell, we have to care about those little details. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
In 2.11, children disks have UUIDs, too. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 22 Apr, 2015 3 commits
-
-
Petr Pudlak authored
This was omitted after the refactoring of SSConf to Haskell, now being added. Fixes #1073. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
.. and a function for converting hypervisor types to the keys. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
.. instead of String. This imposes a type-level restriction that the keys of the map are just hypervisor names. Note about 'Arbitrary GroupDiskParams': Since GroupDiskParams and ClusterHvParams were both synonyms for 'Container (Container JSValue)', the Arbitrary instance worked for both. After fixing the type of ClousterHvParams, its instance become different from GroupDiskParams, hence the latter needs the addition. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 20 Apr, 2015 4 commits
-
-
Klaus Aehlig authored
...as it was accidentally readded in the merge. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
* stable-2.11 Update configure file to version 2.11.7 Update NEWS file for 2.11.7 release Add logging to RenewCrypto Fix format string for gnt-network info Replace textwrapper.wrap by a custom version for networks Add SSL improvements to NEWS file * stable-2.10 Update tag limitations Fix typos in doc/design-storagetypes.rst Make getFQDN prefer cluster protocol family Add version of getFQDN accepting preferences Make getFQDN honor vcluster Conflicts: NEWS: take all release entries configure.ac: ignore revision bump lib/cmdlib/cluster.py: manually apply 2.11 changes to 2.12 src/Ganeti/Daemon.hs: trivial Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
* stable-2.10 Update tag limitations Fix typos in doc/design-storagetypes.rst Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Lisa Velden authored
and use one-element tuplesfor string formatting Signed-off-by:
Lisa Velden <velden@google.com> Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 17 Apr, 2015 2 commits
-
-
Petr Pudlak authored
After refactoring the code for network addresses to Haskell, a regression appeared that added 30 to all IP addresses in the generated list. Since the code for generating the list used just 'show' and look for 0s and 1s in the string (and treating anything else as 0), it turned out that after adding a separate type for address pools, the strings become "AddressPool {apReservations = ...}" and the initial part of the string was exactly the mysterious 30 characters. This fix replaces this by switching to correct types and iterating over the bits in BitArray. Fixes #1068. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
We always supported underscores in tags since \w in pythons interpretation of regular expressions does include the underscore. While this might have happened by accident, there is no reason to change the implementation. The motivation for the restriction was to avoid accidents with wrong (manual) shell escaping; the underscore, however, has no special meaning to the shell. So just make the documentation say what we implemented. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 16 Apr, 2015 2 commits
-
-
Helga Velroyen authored
Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 13 Apr, 2015 2 commits
-
-
Helga Velroyen authored
As the LURenewCrypto is a pain to debug, this patch adds a lot more logging of events to the method. Note: - As renew-crypto is a relatively rarely used operation in a normal production cluster, this won't clutter up real user's log files. - Most of the messages are in debug mode, so they would anyway just show up in log files of clusters run in debug mode (as for example our QA clusters. - A few log messages are in error mode, which is intentional as they log more details about the errors than is given in the feedback functions. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Gangbiao Liu authored
Signed-off-by:
Gangbiao Liu <lgb.nwpu@gmail.com> Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 10 Apr, 2015 3 commits
-
-
Klaus Aehlig authored
* stable-2.10 Make getFQDN prefer cluster protocol family Add version of getFQDN accepting preferences Make getFQDN honor vcluster Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
In getFQDN, if the primary IP family of the cluster is known, provide it as a hint. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
Still the best way to get the "canonical name" of a host is to look up its host name and reverse look up the IP address obtained. Obviously, that the result depends on the protocol family used. So accept hints on which family to prefer. Note that getFQDN is exported on higher branches, so we keep its type stable to avoid semantic merge conflicts. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-