Skip to content
Snippets Groups Projects
  1. Apr 09, 2010
    • 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
    • Iustin Pop's avatar
      Make watcher request the max coverage · ebacb943
      Iustin Pop authored
      
      Since the actions are potentially destructive, we should try to get a
      consistent view of the cluster, so it's better to get the most coverage
      possible.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      ebacb943
  2. Apr 08, 2010
  3. Mar 30, 2010
  4. Mar 23, 2010
  5. Mar 18, 2010
  6. Mar 15, 2010
    • Michael Hanselmann's avatar
      Rightname confd's HMAC key · 6b7d5878
      Michael Hanselmann authored
      
      Currently, the ganeti-confd's HMAC key is called “cluster HMAC key” or
      simply “HMAC key” everywhere. With the implementation of inter-cluster
      instance moves, another HMAC key will be introduced for signing critical
      data. They can not be the same, so this patch clarifies the purpose of the
      “cluster HMAC key” by renaming it. The actual file name is not changed.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      6b7d5878
  7. Mar 12, 2010
  8. Mar 10, 2010
    • Michael Hanselmann's avatar
      http.auth: Fix bug with checking hashed passwords · 23ccba04
      Michael Hanselmann authored
      
      When username and password were sent for a resource not requiring
      authentication, it wouldn't be accepted if the user in question had a
      hashed password. The reason was that the function GetAuthRealm used to
      return None if no authentication was necessary. However, the
      authentication realm is necessary to verify hashed passwords. This is
      fixed by requiring GetAuthRealm to always return a realm and separating
      the decision whether to require authentication or not to a separate
      function.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      23ccba04
  9. Mar 08, 2010
  10. Feb 26, 2010
  11. Feb 23, 2010
  12. Feb 22, 2010
  13. Feb 18, 2010
  14. Feb 17, 2010
  15. Feb 03, 2010
  16. Feb 02, 2010
  17. Jan 28, 2010
  18. Jan 27, 2010
    • Iustin Pop's avatar
      node daemon: allow working with broken queue dir · 81198f6e
      Iustin Pop authored
      
      In case the queue dir cannot be create/initialized, currently
      ganeti-noded exits. This means that a read-only filesystem or a
      permission error breaks all node daemon functionality, including
      powercycle. This is not good for the usual failure case for nodes.
      
      To workaround this, we don't require successful initialization at node
      daemon startup; if we can't init the queue dir/lock, we retry at every
      RPC call requiring a job queue lock, and if we still can't acquire the
      lock, we raise an exception (which is catched in HandleRequest and
      transformed into an RPC failure).
      
      This allows the node daemon to start in face of queue issues, and the
      master node to power-cycle it.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      81198f6e
    • Iustin Pop's avatar
      daemon-utils: remove usage of here-docs · 8645ff83
      Iustin Pop authored
      
      In some versions of bash, here-docs and here-strings use temporary
      files, which means daemon-util needs a writable temporary filesystem.
      Since echo is a bash builtin anyway, it's simple to switch to it and
      remove this dependency.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      8645ff83
  19. Jan 19, 2010
    • Michael Hanselmann's avatar
      daemon-util: Fix quoting issue · 03956d39
      Michael Hanselmann authored
      
      This patch fixes a quoting issue in daemon-util:
      
      $ EXTRA_MASTERD_ARGS=--no-voting /etc/init.d/ganeti restart
      […]
      * ganeti-masterd...
      /…/ganeti/daemon-util: line 65: local: `--no-voting': not a valid identifier
      
      The reason was that the generated variables were not quoted properly and
      the troublesome line expanded to
      “local args=$MASTERD_ARGS $EXTRA_MASTERD_ARGS” instead of the correct
      “local args="$MASTERD_ARGS $EXTRA_MASTERD_ARGS"”.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      03956d39
  20. Jan 13, 2010
  21. Jan 05, 2010
    • Iustin Pop's avatar
      Introduce a Luxi call for GetTags · 7699c3af
      Iustin Pop authored
      
      This changes from submitting jobs to get the tags (in cli scripts) to
      queries, which (since the tags query is a cheap one) should be much
      faster.
      
      The tags queries are already done without locks (in the generic query
      paths for instances/nodes/cluster), so this shouldn't break tags query
      via gnt-* list-tags.
      
      On a small cluster, the runtime of gnt-cluster/gnt-instance list tags
      more than halves; on a big cluster (with many MCs) I expect it to be
      more than 5 times faster. The speed of the tags get is not the main
      gain, it is eliminating a job when a simple query is enough.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      7699c3af
  22. Jan 04, 2010
Loading