Skip to content
Snippets Groups Projects
  1. Sep 25, 2008
    • René Nussbaumer's avatar
      Fix iallocator name · 1ce4bbe3
      René Nussbaumer authored
      port forward of patch from revision 1690 with following message:
      
      Patch on revision 1686 used the wrong field: ial.name, which is the instance
      name and not the iallocator name. self.op.iallocator is the right field.
      
      Sorry for this inconvenience.
      
      Reviewed-by: imsnah
      1ce4bbe3
    • René Nussbaumer's avatar
      Fix a broken format string · 207a6c74
      René Nussbaumer authored
      This patch fixes a broken format string. It's expecting 3 parameters, but only
      gets 2. This change will add the missing parameter. This is a forward-port
      of the fix in Ganeti 1.2
      
      Reviewed-by: imsnah
      207a6c74
  2. Sep 24, 2008
    • Iustin Pop's avatar
      Design doc for the master daemon · bb083b25
      Iustin Pop authored
      It's not complete, but I hope it's up to date. It's restructured text,
      but no make rules or such for html output are needed, it's readable
      as-is.
      
      Reviewed-by: imsnah
      bb083b25
    • Iustin Pop's avatar
      Switch config.py to logging · 74a48621
      Iustin Pop authored
      A couple of more modules are using the obsolete logger functions, config
      being one of them.
      
      Reviewed-by: imsnah
      74a48621
  3. Sep 23, 2008
    • Iustin Pop's avatar
      Switch to static minors for DRBD · a1578d63
      Iustin Pop authored
      With some todos remaining, this patch switches the DRBD devices to use
      the passed minors, and the cmdlib code (add instance and replace disks)
      to request and assign minors to the DRBD disks.
      
      Todos:
        - look at the disk RPC calls to see which can be optimized away, since
          we now know the minor beforehand
        - remove the _FindUnusedMinor usage from the few places it's still
          used (not for actual disks, but for temporary use in meta devs) and
          eventually replace with _CheckMinorUnused or such
      
      Of course, this and/or the previous two patches break existing clusters.
      Again.
      
      Reviewed-by: imsnah
      a1578d63
    • Iustin Pop's avatar
      Implement config support for drbd static minors · a81c53c9
      Iustin Pop authored
      This patch adds support for allocating static minors.
      
      Like for the LVM uuids, we add a new cache for the temporarily allocated
      requests, and the users of the new methods must manually clear the
      cache. If this doesn't happen, at worst we lose some minors.
      
      Todos remaining:
        - implement duplicate check at configuration load, and at instance
          add/instance update
        - investigate automatically cleaning the cache on instance add/update
          if the minors/instance/node pairs match
      
      Reviewed-by: imsnah
      a81c53c9
    • Iustin Pop's avatar
      Fix disk replace secondary with static minors · 468b46f9
      Iustin Pop authored
      The code in 'updating instance configuration' section of the replace
      disks with change secondary node was setting a wrong new logical_id for
      the drbd devices (only set the new node, not the new minor). The patch
      fixes this by remembering the new logical_id that we use for activating
      the drbd and reusing it (instead of recomputing).
      
      Since the minors are not needed to be allocated before the LVs are
      created, we also move the minor allocation step (currently as None)
      after this step.
      
      Reviewed-by: imsnah
      468b46f9
  4. Sep 22, 2008
    • Iustin Pop's avatar
      Extend DRBD disks with minors attribute · ffa1c0dc
      Iustin Pop authored
      This patch converts the DRBD disks to contain also a minor (per each
      node) attribute. This minor is not yet used and is always initialized
      with None, so the patch does not have any real-world impact - except for
      automatically upgrading config files (it adds the minors as None, None).
      
      Reviewed-by: imsnah
      ffa1c0dc
  5. Sep 18, 2008
  6. Sep 17, 2008
  7. Sep 12, 2008
  8. Sep 11, 2008
  9. Sep 10, 2008
    • Michael Hanselmann's avatar
      jqueue: Add common RPC error handling function · e74798c1
      Michael Hanselmann authored
      We didn't decide yet what exactly it should do with failed nodes.
      
      Reviewed-by: ultrotter
      e74798c1
    • Iustin Pop's avatar
      Remove locking of instances in certain queries · 57a2fb91
      Iustin Pop authored
      This patch is similar to the node patch (rev 1650). We disable locking
      of instance (and nodes) if we only query static information.
      
      Reviewed-by: ultrotter
      57a2fb91
    • Iustin Pop's avatar
      Add an atomic ConfigWrite.GetAllInstanceInfo() · 0b2de758
      Iustin Pop authored
      In order to be able to query instance without locking them, we need the
      same atomic query of multiple instances as for nodes.
      
      Reviewed-by: ultrotter
      0b2de758
    • Iustin Pop's avatar
      Add ConfigWriter._UnlockedGetInstanceList/Info() · 94bbfece
      Iustin Pop authored
      This patch splits the GetInstanceInfo and GetInstanceList methods into
      two parts, one locked one _Unlocked similar to the way nodes are
      queried.
      
      Reviewed-by: ultrotter
      94bbfece
    • Iustin Pop's avatar
      Do not use jobs in gnt-instance _ExpandNames() · b7329c9c
      Iustin Pop authored
      In the gnt-instance script, _ExpandNames() uses jobs to query instance
      names. This is not optimal, so we change it to use queries.
      
      Reviewed-by: ultrotter
      b7329c9c
    • Iustin Pop's avatar
      Implement "--submit" on gnt-instance · 6340bb0a
      Iustin Pop authored
      This patch adds support for the “--submit” parameter in the gnt-instance
      script, for the commands where it makes sense.
      
      Reviewed-by: ultrotter
      6340bb0a
    • Iustin Pop's avatar
      Rewrite the 'only submit job' handling in scripts · e9d741b6
      Iustin Pop authored
      The "sys.exit(0)" was not nice as you couldn't differentiate it from
      other exit codes. We change this to a specially defined exception for
      this, so that multi-opcode commands can handle this nicely.
      
      Reviewed-by: imsnah
      e9d741b6
    • Iustin Pop's avatar
      Optimize the OpQueryNodes for names only · c8d8b4c8
      Iustin Pop authored
      Currently, OpQueryNodes is locking all nodes (in shared mode), which
      will also block the special case of querying only for the node names
      (this is needed for gnt-cluster command, for example). There is no
      logical requirement to not give the administrator enough power if she/he
      knows what to do, so it would be logical that querying the node names
      works without a lock.
      
      The patch changes the LUQuerytNodes.ExpandNodes to only request locking
      when the selected fields contain dynamic attributes, and a small change
      in the Exec() method to use the new, atomic query method from
      ConfigWriter.
      
      Reviewed-by: ultrotter
      c8d8b4c8
    • Iustin Pop's avatar
      Add a way to export all node information at once · d65e5776
      Iustin Pop authored
      The patch adds a new function to export all node information at once
      (i.e. atomically with respect to the configuration lock).
      
      Reviewed-by: ultrotter
      d65e5776
  10. Sep 09, 2008
    • Michael Hanselmann's avatar
      ganeti-noded: Add constant for queue lock timeout · 8785cb30
      Michael Hanselmann authored
      Reviewed-by: iustinp
      8785cb30
    • Michael Hanselmann's avatar
      Never remove job queue lock in node daemon · 1bc59f76
      Michael Hanselmann authored
      Otherwise, corruption could occur in some corner cases. E.g. when
      LeaveNode is running in a child and is in the process of removing
      queue files, the main process gets killed, started again and gets
      a request to update the queue. This is rather extreme corner case,
      but we should opt for safety.
      
      Reviewed-by: iustinp
      1bc59f76
    • Iustin Pop's avatar
      Implement master startup safety check · 36205981
      Iustin Pop authored
      This is an initial version of the master startup checks. It's a very
      rudimentary change, however in normal usage (an old master was started,
      the rest of the cluster is functioning normally) it will succeed in
      preventing wrong startups.
      
      Reviewed-by: imsnah
      36205981
Loading