- 20 Sep, 2013 6 commits
-
-
Jose A. Lopes authored
Update references to storage field Python constants to fetch their values from 'lib/_constants.py'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add storage fields constants to the Haskell to Python constant generation. These constants fetch their values from the Haskell data type 'StorageField'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Move 'StorageField' to 'Ganeti.Types' in order to break the circularity of 'Ganeti.Rpc' and be able to generate constants from this Haskell data type. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Remove trailing parenthesis in 'TOOLSDIR' 'configure' variable when passed to 'm4' to generate 'src/AutoConf.hs'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
If the target cluster has a default iallocator, no allocation params are needed. The parameter checks take this into account and do not show errors anymore. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
By using the --dest-disk-template option, the move-instance utility can change the disk template of the moved instance on-the-fly. This is done by simply altering the disk template of the instance created on the receiving end. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 19 Sep, 2013 26 commits
-
-
Jose A. Lopes authored
Update references to the Python constants generated in the previous patch. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add the constants to the Hs2Py constant generation from the Haskell data types moved in the previous patch. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Move several Haskell data types from 'Ganeti.Objects' to 'Ganeti.Types' in order to be able to generate constants while avoiding module circularity. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Because the Hs2Py constant generation infrastructure is transitional, there are two generated 'autoconf' modules, namely, 'src/AutoConf.hs' and 'lib/_autoconf.py'. However, conflicting values were being generated for Haskell and Python concerning the variables 'OS_SEARCH_PATH', 'ES_SEARCH_PATH', and 'IALLOCATOR_SEARCH_PATH'. This patch fixes this problem by placing these variables only on the Haskell side and generate Python constants holding the correct value. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Fix values of the constants for OOB commands, namely, 'oobPowerOn' and 'oobPowerCycle'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
Before the layout change, the corresponding scripts used to be part of PYTHON_BOOTSTRAP, hence were already considered as generated. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
* stable-2.9 Fix incorrect conflict resolution in lib/cmdlib/instance.py * stable-2.8 Version bump for 2.8 rc3 Add a default to file-driver when unspecified over RAPI Remove typo from RAPI documentation Describe the files in doc/users in NEWS Update the upgrade procedure * stable-2.7 Fix incorrect manpage reference to htools Conflicts (trivial): lib/cmdlib/instance.py Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
Some paths set that are set at configure time are needed at run time. These are exported by the Makefile. Change this to export the "canonical", unversioned, ones. This also has the advantage, that tools do not have to know which programs are python scripts (where, after following all the symbolic links, you end up under $(prefix)/share/ due to the private-module layout) and which are binaries (where you end up under $(prefix)/lib/). Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
As most of the symlinks in our setup are, in fact, independent of the Ganeti version, they can be installed unconditionally. So the --enable-symlinks configure option now only controls a small number of symlinks that decide which version of Ganeti is used. Update the documentation accordingly. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
With the latest change of our update design, there are only two symbolic links left, that are specific to a particular version. Those are only installed, if requested. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
According to our new upgrade design, a couple of links are version-independent, and should be installed always. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
From 2.10 onwards, all files are installed into versioned directories. As everything stays compatible between revisions, it is not technically necessary, to have revisions included in the directories. Nevertheless, there are situations where this is desirable. So make it available at configure time, disabled by default. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
The file layout described in the upgrades design document has changed. Adapt the base directories accordingly. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Jose A. Lopes authored
Update Python references to all constants added in the previous patch, which are the constants associated with the Haskell types declared in 'Ganeti.Types'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add to Hs2Py constant generation all constants that are defined by the Haskell defined declared in 'Ganeti.Types'. This patch also fixes a type inconsistency between Haskell and Python, namely, the constant 'cvAllEcodesStrings' which in Python was 'frozenset' and the type generated in Haskell was 'List'. With this patch, the Haskell type becomes 'FrozenSet', the counterpart type to Python's 'frozenset'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Fix alloc related constants to fetch their value from the respective Haskell types, which are defined in 'Ganeti.Types'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add 'Ganeti.Types.OobStatus' which is the Haskell counterpart to the 'OOB_STATUS_*' Python constants. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add 'PyValue' instance for triple which is necessary for the 'CvErrorCode' related constants. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
In 'Ganeti.Utils', update the reference to 'randomUuidFile' to fetch the value from 'Ganeti.ConstantUtils' instead of the Python to Haskell generated constant. This allows breaking the dependency of 'Ganeti.Utils' on the constants module, which in turn will allow constants to take their values from Haskell types without creating a circular dependency. Update also the Python constant reference. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Fix indentation to match Haskell coding conventions. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Data type 'Ganeti.Types.CvErrorCode' is missing several constructors, namely, 'CvEINSTANCEUNSUITABLENODE', 'CvEGROUPDIFFERENTPVSIZE', 'CvENODEDRBDVERSION', and 'CvEINSTANCEMISSINGCFGPARAMETER'. This fixes issue 580. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add missing constructor 'TagKindNetwork' to 'Ganeti.Types.TagKind' which is the counterpart of the Python constant 'TAG_NETWORK'. This fixes issue 578. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
In "Ganeti.Types", rename constructor "ExportModeRemove" of "ExportMode" to "ExportModeRemote". This fixes issue 577. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Fix, in 'Ganeti.Types', data type 'NICMode', which is missing a constructor which is the counterpart of the Python constant 'NIC_IP_POOL'. This fixes issue 576. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Haskell types should be the source of information related to constants. Therefore, instead of building the Haskell types from the constants, the constants should be taken from the Haskell types. This patch updates all the types defined in 'Ganeti.Types' to follow this approach. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add missing exports in 'Ganeti.Types' which are necessary for 'Ganeti.HsConstants'. These exports concern the '*ToRaw' functions which convert a Haskell type into JSON. These functions are needed by the constants which we want to generate from Haskell to Python based on Haskell types. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 18 Sep, 2013 8 commits
-
-
Jose A. Lopes authored
Add xen related constants, such as, 'xenBootloader' and 'xenCmdXm' to the Haskell to Python constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add 'devConsole' and syslog related constants to the Haskell to Python constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add 'declareLADT' in Template Haskell module to declare Haskell datatypes using 'String's directly as values for the JSON serialization, as opposed to 'Name's which is what the current 'declareADT' allows. To achieve this, 'genFromRaw' must be generalized, similarly to 'genToRaw'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Generating ASCII characters via a supported but not official escape sequence leads to a "Anomalous backslash in string" error in newer pylint versions. This patch fixes the issue. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Update Python references to exit code constants to take their values from the generated 'lib/_constants.py'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add exit code constants to Haskell to Python constant generation infrastructure. The module 'Ganeti.ConstantUtils' must be imported qualified in order to avoid a clash between 'Ganeti.ConstantUtils.exitFailure' and 'Ganeti.HsConstants.exitFailure'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Update Python reference of 'DAEMONS_LOGBASE' to fetch its value from the generated 'lib/_constants.py' module. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Move constant 'DAEMONS_LOGBASE' from Python to Haskell to be automatically generated. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-