Skip to content
Snippets Groups Projects
  1. Apr 16, 2010
  2. Apr 15, 2010
  3. Apr 13, 2010
  4. Apr 12, 2010
  5. Apr 09, 2010
    • Guido Trotter's avatar
      burnin: only remove instances we actually added · 1e82a86b
      Guido Trotter authored
      
      Currently burnin, if proceding in parallel, will remove all instances
      which were passed, even if they failed to add. This is bad because it
      will also remove instances which existed before burnin started. By
      adding the instances to the removal queue only if their creation was
      successful (passing the action as a post processing action to
      ExecOrQueue) we guarantee pre-existing instances are saved.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      1e82a86b
    • Guido Trotter's avatar
      burnin.ExecOrQueue: add post-process function · 2c035435
      Guido Trotter authored
      
      If a post-process function is passed to ExecOrQueue it is executed if
      and only if the job is successful. This happens immediately if we're
      proceding iteratively, and at the end, when we collect all job results,
      if we're proceding in parallel.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      2c035435
    • Guido Trotter's avatar
      burnin.ExecOrQueue: remove variable argument list · b05f29a6
      Guido Trotter authored
      
      In order to later add an optional parameter we transform the variable
      ops argument list in an explicit list.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      b05f29a6
    • 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
Loading