Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / HsConstants.hs @ 1c9e817d

History | View | Annotate | Download (34.3 kB)

# Date Author Comment
1c9e817d 09/25/2013 01:49 pm Jose A. Lopes

Hs2Py constants: add remaining '_autoconf.*' constants

Add remaining constants which in Python are imported from the
generated 'lib/_autoconf.py'. This will allow to completely remove
this module.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Thomas Thrainer <>

3b170ad4 09/25/2013 01:49 pm Jose A. Lopes

Hs2Py constants: add all 'AutoConf' and related constants

Add all constants in 'AutoConf' to the Hs2Py constant generation and
'socatEscapeCode' because it is part of the group containing
'socatPath', 'socatUseCompress', and 'socatUseEscape'.

Signed-off-by: Jose A. Lopes <>...

61e32567 09/24/2013 02:36 pm Jose A. Lopes

Hs2Py constants: add 'confd' related constants

Add 'confd' related constants to the Hs2Py constant generation.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

2924f169 09/24/2013 02:36 pm Jose A. Lopes

Hs2Py constants: add some constants

Add 'opcodeReason', 'diskstatsFile', 'statFile', and
'mondTimeInterval', to the Hs2Py constant generation.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

c890f66a 09/24/2013 02:36 pm Jose A. Lopes

Organize Haskell constants

Reorder Haskell constants to match the order in the Python constants
module 'lib/constants.py' to make it easier to debug/trace the Hs2Py
constant migration process.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

37248170 09/20/2013 04:02 pm Jose A. Lopes

Hs2Py constants: add storage fields

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 <>
Reviewed-by: Klaus Aehlig <>

5867e439 09/19/2013 06:15 pm Jose A. Lopes

Hs2Py constants: add constants from types

Add the constants to the Hs2Py constant generation from the Haskell
data types moved in the previous patch.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

3311e336 09/19/2013 04:42 pm Jose A. Lopes

Fix conflicting path values from 'configure'

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...

a25fdde9 09/19/2013 04:33 pm Jose A. Lopes

Fix constants for OOB commands

Fix values of the constants for OOB commands, namely, 'oobPowerOn' and
'oobPowerCycle'.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

85c48fbb 09/19/2013 11:52 am Jose A. Lopes

Hs2Py constants: add constants from 'Ganeti.Types'

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...

58c09b0e 09/19/2013 11:52 am Jose A. Lopes

Fix alloc related constants value

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 <>
Reviewed-by: Klaus Aehlig <>

06fd57e5 09/19/2013 11:52 am Jose A. Lopes

Fetch 'randomUuidFile' from 'ConstantUtils'

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...

7236533e 09/18/2013 02:33 pm Jose A. Lopes

Hs2Py constants: add xen related constants

Add xen related constants, such as, 'xenBootloader' and 'xenCmdXm' to
the Haskell to Python constant generation.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

df726590 09/18/2013 02:33 pm Jose A. Lopes

Hs2Py constants: add 'devConsole' and syslog related

Add 'devConsole' and syslog related constants to the Haskell to Python
constant generation.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

43a9e860 09/18/2013 11:55 am Jose A. Lopes

Haskell to Python constants: add exit code constants

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...

856eb53c 09/18/2013 11:55 am Jose A. Lopes

Haskell to Python constants: add 'daemonsLogbase'

Move constant 'DAEMONS_LOGBASE' from Python to Haskell to be
automatically generated.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

1c31b263 09/18/2013 11:55 am Jose A. Lopes

Flip dependency between Haskell types and constants

Before this patch, Haskell types, such as, 'GanetiDaemon' and
'GanetiGroup', and related functions were taking their values from
Haskell constants. However, given that the role of Haskell to Python
constants is to leverage Haskell and its typesystem, it makes sense to...

6dc0cb59 09/12/2013 02:01 pm Jose A. Lopes

Add 'daemonsPorts' and related constants

  • add 'daemonsPorts' and related constants used in the construction of
    the 'Map' that maps each daemon to its corresponding protocol and
    port. This breaks constant 'daemonsPortsGanetiNoded' which is
    automatically generated from the Python dictionary 'DAEMONS_PORTS'...
f361a6ee 09/12/2013 01:51 pm Jose A. Lopes

Haskell to Python constants: more constants

  • move several groups of constants, from Python to Haskell, which are
    currently being used in Haskell, including SSH and daemon related
    constants, policy allocation, blockdev driver manual (this is a
    single constant), auto repair related constants, and data collector...
26eca119 09/11/2013 11:01 am Jose A. Lopes

Add user separation constants

Add user separation constants, such as, 'daemonsGroup', 'rapiGroup',
and 'rapiUser', to the Haskell to Python constant generation
infrastructure.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

9413ef24 09/10/2013 11:58 am Jose A. Lopes

Haskell to Python constants: add 'adminstAll'

Add constant 'adminstAll' to Haskell to Python constant generation.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

c93041a5 09/10/2013 11:58 am Jose A. Lopes

Fix module documentation

Fix 'HsConstants' module documentation to warn about proper module
usage.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

1b2adaa6 08/29/2013 01:17 pm Jose A. Lopes

Setup constant generation infrastructure

Setup a transitional Haskell to Python constant generation
infrastructure. This infrastructure is transitional and Python
constants will not be migrated to Haskell all at once. Instead, some
constants will be incrementally pulled from Python and moved to...