Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / HsConstants.hs @ e817723c

History | View | Annotate | Download (108.4 kB)

# Date Author Comment
cba1fce1 11/05/2013 03:31 pm Klaus Aehlig

Merge branch 'stable-2.10' into master

  • stable-2.10
    Fix documentation
    Replace all constant definitions with re-exports
    Prepare constants for automatic reexport
    Hs2Py constants: 'hvsParameterTypes' and 'hvsParameters'
    Fix indentation that triggers PEP8 error...
4c5cb91e 11/04/2013 01:39 pm Jose A. Lopes

Fix documentation

Fix documentation in constants containing values in seconds.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Michele Tartara <>

4dddf578 11/04/2013 01:39 pm Jose A. Lopes

Hs2Py constants: 'hvsParameterTypes' and 'hvsParameters'

Add constants 'hvsParameters' and 'hvsParameterTypes' to the Haskell
to Python constant generation.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Michele Tartara <>

bb133242 10/31/2013 12:46 pm Klaus Aehlig

Merge branch 'stable-2.10' into master

  • stable-2.10
    Remove FIXME + update man pages wrt iallocator
    Don't check for master netdev when using OVS
    Fix TypeError in backend/ConfigureOVS
    Create Open vSwitch on Master during Cluster init
    SimpleRetry on BlockDev.Remove()...
b3ae67d7 10/30/2013 11:03 am Dimitris Aragiorgis

SimpleRetry on BlockDev.Remove()

Sometimes, upon disk removal, corresponding file descriptors
are kept briefly open by various processes (hypervisor, blkid, etc.).
With this patch, we retry several times before raising the appropriate
error, thus making disk removal more robust against those corner cases....

f198cf91 10/29/2013 03:56 pm Thomas Thrainer

Add possibility to compress to OpInstanceMove

OpInstanceMove now supports the 'compress' option. It allows to enable
compression for intra-cluster instance moves.

Signed-off-by: Thomas Thrainer <>
Reviewed-by: Klaus Aehlig <>

a49e7e0d 10/28/2013 12:05 pm Jose A. Lopes

Hs2Py constants: add 'hvcDefaults'

Add 'hvcDefaults' to the Haskell to Python constant generation.

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

413434a5 10/28/2013 12:04 pm Jose A. Lopes

Fix documentation

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

df2e0fa5 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'diskDtDefaults'

  • add constant 'diskDtDefaults' to the Haskell to Python constant
    generation
  • remove 2 local variables which were used only by 'DISK_DT_DEFAULTS'
    and are, therefore, no longer necessary

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

a2b55ccd 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'value*' and 'niccDefaults'

  • add group of constants 'value*' and constant 'niccDefaults' to the
    Haskell to Python constant generation
  • add 'PythonNone' to represent the 'None' is Haskell to Python
    generated code

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

07e30af5 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'ipolicyDefaults'

Add constant 'ipolicyDefaults' to the Haskell to Python constant
generation.

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

cb23d0ca 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'mond' latest version

Add 'mond' latest version constant to the Haskell to Python constant
generation.

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

44b1b622 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'sshDaemonKeyfiles'

Add constant 'sshDaemonKeyfiles' to the Haskell to Python constant
generation.

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

93e2e44e 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'diskLdDefaults'

Add constant 'diskLdDefaults' to the Haskell to Python constant
generation.

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

0e7126a1 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'ndcDefaults'

Add constant 'ndcDefaults' to the Haskell to Python constant
generation.

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

47ea2344 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'becDefaults'

Add constant 'becDefaults' to the Haskell to Python constant
generation. An instance of 'PyValue' is added to the type 'PyValueEx'
in order to allow polymorphic types, namely, 'Map's.

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

3a715da0 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'drbdValidBarrierOpt'

Add constant 'drbdValidBarrierOpt' to the Haskell to Python constant
generation.

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

fa8d6aa7 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'dtsLvm'

Add constant 'dtsLvm' to the Haskell to Python constant generation.

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

