Skip to content
Snippets Groups Projects
  1. Nov 03, 2009
  2. Oct 26, 2009
  3. Oct 12, 2009
  4. Sep 30, 2009
  5. Sep 22, 2009
  6. Sep 16, 2009
  7. Sep 11, 2009
  8. Aug 31, 2009
  9. Aug 28, 2009
  10. Aug 12, 2009
  11. Aug 10, 2009
  12. Aug 07, 2009
  13. Aug 06, 2009
  14. Aug 05, 2009
  15. Jul 16, 2009
    • Guido Trotter's avatar
      Simplify InitConfig and remove SimpleConfigWriter · a33848a5
      Guido Trotter authored
      
      InitConfig currently creates the cluster config_data, then puts it into
      a dict, passes it to SimpleConfigWriter to load it from a dict (which
      just reuses the dict value) and then saves it. The SimpleConfigWriter is
      then returned, but ignored. With this patch we just write out the
      config_data at InitConfig time, and thus can remove SimpleConfigWriter
      altogether. The now unused SimpleConfigReader.FromDict is also gone.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      a33848a5
  16. Jul 14, 2009
  17. Jun 24, 2009
  18. May 25, 2009
    • Iustin Pop's avatar
      rapi: make tags query not use jobs · 25e39bfa
      Iustin Pop authored
      
      Currently the rapi tags query implementation is similar to the command
      line one: it submits OpGetTags jobs. This not good, since this being an
      API it can be used a lot and can pollute the job queue with many such
      trivial jobs.
      
      This patch converts it to use either queries (for nodes/instances) or
      direct read from ssconf (for the cluster case). For ssconf, we added a
      function to the ssconf.SimpleStore class for reading the tags.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      25e39bfa
  19. Apr 06, 2009
    • Iustin Pop's avatar
      Add a new ssconf file with the cluster tags · 5d60b3bd
      Iustin Pop authored
      Since the cluster tags are/should be more-or-less static, add them as an
      ssconf key, so that querying them is possible without creating a
      job/requiring the masterd to be running.
      
      Reviewed-by: imsnah
      5d60b3bd
  20. Feb 04, 2009
    • Iustin Pop's avatar
      ssconf: add some more keys and some fixes · 81a49123
      Iustin Pop authored
      This patch adds the online node list and instance list to the ssconf
      keys. In order to do distribute correctly the instance list, we need to
      update the cluster serial number on instance additions and removals.
      
      The patch also changes the permissions on the ssconf files to be 0444:
        - no write for root, in order to signal that these file should not be
          modified
        - read for everyone since the files don't contain sensitive data
          anymore (and permissions can be controlled via the parent directory
          if needed)
      
      The patch also fixes a small typo on gnt-cluster.
      
      Reviewed-by: ultrotter
      81a49123
  21. Jan 09, 2009
  22. Dec 05, 2008
    • Iustin Pop's avatar
      Add the offline node list to ssconf · a3316e4a
      Iustin Pop authored
      The patch also changes the various node list generation to be more
      consistent.
      
      Reviewed-by: imsnah
      a3316e4a
    • Iustin Pop's avatar
      ssconf: empty files should not add a newline · 02b31f32
      Iustin Pop authored
      Currently we add a newline in the ssconf writeout process, even if the
      file is empty. We chage this case so that lists of values (e.g. offline
      nodes) are correct (not a list of one empty element).
      
      Reviewed-by: imsnah
      02b31f32
  23. Dec 02, 2008
    • Iustin Pop's avatar
      Prevent master failover to a non candidate node · 8135a2db
      Iustin Pop authored
      Reviewed-by: imsnah
      8135a2db
    • Iustin Pop's avatar
      Add the list of master candidates to ssconf · f56618e0
      Iustin Pop authored
      Reviewed-by: imsnah
      f56618e0
    • Iustin Pop's avatar
      Simplify a little the ssconf update · 89b14f05
      Iustin Pop authored
      We have (again) the KeyToFilename function, so we move the writing of
      the files to a method under SimpleStore.
      
      Reviewed-by: imsnah
      89b14f05
    • Iustin Pop's avatar
      Revert "Get rid of ssconf" · 93384844
      Iustin Pop authored
      This partially reverts the "Get rid of ssconf" patch.
      
      It adds back a simpler version of the SimpleStore class, and drops the
      WritableSimpleStore class. The new version of the class also has
      node_list as a new key, and increases the size of the keys so that big
      clusters will fit the node list. Also, the SS_* constants are moved to
      constants.py, since the ConfigWriter class will need them too in order
      to generate the values dictionary.
      
      It also changes the GetMasterAndMyself function to use the SimpleStore
      by default, and the backend._GetConfig to use it too (it has all the
      needed keys).
      
      Reviewed-by: imsnah
      93384844
  24. Nov 25, 2008
  25. Nov 20, 2008
    • Michael Hanselmann's avatar
      ganeti.ssconf: Add function to write ssconf files · 0c223ea9
      Michael Hanselmann authored
      This function will be used to write ssconf files from the node daemon.
      By creating a lock file, we synchronize different child processes of
      ganeti-noded to not overwrite each other's changes. Also, external
      processes could use this lock to make sure they don't read ssconf
      files while changes are going on.
      
      The socket module is not used (anymore) in ganeti.ssconf, removing it.
      
      Reviewed-by: iustinp
      0c223ea9
  26. Oct 08, 2008
  27. Oct 05, 2008
  28. Oct 01, 2008
  29. Jul 30, 2008
Loading