1. 23 Jun, 2010 4 commits
  2. 22 Jun, 2010 6 commits
  3. 21 Jun, 2010 1 commit
  4. 18 Jun, 2010 5 commits
  5. 17 Jun, 2010 17 commits
  6. 15 Jun, 2010 2 commits
  7. 14 Jun, 2010 5 commits
    • Manuel Franceschini's avatar
      Improve gnt-debug man page · 60bb8b5d
      Manuel Franceschini authored
      
      Signed-off-by: default avatarManuel Franceschini <livewire@google.com>
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      60bb8b5d
    • Iustin Pop's avatar
      Remove a TODO · 592e04bd
      Iustin Pop authored
      
      
      Since OS objects are not stored in the configuration, we cannot put
      os_hvp there, therefore the TODO is obsolete…
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      592e04bd
    • Iustin Pop's avatar
      Rework LUSetInstanceParams._GetUpdatedParams · 422d4619
      Iustin Pop authored
      
      
      Currently, this function does three things:
      - special handling of constants.VALUE_DEFAULT
      - type enforcing of the resulting dict
      - filling the dictionary with defaults
      
      However, except for the first one, the second two do not belong in this
      function:
      - in the future, not all parameter dictionaries will be able to be
        enforced
      - filling the dictionary with defaults cannot be done via a defaults
        dict in all cases, and should be done by the specialized functions
        (ideally we'd pass a partial function instance here, but we don't have
        that yet…)
      
      As such, we remove the last items, and move them to the callers; this is
      overall the same complexity, as we were calling this function in just
      three places and constructing the many arguments was also complicated.
      
      Furthermore, we move the function out of LUSetInstanceParams, as in the
      future it will be used by LUSetClusterParams too.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      422d4619
    • Iustin Pop's avatar
      Split the core-OS and instance-specific env · efaa9b06
      Iustin Pop authored
      
      
      Since we'll need to be able to generate the OS-specific environment
      separately from the instance one, we move it to a separate function. We
      also add a new OS_NAME env. var which is identical to the INSTANCE_OS
      one (which won't exist for OS-only environments).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      efaa9b06
    • Iustin Pop's avatar
      Add cluster.SimpleFill*() functions · 73e0328b
      Iustin Pop authored
      
      
      Currently, the existing cluster.Fill* functions take as argument an
      instance. This means that in any case where we don't have an actual
      instance object, we have to resort to calling the low-level
      objects.FillDict function.
      
      This is bad for two reasons:
      - we have to know of, and we hardcode, the cluster object internals
        (e.g. that the nicparams are stored in a dict indexed by group)
      - which can result in subtle bugs, if the underlying storage mechanisms
        change
      
      This patch adds a lower-level implementation SimpleFillHV for FillHV and
      SimpleFillBE for FillBE, and adds a completely new SimpleFillNIC (all
      use cases until now hardcoded cluster.nicparams[constant.PP_DEFAULT]
      directly); it then uses these new functions in cmdlib.py.
      
      A side effect is that _CheckNicsBridgesExist loses the 'profile'
      parameter, which was unused. If it's needed, we should add it later via
      a proper profile parameter to SimpleFillNIC.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      73e0328b