1. 07 Jan, 2011 1 commit
  2. 06 Jan, 2011 1 commit
  3. 01 Nov, 2010 1 commit
  4. 27 Oct, 2010 1 commit
  5. 21 Oct, 2010 1 commit
  6. 20 Oct, 2010 1 commit
  7. 30 Sep, 2010 1 commit
    • Iustin Pop's avatar
      Change behaviour of OpDiagnoseOS w.r.t. 'valid' · d22dfef7
      Iustin Pop authored
      
      
      This patch changes the behaviour of OpDiagnoseOS with regards to the
      'valid' field to be similar to the one for the hidden/blacklisted
      fields: unless this field is requested, invalid OSes are filtered out.
      
      The rationale is that, except for the gnt-os info/diagnose, all other
      users of this opcode are requesting the valid field just to filter out
      invalid OSes, and not for any other use. Thus, changing this behaviour
      makes these callers simpler.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      d22dfef7
  8. 21 Sep, 2010 1 commit
  9. 20 Sep, 2010 1 commit
  10. 23 Aug, 2010 1 commit
  11. 19 Aug, 2010 2 commits
  12. 18 Aug, 2010 1 commit
    • Manuel Franceschini's avatar
      Introduce new IPAddress classes · 8b312c1d
      Manuel Franceschini authored
      
      
      This patch unifies the netutils functions dealing with IP addresses to
      three classes:
      - IPAddress: Common IP address functionality
      - IPv4Address: IPv4 specific functionality
      - IPv6address: IPv6-specific functionality
      
      Furthermore it adds methods to check whether an address is a loopback
      address, replacing the .startswith("127") for IPv4 and adding IPv6
      support.
      
      It also provides the basis for future IPv6 address handling. Methods to
      convert IP strings to their corresponding interger values will allow to
      canonicalize IPv6 addresses.
      Signed-off-by: default avatarManuel Franceschini <livewire@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      8b312c1d
  13. 29 Jul, 2010 1 commit
    • Iustin Pop's avatar
      Change semantics of --force-multi for reinstall · 297ddce9
      Iustin Pop authored
      
      
      Currently, we require both --force and --force-multiple for skipping the
      confirmation on instance reinstalls. After offline conversations, this
      has been deemed to be excessive, and this patch changes the meaning of
      --force-multiple to be a “stronger” force, and not require both.
      
      So, to skip the prompts:
      - single instance reinstallation requires either --force or
        --force-multiple
      - multiple instance reinstallation requires --force-multiple
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      297ddce9
  14. 28 Jul, 2010 2 commits
  15. 23 Jul, 2010 2 commits
  16. 16 Jul, 2010 1 commit
    • Iustin Pop's avatar
      Add a migration type global hypervisor parameter · e71b9ef4
      Iustin Pop authored
      
      
      Since migration live/non-live is more stable (e.g.) for Xen-PVM versus
      Xen-HVM, we introduce a new parameter for what mode we should use by
      default (if not overridden by the user, in the opcode).
      
      The meaning of the opcode 'live' field changes from boolean to either
      None (use the hypervisor default), or one of the allowed migration
      string constants. The live parameter of the TLMigrateInstance is still a
      boolean, computed from the opcode field (which is no longer passed to
      the TL).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      e71b9ef4
  17. 09 Jul, 2010 1 commit
  18. 08 Jul, 2010 1 commit
  19. 06 Jul, 2010 1 commit
    • Iustin Pop's avatar
      gnt-instance: fix GenericManyOps · b4e68848
      Iustin Pop authored
      
      
      Currently, GenericManyOps ignores the actual success or failure results
      from the invididual jobs. We change this to return '0' (i.e. success)
      only when all jobs failed, as many times we have just one job.
      
      Together with the JobExecutor change, this will report failures
      correctly when used with a drained queue and submit only, or when used
      normally and the opcode actually fails.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      b4e68848
  20. 05 Jul, 2010 1 commit
  21. 01 Jul, 2010 1 commit
  22. 30 Jun, 2010 2 commits
  23. 29 Jun, 2010 2 commits
  24. 23 Jun, 2010 3 commits
  25. 01 Jun, 2010 1 commit
  26. 03 May, 2010 1 commit
  27. 21 Apr, 2010 1 commit
  28. 09 Apr, 2010 1 commit
    • Guido Trotter's avatar
      Fix new pylint errors · fe7c59d5
      Guido Trotter authored
      
      
      Under squeeze pylint reports the following errors:
      ************* Module ganeti.serializer
      E1103:155:LoadSignedJson: Instance of 'False' has no 'get' member (but some types could not be inferred)
      ************* Module ganeti-masterd
      E1103:166:ClientRqHandler.handle: Instance of 'False' has no 'get' member (but some types could not be inferred)
      E1103:167:ClientRqHandler.handle: Instance of 'False' has no 'get' member (but some types could not be inferred)
      ************* Module gnt-instance
      E1103:431:BatchCreate: Instance of 'False' has no 'keys' member (but some types could not be inferred)
      
      For the first two cases it's actually wrong: we had checked before that
      the variable on which "get" is called is actually a dict. In the third
      case though such check doesn't exist, so we add it. Then we silence the
      error all three times.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      fe7c59d5
  29. 17 Mar, 2010 2 commits
  30. 15 Mar, 2010 1 commit
    • Iustin Pop's avatar
      Implement conversion from plain to drbd · e29e9550
      Iustin Pop authored
      
      
      This patch adds a new mode to instance modify, the changing of the disk
      template. For now only plain to drbd conversion is supported, and the
      new secondary node must be specified manually (no iallocator support).
      
      The procedure for conversion works as follows:
      
      - a completely new disk template is created, matching the count, size
        and mode of the instance's current disks
      - we create manually (not via _CreateDisks) all the missing volumes
      - we rename on the primary the LVs to the new name
      - we create manually the DRBD devices
      
      Failures during the creation of volumes will leave orphan volumes.
      Failure during the rename might leave some disks renamed and some not,
      leading to an inconsistent instance.
      
      Once the disks are renamed, we update the instance information and wait
      for resync. Any failures of the DRBD sync must be manually handled (like
      a normal failure, e.g. by running replace-disks, etc.).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      e29e9550
  31. 11 Feb, 2010 2 commits