e0007cf1 10/28/2013 12:04 pm Jose A. Lopes

Hs2Py constants: add 'daemonsExtraLogbase'

Add constant 'daemonsExtraLogbase' to the Haskell to Python constant
generation and update Python reference.

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

9569d877 10/24/2013 12:27 pm Dimitris Aragiorgis

Hotplug: objects and constants additions

Add pci slot in NIC/Disk objects. This slot will be used only
by hypervisor code. Currently only KVM will use it and store it
temporarily in runtime files.
Add HOTPLUG_* constants to define device types an hotplug actions....

2b4e194e 10/17/2013 11:38 am Hrvoje Ribicic

Fix 'hvVncTls' key in 'hvsParameterTypes'

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

4e6f1cde 10/16/2013 08:57 pm Hrvoje Ribicic

Add instance parameter fields

This patch adds instance parameter fields to the Haskell instance
queries. The fields retrieve maps of parameters related to e.g.
hypervisors, or operating systems.
Every instance can have parameters different from the defaults,...

e8c86ab1 10/09/2013 07:39 pm Klaus Aehlig

Merge branch 'stable-2.9' into master

  • stable-2.9
    Version bump for 2.9.0 rc2
    Update NEWS for 2.9.0 rc2
    Downgrade 'vif_script'
    Downgrade 'xen_cmd'
    Add test cluster config for version 2.9
    Remove superfluous import of 'errors'
    Start NEWS entry for 2.9.0 rc2...
d250bc5d 10/09/2013 12:02 pm Klaus Aehlig

Make information about GNU ln available to programs

Propagate the information on whether we have the GNU version of ln
to all programs by making it available as a constant.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Helga Velroyen <>

33ee4861 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: hail, opcode, and SSH

Add hail, opcode, and SSH related constants to the Haskell to Python constant generation.

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

b6e2ff42 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: node daemon setup

Add node daemon setup related constants to the Haskell to Python constant generation.

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

81ae485c 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: opcodes

Add opcode related constants to the Haskell to Python constant generation.

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

becfd918 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: improve auto repair

Fix auto repair related constants to use the Haskell type 'AutoRepairResult' instead of simple 'String' values.

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

6dab85ff 10/08/2013 03:57 pm Jose A. Lopes

Fix import order

Fix import order to be alphabetically sorted.

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

b998e7f6 10/08/2013 03:57 pm Jose A. Lopes

Fix 'AutoConf' import

Fix 'AutoConf' import to be qualified.

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

6e6a6f84 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: dynamic devices

Add dynamic devices related constants to the Haskell to Python constant generation.

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

d84ddec2 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: SSCONF

Add SSCONF related constants to the Haskell to Python constant generation.

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

d99012a6 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: 'defaultEnabledHypervisor'

Add 'defaultEnabledHypervisor' to the Haskell to Python constant generation.

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

53a5f21b 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: 'hvcGlobals' and 'ndcGlobals'

Add 'hvcGlobals' and 'ndcGlobals' to the Haskell to Python constant generation.

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

54e8f65d 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: 'ispecsMinmaxDefaults'

Add 'ispecsMinmaxDefaults' to the Haskell to Python constant generation.

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

d22b306d 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: assorted constants

Add some assorted constants to the Haskell to Python constant generation.

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

2f314077 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: 'maxUdpDataSize'

Add 'maxUdpDataSize' constant to the Haskell to Python constant generation.

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

6b0d45b7 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: UID pool

Add UID pool related constants to the Haskell to Python constant generation.

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

b9b5acc3 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: assorted constants

Add assorted constants to the Haskell to Python constant generation.

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

5a7fab74 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: HVST and disk state

Add HVST and disk state related constants to the Haskell to Python
constant generation.

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

8eb80cb3 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: backend and logical disks

Add backend and logical disks related constants to the Haskell to
Python constant generation.

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

ec321549 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constant: DRBD and dynamic disk

Add DRBD and dynamic disk parameter constants to the Haskell to Python
constant generation.

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

