Skip to content
Snippets Groups Projects
  1. Nov 13, 2007
  2. Nov 12, 2007
    • Iustin Pop's avatar
      Fix a wrong comparison in _RecursiveAssembleBD · 7803d4d3
      Iustin Pop authored
      We want to prevent sending too many 'None' children to a device.
      However, the test as it is today is wrong, as we want to test the
      situation after adding a new child, and not before. This patch fixes
      this by testing greater-or-equal instead of just greater.
      
      Reviewed-by: imsnah
      7803d4d3
    • Iustin Pop's avatar
      Fix another breakage in SetEtcHostsEntry · 7e3dbb94
      Iustin Pop authored
      The code assumes all lines have at least two elements which are
      whitespace separated - i.e. it does not deal with empty lines or comment
      lines with no spaces. This patch fixes this.
      
      Also, the patch replaces the blank between IP and the canonical name
      with a tab (restoring previous behaviour).
      
      Reviewed-by: imsnah
      7e3dbb94
    • Michael Hanselmann's avatar
      Call fsync() after modifying /etc/hosts. · 2e3e75b7
      Michael Hanselmann authored
      This is a critical file. Breaking it would be very bad. Thus, if the system
      crashes before the data is synched to the disk, it should have the complete
      file afterwards.
      
      Reviewed-by: iustinp
      2e3e75b7
    • Michael Hanselmann's avatar
      Fix functions for /etc/hosts. · 9440aeab
      Michael Hanselmann authored
      - Combine hostname and aliases on one line
      - Fix bug with wrongfully removed newline characters
      - Use wrapper for SetEtcHostsEntry in cmdlib
      
      Reviewed-by: iustin
      9440aeab
    • Michael Hanselmann's avatar
      Rollback commit 356. · 424908c1
      Michael Hanselmann authored
      424908c1
    • Michael Hanselmann's avatar
      Add functions for known_hosts files. · 2d6cfa31
      Michael Hanselmann authored
      Reviewed-by: TODO
      2d6cfa31
    • Michael Hanselmann's avatar
      Add missing descriptions to {Add,Remove}EtcHostsEntry. · 3e1cdf9f
      Michael Hanselmann authored
      Reviewed-by: schreiberal
      3e1cdf9f
    • Iustin Pop's avatar
      Relax replace_disks_all meaning for drbd8 · 7df43a76
      Iustin Pop authored
      In order to make the replace secondary action to be done via the same
      opcode parameters for both remote_raid1 and drbd, we must allow the
      LUReplaceDisks to change replace_disks_all for drbd with non-empty
      remote_node into replace_disks_sec.
      
      This fixes gnt-node evacuate and also allows gnt-instace replace-disks
      to have the same syntax for both remote_raid1 and drbd (when replacing
      the secondary).
      
      Reviewed-by: ultrotter
      7df43a76
    • Guido Trotter's avatar
      Change --nodes to --node · 59885275
      Guido Trotter authored
      The --nodes option in gnt-backup really accepts only one node at a time.
      Change it to --node, for added clarity and consistency with a similar
      option in gnt-cluster. This patch also updates the relevant man page.
      
      Reviewed-By: iustinp
      59885275
    • Iustin Pop's avatar
      Update documentation for drbd8 and beta2 release · 6c4811dc
      Iustin Pop authored
      This patch does:
        - add drbd8 information to the docs (the new disk template, examples,
          etc.)
        - fixes a section header to make it more clear
        - update the NEWS file by changing format (format taken by looking at
          /usr/sharea/doc/*/NEWS.gz) and adding more information on changes
          since beta1
      
      Reviewed-by: ultrotter
      6c4811dc
  3. Nov 10, 2007
  4. Nov 09, 2007
  5. Nov 08, 2007
    • Iustin Pop's avatar
      Simplify burnin output · 21546b1c
      Iustin Pop authored
      Currently, the burnin output is very verbose (we log the entire output
      from LU feedback) and duplicate in some cases (as we enable debugging).
      
      This patch disables debugging and only logs the burnin output when an
      error occurs.
      
      Reviewed-by: imsnah
      21546b1c
    • Iustin Pop's avatar
      Changes related to logging · 5bfac263
      Iustin Pop authored
      This patch modifes:
        - mcpu.Processor.LogWarning to have its 'hint' parameter as optional
          and only log it if not None
        - cmdlib._WaitForSync to not log directly to stdout/stderr but via the
          proc.Log(Info|Warning) methods
        - the LU attribute 'processor' is renamed to 'proc' to shorten the
          name
      
      Reviewed-by: imsnah
      5bfac263
    • Iustin Pop's avatar
      Refactor burnin to improve disk replacement · 175f44c2
      Iustin Pop authored
      This patch changes the burnin:
        - split the code into functions
        - add replace2 (replace the secondary) for remote_raid1
        - add replace1/2 for drbd8
      
      Reviewed-by: imsnah
      175f44c2
    • Michael Hanselmann's avatar
      Insert hook calls. · e42b5307
      Michael Hanselmann authored
      Reviewed-by: schreiberal
      e42b5307
    • Michael Hanselmann's avatar
      Implement sample hook. · 663ed0ce
      Michael Hanselmann authored
      Reviewed-by: schreiberal
      663ed0ce
    • Michael Hanselmann's avatar
      Implement hooks infrastructure. · 1672a0d1
      Michael Hanselmann authored
      Reviewed-by: schreiberal
      1672a0d1
  6. Nov 07, 2007
    • Iustin Pop's avatar
      Enhance secondary node replace for drbd8 · 0834c866
      Iustin Pop authored
      This (big) patch does two things:
        - add "local disk status" to the block device checks
          (BlockDevice.GetSyncStatus and the rpc calls that call this
          function, and therefore cmdlib._CheckDiskConsistency)
        - improve the drbd8 secondary replace operation using the above
          functionality
      
      The "local disk status" adds a new variable to the result of
      GetSyncStatus that shows the degradation of the local storage of the
      device. Of course, not all device support this - for now, we only modify
      LogicalVolumes and DRBD8 to return degraded in some cases, other devices
      always return non-degraded. This variable should be a subset of
      is_degraded - whenever this variable is true, the is_degraded should
      also be true.
      
      The drbd8 secondary replace uses this variable as we don't care if the
      primary drbd device is network-degraded, only if it has good local disk
      data (ldisk is False).
      
      The patch also increases the protocol version (due to rpc changes).
      
      Reviewed-by: imsnah
      0834c866
    • Michael Hanselmann's avatar
      Indentation fixes for docs. · e3c826ec
      Michael Hanselmann authored
      Reviewed-by: schreiberal
      e3c826ec
    • Michael Hanselmann's avatar
      Update docs for the removed --secondary-node option. · 4677a909
      Michael Hanselmann authored
      Reviewed-by: ultrotter
      4677a909
    • Michael Hanselmann's avatar
      Check whether init.d script is executable. · 7dd30006
      Michael Hanselmann authored
      Reviewed-by: schreiberal
      7dd30006
  7. Nov 06, 2007
    • Michael Hanselmann's avatar
    • Michael Hanselmann's avatar
      Remove --secondary-node option. · 60d49723
      Michael Hanselmann authored
      Replace --secondary-node option with an optional parameter for --node.
      60d49723
    • Iustin Pop's avatar
      Enhance DBRD8 disk replacement (same nodes) · cff90b79
      Iustin Pop authored
      This patch adds enhanced reporting and much more checks to the disk
      replacement (when not switching the secondary).
      
      Reviewed-by: imsnah
      cff90b79
    • Iustin Pop's avatar
      Implement degraded status for logical volumes · 9db6dbce
      Iustin Pop authored
      Logical volumes can be 'degraded' in a similar way to mirrored devices,
      when their underlying storage has gone away (i.e. after a physical disk
      failure and 'vgreduce --removemissing'). If we can detect this, we can
      prevent mistaken replaces of disks that would use this LV (or its
      parent) as source data.
      
      This patch adds support for computing the degraded attribute and
      modifies gnt-instance to warn if the LV is virtual.
      
      Reviewed-by: imsnah
      9db6dbce
    • Iustin Pop's avatar
      Add better error logging functions for LUs · 0fbbf897
      Iustin Pop authored
      Currently, some LUs use logger.Error, others just feedback_fn, etc. This
      patch adds three functions to mcpu.Processor than can be used to log
      messages to both the log and to the user.
      
      These function will be used to enhance the output of replace-disks for
      drbd8 (at least).
      
      Reviewed-by: imsnah
      0fbbf897
    • Iustin Pop's avatar
      Enhance mirror operations for DRBD8 · 03ece5f3
      Iustin Pop authored
      Currently, the mirror operations (add and remove children) test against
      the instance's attributes. This patch changes the check tests to work
      against the actual status of the device (i.e. live data) which is more
      realistic.
      
      The changes are:
        - allow add children if the device doesn't have local storage (even if
          we believe it has)
        - early return from remove children if the device is already without
          local storage
      
      Reviewed-by: imsnah
      03ece5f3
    • Iustin Pop's avatar
      Allow DRBD8 operation without backing storage · fc1dc9d7
      Iustin Pop authored
      This patch adds the following functionality:
        - DRBD8 devices can assemble without local storage (done by allowing
          None in the list of children, and making DRBD8 to ignore all
          children if any is None)
        - DRBD8 devices can attach (i.e. identify a device) which is not
          connected to backing storage but to the correct network ports; this
          is a rare case in normal operation (it's what would happen if one
          manually detaches the local disk, and the backing LV still exists)
      
      Reviewed-by: imsnah
      fc1dc9d7
    • Iustin Pop's avatar
      Make DRBD8 disks show 'degraded' status if diskless · 583e3f6f
      Iustin Pop authored
      This patch enables the bdev.DRBD8 class report a degraded status if the
      local disk is missing. This allows `gnt-instance info` to report the
      actual situation in this case.
      
      Note that DRBD7 should also behave like this, however the diskless case
      is less often met there and we also don't want to change behaviour.
      
      The patch also fixes some docstrings for the GetSyncStatus methods.
      
      Reviewed-by: imsnah
      583e3f6f
    • Iustin Pop's avatar
      Change the way remove children is called in bdev · e739bd57
      Iustin Pop authored
      For some cases, we don't have to have access to the children of a device
      in order to remove them (e.g. md over lvs, or drbd over lvs). In order
      to ease the removal process, skip over finding the child if it provides
      a static dev path.
      
      This is needed in order to support removal of children when the
      underlying storage has gone away.
      
      Reviewed-by: imsnah
      e739bd57
    • Iustin Pop's avatar
      Add a support function to objects.Disk · 222f2dd5
      Iustin Pop authored
      This patch adds a function returning the device path if it is computable
      from the disk object (and we don't need to instantiate a bdev object on
      the target node in order to compute this). Only LVs support this.
      
      Reviewed-by: imsnah
      222f2dd5
  8. Nov 05, 2007
Loading