Skip to content
Snippets Groups Projects
  1. Dec 27, 2012
  2. Oct 11, 2012
  3. Sep 28, 2012
  4. Sep 12, 2012
  5. Aug 07, 2012
    • Iustin Pop's avatar
      Switch job IDs to numeric · 76b62028
      Iustin Pop authored
      
      This has been a long-standing cleanup item, which we've always
      refrained from doing due to the high estimated effort needed.
      
      In reality, it turned out that after some infrastructure improvements
      (the previous patches), the actual job queue-related changes are quite
      small.
      
      We will need to update the NEWS file later, but so far the RAPI
      documentation doesn't mention that the job ID is a string (it only
      says it is "a number"), so it doesn't look like it needs update.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      76b62028
    • Iustin Pop's avatar
      Make jqueue unittests more generic · 09532dcc
      Iustin Pop authored
      
      This patch removes/abstracts some hardcoded values in the jqueue
      unittests. Currently we have a per-resource type name field, but the
      name field values are hardcoded at the call sites, instead of being
      abstracted into separate variables.
      
      This will become a problem later, so let's just introduce some new
      vars holding these; modifying the tests later will be therefore
      easier.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      09532dcc
  6. Jun 15, 2012
  7. Jun 14, 2012
  8. May 14, 2012
  9. May 11, 2012
  10. Apr 19, 2012
  11. Mar 30, 2012
  12. Feb 21, 2012
  13. Dec 08, 2011
  14. Nov 22, 2011
  15. Nov 16, 2011
  16. Nov 07, 2011
  17. Oct 12, 2011
    • Iustin Pop's avatar
      Rename filter and filter_ to qfilter · 2e5c33db
      Iustin Pop authored
      
      We currently use 'filter' as the OpCode, QueryRequest and RAPI field
      name for representing a query filter. However, since 'filter' is a
      built-in function, we actually have to use filter_ throughout the code
      in order to not override the built-in function.
      
      This patch simply goes and does a global sed over the code. Due to the
      fact that the RAPI interface already exposed this field, we add
      compatibility code for now which handles both forms.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      2e5c33db
  18. Aug 02, 2011
  19. Apr 18, 2011
  20. Apr 05, 2011
  21. Mar 14, 2011
  22. Mar 07, 2011
  23. Mar 02, 2011
  24. Mar 01, 2011
    • Michael Hanselmann's avatar
      query: Add support for filters · fb0be379
      Michael Hanselmann authored
      
      This patch adds a “compiler” for query filters, converting them to a
      callable function used while preparing the query result. In addition, a
      hints call allows some analysis to be done on the query (e.g. referenced
      names), making data collection more efficient.
      
      The depth of filters is limited to avoid exceeding the runtime's maximum
      recursion depth.
      
      More operators and other improvements can be implemented using this
      base. Extensive unittests are provided.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      fb0be379
    • Michael Hanselmann's avatar
      Add query field flags · 111bf531
      Michael Hanselmann authored
      
      Some fields (e.g. “name”) should be treated specially when comparing for
      equality. Hypervisor names should use normal rules, but for node names,
      “node2” should be equivalent with “node2.example.com”.
      
      To make these differences, a new field for flags is added to the query
      fields. It is not added to ”objects.QueryFieldDefinition” (the first
      item) as it would be exported to clients, something not desired for
      these internal rules. Instead, an additional field is added.
      
      Other special rules, e.g. “a list of strings” for an instance's
      secondary nodes, can be implemented as flags, too.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      111bf531
  25. Feb 28, 2011
  26. Feb 24, 2011
  27. Feb 23, 2011
  28. Feb 17, 2011
    • Iustin Pop's avatar
      NodeQuery: mark live fields as UNAVAIL for non-vm_capable nodes · effab4ca
      Iustin Pop authored
      
      Since we don't have the data per design, UNAVAIL is appropriate here,
      while NODATA is not.
      
      The patch also adds a comment: if we extend the live fields list to
      contain other data in the future, we need to reevaluate this solution.
      
      This should fix issue 143. The listing now shows (node2==ofline,
      node3==not vm_capable):
      
        Node     DTotal     DFree    MTotal     MNode     MFree Pinst Sinst
        node1    698.6G    630.5G     32.0G      1.0G     30.0G     8     7
        node2 (offline) (offline) (offline) (offline) (offline)     9     4
        node3 (unavail) (unavail) (unavail) (unavail) (unavail)     0     0
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      effab4ca
  29. Jan 28, 2011
  30. Jan 21, 2011
  31. Jan 20, 2011
  32. Jan 18, 2011
    • Iustin Pop's avatar
      query: Change internal result computation · e2d188cc
      Iustin Pop authored
      
      While looking at the query library, I realized that while we have five
      field statuses, making this a 5-dimensional space, four of them are
      shrunk to a single possible value (None). Hence it should be possible to
      convert this into a single value space plus extra 4 special constants.
      
      This patch implements this, making (IMHO) the return value of normal
      functions much simpler: you simply return the desired value, instead of
      (QRFS_NORMAL, value); for the special results, you simply return
      _FS_UNAVAIL, instead of (QRFS_UNAVAIL, None). This I believe does
      simplify the code.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      e2d188cc
  33. Jan 13, 2011
Loading