d4bc2eec 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: nics

Add nics related constants to the Haskell to Python constant
generation.

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

649f774a 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: assorted, idisk, and inic

Add assorted, idisk, and inic related constants to the Haskell to
Python constant generation.

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

75463b9a 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: node verify

Add node verify constants to the Haskell to Python constant generation.

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

b964f067 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: SSL, job queue, and locks

Add SSL, job queue, and locks related constants to the Haskell to Python constant generation.

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

cf1f4273 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: VNC

Add VNC related constants to the Haskell to Python constant generation.

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

385b2959 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: '/etc/hosts' and job queue

Add '/etc/hosts' and job queue related constants to the Haskell to Python constant generation.

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

8799fb9d 10/08/2013 03:57 pm Jose A. Lopes

Hs2py constants: query resources

Add query resources related constants to the Haskell to Python constant generation.

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

b8576ea1 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: HT related constants

Add HT related constants to the Haskell to Python constant generation.

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

343dcda8 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add import/export config

Add import/export config constants to the Haskell to Python constant generation.

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

b7b8ff87 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: network related

Add network related constants to the Haskell to Python constant generation.

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

52d4f735 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: 'diskTransferConnectTimeout'

Add 'diskTransferConnectTimeout' constant to the Haskell to Python constant generation.

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

d7754dad 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: 'jobIdsKey', 'runparts' and 'rpc'

Add several groups of constants to the Haskell to Python constant generation.

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

cf96e711 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: move 'ipCommandPath'

Move constant 'ipCommandPath' to the appropriate place according to
'lib/constants.py'.

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

e8d4d41e 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: scripts and actions

Add script and action related constants to the Haskell to Python
constant generation.

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

3c2abb61 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: reboot behaviour

Add reboot behaviour constants to the Haskell to Python constant generation.

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

ae8e7986 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: move reboot types

Move constants 'instanceReboot*' to correct place according to
'lib/constants.py'.

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

5c8f186c 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: assorted and HVS

Add asserted and HVS related constants to the Haskell to Python constant generation.

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

4c1275f9 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add network mirrored disk templates

Add network mirrored disk template constants to the Haskell to Python
constant generation.

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

84ad6b78 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add SSH key files

Add SSH key file constants to the Haskell to Python constant
generation.

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

a91d6b30 10/08/2013 03:57 pm Jose A. Lopes

Move VTypes to the appropriate place

Move 'VType' related constants to the appropriate place to match
Python's constants module.

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

14795b58 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add export versions

Add export version constants to the Haskell to Python constant
generation.

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

e0cd6f5d 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add CPU pinning

Add CPU pinning constants to the Haskell to Python constant
generation.

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

0412a686 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add 2 more constants

Add 2 more constants to the Haskell to Python constant generation.

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

3f5fd161 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add several groups of constants

Add several groups of constants, namely, console types, security, I/O
compression, import/export, hooks, and hkr related, to the Haskell to
Python constant generation.

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

9be1ff8c 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: storage related groups

Add several groups of storage related constants to the Haskell to Python constant generation.

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

c5539592 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add DRBD and RBD

Add DRBD and RBD related constants to the Haskell to Python constant generation.

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

6e18cc0d 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add 'RIE' related

Add remote import/export related constants to the Haskell to Python constant generation.

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

c87997d2 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add 'osApiVersions'

Add constant 'osApiVersions' to the Haskell to Python constant
generation. This patch fixes the type of this constant, by changing
from 'List' to 'Set', therefore, 'Ganeti.Query.Server' is updated
accordingly.

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

a5450d2a 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add 'ReplaceDisksMode' related constants

Add constants related to the Haskell type 'ReplaceDisksMode'. The
data type declaration for 'ReplaceDisksMode' is also moved from
'Ganeti.OpParams' to 'Ganeti.Types' because it used to be used only by...

c03224f6 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add RPC timeout constants

