1. 19 Sep, 2013 4 commits
  2. 18 Sep, 2013 7 commits
  3. 16 Sep, 2013 1 commit
    • Jose A. Lopes's avatar
      Fix monitoring daemon extra log filepaths · 34be621a
      Jose A. Lopes authored
      
      
      Haskell constants 'daemonsExtraLogfilesGanetiMondAccess' and
      'daemonsExtraLogfilesGanetiMondError' cannot be constants because
      their Python counterparts are calculated through
      'pathutils.GetLogFilename', which indirectly depends on the
      environment variable 'GANETI_ROOTDIR', as part of the virtual cluster
      configuration.  Instead, these paths must be computed at runtime, as
      opposed to being computed at compile time through the Python to
      Haskell constant generation, and must also depend on the same
      environment variable.  Fixes issue 575.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      34be621a
  4. 13 Sep, 2013 1 commit
  5. 12 Sep, 2013 8 commits
  6. 11 Sep, 2013 1 commit
  7. 10 Sep, 2013 6 commits
  8. 09 Sep, 2013 1 commit
  9. 29 Aug, 2013 6 commits
    • Jose A. Lopes's avatar
      Haskell to Python opcodes: fix Unit · ce1b0c05
      Jose A. Lopes authored
      
      
      Fix how Haskell to Python opcode generation handles unit. It seems
      that, in 'template-haskell-2.7.0', unit is represented by Template
      Haskell as a constructor of the form '(ConT name)', where 'name' is
      the constructor name for 'Unit'.  However, in 'template-haskell-2.8.0'
      unit is represented as a tuple with no elements (i.e., 'TupleT 0').
      This patch fixes the opcode generation to handle both cases, not just
      the first.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      ce1b0c05
    • Jose A. Lopes's avatar
      Import original constants instead of generated · 73b63a40
      Jose A. Lopes authored
      
      
      Haskell to Python constant generation introduced duplicated constants
      in Haskell.  This patch eliminates the duplication and fixes Haskell
      to import the correct constants, instead of the generated ones.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      73b63a40
    • Jose A. Lopes's avatar
      Setup constant generation infrastructure · 1b2adaa6
      Jose A. Lopes authored
      
      
      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
      Haskell.  This is a list of the relevant modules in this
      infrastructure:
      
      * Ganeti.HsConstants: contains the Haskell constants that are used
        both in Haskell (once re-exported through Ganeti.Constants) and
        generated in Python
      
      * Ganety.Hs2Py.ListConstants: contains the list of Haskell constants
        to be generated in Python; these constants are defined in the
        previous module and the list is automatically generated by the
        Makefile
      
      * hs2py-constants: Haskell program that outputs the actual constant
        definitions in Python; this task cannot be performed by 'hs2py' just
        yet because this programs depends on the 'Constants' module. But
        once all the constants have migrated to Haskell, then
        'hs2py-constants' and 'hs2py' can be merged.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      1b2adaa6
    • Jose A. Lopes's avatar
      Rename 'Constants.hs' to 'PyConstants.hs' · fec1fac1
      Jose A. Lopes authored
      
      
      Rename the generated 'Constants.hs' module, which contains the Haskell
      constants generated from Python, to 'PyConstants.hs' in order to
      eliminate duplicated constants in Haskell, a problem introduced by the
      Haskell to Python constant generation, and to circumvent a problem
      with import/export of Haskell modules.  Add a new module named
      'Constants.hs' which imports 'PyConstants.hs' and exports its names.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      fec1fac1
    • Jose A. Lopes's avatar
      Add Template Haskell code for constant generation · d34c79b6
      Jose A. Lopes authored
      
      
      Add Template Haskell functions that generate a list in Haskell
      containing all the constants to be generated in Python.  This list is
      an association list mapping the constant name to its Python value,
      which is stored as a string.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      d34c79b6
    • Jose A. Lopes's avatar
      Move some 'PyValue' instances to a separate file · c4d68e39
      Jose A. Lopes authored
      
      
      Move some 'PyValue' instances to a separate file so they can be
      available to other modules which need these instances but do not want
      to depend on the constants module, which led to compilation
      constraints.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      c4d68e39
  10. 28 Aug, 2013 1 commit
  11. 23 Aug, 2013 1 commit
  12. 21 Aug, 2013 3 commits