1. 06 Oct, 2008 10 commits
    • Iustin Pop's avatar
      backend.py change to get cluster name from master · 62c9ec92
      Iustin Pop authored
      Currently there are three function in backend that need the cluster name
      in order to instantiate an SshRunner. The patch changes these to get the
      cluster name from the master in the rpc call; once the multi-hypervisor
      change is implemented, then very few places in which we need the SCR
      remain in the backend.
      
      Reviewed-by: killerfoxi, imsnah
      62c9ec92
    • Iustin Pop's avatar
      Disable re-reading of config file · 3d3a04bc
      Iustin Pop authored
      Since the objects read from the config file are passed to the various
      threads, it's unsafe to re-read the config file (and throw away
      ConfigWriter._config_data). As such, we disable the re-reading of the
      file (since now the master is the owner the file, it makes not sense to
      re-read it), and any modifications to the file must be done offline,
      otherwise they will be overwritten.
      
      Reviewed-by: imsnah
      3d3a04bc
    • Oleksiy Mishchenko's avatar
      RAPI Desing Doc · a72b3711
      Oleksiy Mishchenko authored
      Reviewed-by: iustinp
      a72b3711
    • Iustin Pop's avatar
      Start implementation of parallel burnin · ec5c88dc
      Iustin Pop authored
      This patch introduces a simple framework for executing jobs in parallel
      in burnin (the ExecJobSet function) and the "--parallel" command line
      flag.
      
      The patch also changes the instance creation to run in parallel when the
      above flag is given. Error handling/instance removal is currently flacky
      with this options if there are errors in the instance creation.
      
      We also modify burnin to reuse a single client.
      
      Reviewed-by: imsnah
      ec5c88dc
    • Iustin Pop's avatar
      Fix gnt-job list with empty timestamps · e0ec0ff6
      Iustin Pop authored
      In case the job object doesn't have a timestamp (which is a separate
      issue), the listing should not break. We fix this by changing the
      FormatTimstamp function itself to return '?' in case the timestamp
      doesn't look good (note that it still can break if non-integers are
      returned, but this is unlikely).
      
      Reviewed-by: imsnah
      e0ec0ff6
    • Iustin Pop's avatar
      Increase the number of threads to 25 · 1daae384
      Iustin Pop authored
      Since our locks are not gathered nicely, we can have jobs that are
      actually blocking on locks (parallel burnin shows this), so at least we
      need to increase the number of threads above the usual number of jobs we
      could have in a such a case.
      
      Reviewed-by: imsnah
      1daae384
    • Alexander Schreiber's avatar
      Minor cleanups & typo fixes. · 74bc10e8
      Alexander Schreiber authored
      Reviewed-by: iustinp
      
      74bc10e8
    • Iustin Pop's avatar
      Fix SshRunner breakage from the changed API · 6b0469d2
      Iustin Pop authored
      More places actually use the SshRunner than just the gnt-cluster
      commands.
      
      Reviewed-by: ultrotter
      6b0469d2
    • Iustin Pop's avatar
      Change SshRunner usage · 56bece1f
      Iustin Pop authored
      Currently the SshRunner uses a SimpleConfigReader instance, however this
      is not best. We change it to use the cluster name directly (and its
      constructor now takes this as parameter, instead of SCR), and its
      callers are change to pass the name directly.
      
      As a consequence, we can now remove the initialization of SCR in
      gnt-cluster (copyfile and command), and instead we query the master for
      the cluster name).
      
      Reviewed-by: imsnah
      56bece1f
    • Michael Hanselmann's avatar
      Update document describing cluster security · 4fbe765c
      Michael Hanselmann authored
      It may need further updates, but here's a start.
      
      Reviewed-by: ultrotter
      4fbe765c
  2. 05 Oct, 2008 1 commit
  3. 03 Oct, 2008 1 commit
  4. 02 Oct, 2008 2 commits
  5. 01 Oct, 2008 24 commits
    • Michael Hanselmann's avatar
      Get rid of ssconf · c259ce64
      Michael Hanselmann authored
      Remove leftovers from ssconf.
      
      Reviewed-by: iustinp
      c259ce64
    • Michael Hanselmann's avatar
      Don't pass sstore to LUs anymore · 0b38cf6e
      Michael Hanselmann authored
      sstore is no longer used in LUs.
      
      Reviewed-by: iustinp
      0b38cf6e
    • Michael Hanselmann's avatar
      Convert ganeti-master · a42872ff
      Michael Hanselmann authored
      Use simpleconfig instead of ssconf.
      
      Reviewed-by: iustinp
      a42872ff
    • Michael Hanselmann's avatar
      Convert ganeti-watcher · 2859b87b
      Michael Hanselmann authored
      Use RPC calls instead of ssconf.
      
      Reviewed-by: iustinp
      2859b87b
    • Michael Hanselmann's avatar
      Convert ganeti-noded · 8594f271
      Michael Hanselmann authored
      Replace ssconf with utility functions.
      
      Reviewed-by: iustinp
      8594f271
    • Michael Hanselmann's avatar
      Convert gnt-cluster · e00ea635
      Michael Hanselmann authored
      Replace ssconf with configuration.
      
      Reviewed-by: iustinp
      e00ea635
    • Michael Hanselmann's avatar
      Convert bootstrap.py · d23ef431
      Michael Hanselmann authored
      Replace ssconf with configuration.
      
      Reviewed-by: iustinp
      d23ef431
    • Michael Hanselmann's avatar
      Convert cmdlib.py · d6a02168
      Michael Hanselmann authored
      Replacing ssconf with configuration. Cluster rename is broken and stays
      that way.
      
      Reviewed-by: iustinp
      d6a02168
    • Michael Hanselmann's avatar
      Convert ssh.py · 7688d0d3
      Michael Hanselmann authored
      Get rid of ssconf and convert to configuration instead.
      
      Reviewed-by: iustinp
      7688d0d3
    • Michael Hanselmann's avatar
      Convert rpc.py · eb1328a9
      Michael Hanselmann authored
      Replacing ssconf with utility functions.
      
      Reviewed-by: iustinp
      eb1328a9
    • Michael Hanselmann's avatar
      Convert hypervisor · 3707f851
      Michael Hanselmann authored
      Replacing ssconf with configuration.
      
      Reviewed-by: iustinp
      3707f851
    • Michael Hanselmann's avatar
      Convert mcpu.py · 437138c9
      Michael Hanselmann authored
      Replacing ssconf with configuration.
      
      Reviewed-by: iustinp
      437138c9
    • Michael Hanselmann's avatar
      Convert config.py · 5b263ed7
      Michael Hanselmann authored
      The configuration version is now again in the configuration file.
      
      Reviewed-by: iustinp
      5b263ed7
    • Michael Hanselmann's avatar
      Convert backend.py · c657dcc9
      Michael Hanselmann authored
      Replacing ssconf with simpleconfig.
      
      Reviewed-by: iustinp
      c657dcc9
    • Michael Hanselmann's avatar
      Add new query to get cluster config values · ae5849b5
      Michael Hanselmann authored
      This can be used to retrieve certain cluster config values from
      within clients.
      
      OpDumpClusterConfig was not used anywhere, hence I'm just reusing
      it. The way ConfigWriter.DumpConfig returned the configuration
      was not thread-safe, anyway (no deepcopy).
      
      Reviewed-by: iustinp
      ae5849b5
    • Michael Hanselmann's avatar
      Move functions from ssconf.py elsewhere · 4a8b186a
      Michael Hanselmann authored
      These functions will be used to access config values instead of using
      ssconf.
      
      Reviewed-by: iustinp
      4a8b186a
    • Michael Hanselmann's avatar
      Add simple configuration reader/writer classes · 856c67e1
      Michael Hanselmann authored
      This will be used to read the configuration file in the node daemon.
      The write functionality is needed for master failover.
      
      Reviewed-by: iustinp
      856c67e1
    • Iustin Pop's avatar
      Fix the watcher with down nodes · 37b77b18
      Iustin Pop authored
      The watcher didn't handle the down nodes, fix this by ignoring (in
      secondary node reboot checks) any node that doesn't return a boot id.
      
      Reviewed-by: imsnah
      37b77b18
    • Iustin Pop's avatar
      Fix the watcher not restarting instance bug · b7309a0d
      Iustin Pop authored
      The watcher was using conflicting attributes of the instance:
        - it queried the admin_/oper_state, which are booleans
        - but it compared those to the status (which is a text field)
      
      The code was changed to query the aggregated 'status' field, as that
      will also return indication of node problems, and we can use this only
      one field for all decisions. We still ask for the admin_state field as
      that is needed for the activate disks check (in secondary node restart).
      
      The patch also touches the watcher in some other parts:
        - log exceptions nicer
        - convert a method to @staticmethod
        - remove unused imports
      
      Reviewed-by: imsnah
      b7309a0d
    • Iustin Pop's avatar
      Remove last use of utils.RunCmd from the watcher · 5188ab37
      Iustin Pop authored
      The watcher has one last use of ganeti commands as opposed to sending
      requests via luxi. The patch changes this to use the cli functions.
      
      The patch also has two other changes:
        - fix the docstring for OpVerifyDisks (found out while converting
          this)
        - enable stderr logging on the watcher when “-d” is passes
      
      Reviewed-by: imsnah
      5188ab37
    • Michael Hanselmann's avatar
      Fix unittests broken by revision 1727 · 36b8c2c1
      Michael Hanselmann authored
      Reviewed-by: iustinp
      36b8c2c1
    • Michael Hanselmann's avatar
      Add cluster options from ssconf to configuration · f6bd6e98
      Michael Hanselmann authored
      ssconf will become write-only from ganeti-masterd's point of view,
      therefore all settings in there need to go into the main configuration
      file.
      
      Reviewed-by: iustinp
      f6bd6e98
    • Michael Hanselmann's avatar
      Move instantiation of config into bootstrap.py · b9eeeb02
      Michael Hanselmann authored
      Future patches will add even more variables to the cluster config.
      Adding more parameters wouldn't make the function easier to use and
      it doesn't make sense to pass them to another function, as it's
      only done once in bootstrap.py on cluster initialization.
      
      Reviewed-by: iustinp
      b9eeeb02
    • Iustin Pop's avatar
      Change the results from cli.PollJob · 53c04d04
      Iustin Pop authored
      Curently PollJob accepts a generic job, but will return (history
      artifact) only the first opcode result. This is wrong, as it doesn't
      allow polling of a job with multiple results.
      
      Its only caller (for now) is also changed, so no functional changes
      should happen.
      
      Reviewed-by: ultrotter, amishchenko
      53c04d04
  6. 30 Sep, 2008 2 commits