Add RPC timeout related constants to the Haskell to Python constant
generation. The Haskell data type 'RpcTimeout' is moved from
'Ganeti.Rpc' to 'Ganeti.Types' so it can be used by
'Ganeti.HsConstants' without causing circularity problems with...

ecf43dcb 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add node parameter related constants

Add node parameter related constants to the Haskell to Python constant
generation. This patch also fixes a type inconsistency between
Haskell and Python, namely, 'ndsParameterTypes' and
'ndsParameterTitles' become 'Map's instead of 'Tuple's, which allows...

8397ffde 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: constants related to 'Ganeti.Htools.Types'

Add constants related to the Haskell types defined in
'Ganeti.Htools.Types' to the Haskell to Python constant generation.

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

59bcd180 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add local disk status

Add constants related to local disk status to the Haskell to Python
constant generation. A new Haskell type 'LocalDiskStatus' is added
similarly to the constants that have been added previously in other
Hs2Py patches....

ad6f2bf3 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add 'fileDriver'

Add constant 'fileDriver' to the Haskell to Python constant
generation. The constant 'FILE_DRIVER' is also moved to the
appropriate place in 'lib/constants.py'.

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

5d4e1402 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add Luxi constants

Add Luxi related constants to the Haskell to Python constant
generation. A new Haskell type is added 'Ganeti.Types.PythonChar' to
wrap the Python character type.

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

74129b52 10/08/2013 03:57 pm Jose A. Lopes

Hs2Py constants: add more constants

Add more constants to the Haskell to Python constant generation.

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

cdac0552 10/08/2013 03:50 pm Jose A. Lopes

Hs2Py constants: add 'Ganeti.Confd' types

Hs2Py constants: add 'Ganeti.Confd' types.

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

dd95d461 10/08/2013 03:50 pm Jose A. Lopes

Hs2Py constants: add confd requests

Add confd request related constants to the Haskell to Python constant
generation.

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

9b20010b 10/04/2013 05:13 pm Klaus Aehlig

Provide the DIRVERSION as a constant

Depending on configure options, the version string used in the name
of the version specific directory differs. Provide this string also
as a constant, as it is needed for the upgrade procedure, in order to
be able to roll back....

55f0626b 10/04/2013 05:13 pm Klaus Aehlig

Provide time constants related to upgrades

During upgrades, gnt-cluster needs to wait for all jobs
in the queue to finish. Provide constants for timeout and
polling interval.

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

9bfcf2e9 10/04/2013 05:10 pm Klaus Aehlig

Expose sharedir in pathutils

This path is needed to construct the link target
for $(sysconfdir)/ganeti/share for a different version.
The latter will happen in the automated upgrade procedure.

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

8c44d5b3 10/04/2013 05:10 pm Klaus Aehlig

Also provide the program version

Conceptionally, the versions of the program, the protocols, and the
configuration are three different things, even though, currently there
is a tight coupling. So export the version as well, as the upgrades
are designed to make decisions based on the version....

9b9e088c 10/02/2013 05:55 pm Raffa Santi

Define 'access' disk-parameter type

Add the "access" parameter to the RBD configuration. Fix test broken
by this change.

Signed-off-by: Santi Raffa <>
Reviewed-by: Thomas Thrainer <>

d067f40b 10/02/2013 03:50 pm Jose A. Lopes

Merge 'EvacNode' and 'NodeEvacMode'

Merge 'EvacMode' and 'NodeEvacMode' which are associated with the
duplicated constants 'IALLOCATOR_NEVAC_*' and 'NODE_EVAC_*'. This
merge moves the type 'EvacMode' to 'Ganeti.Types' in order to avoid a
circular dependency between 'Ganeti.HsConstants' and...

6dc364f9 10/02/2013 03:50 pm Jose A. Lopes

Remove duplicate 'IALLOCATOR_NEVAC_*' constants

Constants 'IALLOCATOR_NEVAC_*' are duplicates of 'NODE_EVAC_*' and are
no longer being used so they can be removed. Fixes issue 583.

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

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