1. 18 Sep, 2009 15 commits
  2. 04 Sep, 2009 1 commit
  3. 03 Sep, 2009 1 commit
  4. 28 Aug, 2009 1 commit
  5. 24 Aug, 2009 6 commits
  6. 18 Aug, 2009 1 commit
  7. 17 Aug, 2009 1 commit
  8. 14 Aug, 2009 1 commit
  9. 13 Aug, 2009 1 commit
  10. 06 Aug, 2009 2 commits
  11. 04 Aug, 2009 1 commit
  12. 19 Jul, 2009 4 commits
  13. 29 Jun, 2009 1 commit
    • Guido Trotter's avatar
      check_ident_key_val, handle no_ and - prefixes · 8b46606c
      Guido Trotter authored
      If an ident member of an IdentKeyVal relationship starts with no_ or -,
      handle it the same way we do for a key. Some unittests are added to
      check that check_ident_key_val behaves as expected.
      This patch also changes ForceDictType to, for now, fail on such an
      entry, and the same to happen when creating an instance or modifying its
      nics or disks.
      This behavior will be used later on to allow deletion of os entries in
      os parameters.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
  14. 19 Jun, 2009 1 commit
  15. 18 Jun, 2009 1 commit
  16. 17 Jun, 2009 2 commits
    • Iustin Pop's avatar
      Fix handling of 'vcpus' in instance list · c1ce76bb
      Iustin Pop authored
      Currently running “gnt-instance list -o+vcpus” fails with a cryptic message:
        Unhandled Ganeti error: vcpus
      This is due to multiple issues:
        - in some corner cases cmdlib.py raises an errors.ParameterError but
          this is not handled by cli.py
        - LUQueryInstances declares ‘vcpu’ as a supported field, but doesn't handle
          it, so instead of failing with unknown parameter, e.g.:
            Failure: prerequisites not met for this operation:
            Unknown output fields selected: vcpuscd
          it raises the ParameteError message
      This patch:
        - adds handling of 'vcpus' to LUQueryInstances
        - adds handling of the ParameterError exception to cli.py
        - changes the 'else: raise errors.ParameterError' in the field handling of
          LUQueryInstance to an assert, since it's a programmer error if we reached
          this step
      With this, a future unhandled parameter will show:
        gnt-instance list -o+vcpus
        Unhandled protocol error while talking to the master daemon:
        Caught exception: Declared but unhandled parameter 'vcpus'
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    • Guido Trotter's avatar
      Fix QueryInstanceData for nic parameters · 0b13832c
      Guido Trotter authored
      This CL updates QueryInstanceData to return NICs in the new format (mac,
      ip, mode, link) and fixes gnt-instance info to properly display them.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>