Permalink
Commits on Aug 4, 2009
  1. Include license information

    beekhof committed Aug 4, 2009
Commits on Jul 29, 2009
  1. Remove useless path lookups

    beekhof committed Jul 29, 2009
  2. update tags

    convert-repo committed Jul 29, 2009
  3. Hg: Automated merge

    beekhof committed Jul 29, 2009
Commits on Jul 28, 2009
  1. Only install drbd once

    beekhof committed Jul 28, 2009
Commits on Jul 16, 2009
  1. Populate the authors file

    beekhof@localhost.localdomain committed Jul 16, 2009
Commits on Jul 10, 2009
  1. Low: RA: iSCSILogicalUnit: set default for SCSI SN, truncate SCSI ID …

    Florian Haas committed Jul 10, 2009
    …default to 24 bytes
    
    SCSI IDs are limited to 24 bytes, thus if $OCF_RESOURCE_INSTANCE is
    longer than that, truncate it for $OCF_RESKEY_scsi_id_default.
    
    Also, set a cluster-wide unique, failover persistent default for the
    SCSI serial number. I choose the first 8 bytes of an MD5 hash of
    $OCF_RESOURCE_INSTANCE. SCSI SNs can actually be up to 16 bytes long,
    but 8 bytes should be sufficient to provide uniqueness.
    
    All of this, of course, is to ensure smooth failover for iSCSI
    initiators that read the SCSI ID and SN upon reconnect after a
    connection interruption.
Commits on Jul 9, 2009
  1. Medium: RA: iSCSITarget: reintroduce "tid" resource parameter

    Florian Haas committed Jul 9, 2009
    Much as I liked the idea of referring to targets just by target IQN,
    using "dynamic" target IDs unfortunately breaks failover for tgt, at
    least with some iSCSI initiators. The details are explained here:
    
    http://lists.wpkg.org/pipermail/stgt/2009-July/003067.html
    
    Consequently, I'm reintroducing the tid parameter for iSCSITarget. It
    is required only on tgt, and optional on IET.
    
    iSCSILogicalUnit is unchanged. It still figures out the correct tid
    from the configured target_iqn.
  2. Low: RA: iSCSITarget: rename CHAP authentication parameters, make use…

    Florian Haas committed Jul 9, 2009
    …rname unique
    
    Since CHAP authentication, as presently implemented in the RA, only
    applies to "incoming user" authentication, rename parameters
    accordingly:
    
    * "username" -> "incoming_username"
    * "password" -> "incoming_password"
    
    This will allow us to add support for outgoing user authentication
    without breaking compatibility.
    
    Also, since CHAP authentication accounts are target specific in only
    some iSCSI target implementations, make usernames unique. If in an
    iSCSI implementation with no per-target user accounts the same
    username were used for multiple targets, they would all map to one
    account, with passwords overriding one another.
Commits on Jul 8, 2009
  1. Build: allow docdir to be configured, and print in summary.

    Lars Marowsky-Bree committed Jul 8, 2009
  2. Low: Build: Use docdir as base for stdocdir.

    Lars Marowsky-Bree committed Jul 8, 2009
Commits on Jul 7, 2009
  1. Low: RA: iSCSILogicalUnit: use $OCF_RESOURCE_INSTANCE as default SCSI ID

    Florian Haas committed Jul 7, 2009
    Some iSCSI initiators and other application rely on a device's SCSI ID
    to be persistent across target failovers. As some target
    implementations do not guarantee SCSI ID persistency across failovers,
    use $OCF_RESOURCE_INSTANCE as the default SCSI ID.
  2. Medium: RA: iSCSITarget, iSCSILogicalUnit: identify targets by IQN, n…

    Florian Haas committed Jul 7, 2009
    …ot by tid
    
    While implementing LIO functionality for these RAs, I noticed a design
    flaw in the existing RAs: They identify a target by a numeric "target
    ID", which is actually IET/stgt specific and not supported in LIO (and
    presumably, other target implementations). So, I've rewritten these
    agents to identify and reference targets by iSCSI Qualified Name
    (IQN).
    
    As a consequence:
    
    - the iSCSITarget parameter previously named "name" (which was stupid
      and ambigious, anyway) is now named "iqn";
    
    - the iSCSITarget parameter "tid" has gone away. Instead, where the
      implementation requires it, a "target ID" is discerned on the fly;
    
    - the iSCSILogicalUnit resource parameter "tid" has also gone away;
    
    - iSCSILogicalUnit now has a required parameter "target_iqn", which is
      to hold the target IQN and is, of course, used to assign the LU to
      an existing target.
Commits on Jul 2, 2009
  1. Low: RA: iSCSITarget, iSCSILogicalUnit: remove useless "return" after…

    Florian Haas committed Jul 2, 2009
    … check_binary
    
    Minor cleanup for the iSCSITarget and iSCSILogicalUnit RAs:
    check_binary exits with $OCF_ERR_INSTALLED if the requested binary is
    not found. Thus the useless return statements after check_binary in
    validate-all can be removed.
  2. Low: RA: iSCSITarget, iSCSILogicalUnit: rename instance attributes

    Florian Haas committed Jul 2, 2009
    This patch renames some resource parameters (a.k.a. supported instance
    attributes) as discussed on the mailing list:
    
    * "params" -> "additional_parameters" (so as not to conflict with the
      CRM shell's "params" keyword, and to also distinguish from other,
      named parameters that can be set via individual instance
      attributes).
    
    * "initiators" -> "allowed_initiators" (to remove ambiguity)
  3. Medium: RA: iSCSILogicalUnit: add support for SCSI ID, SCSI SN, Vendo…

    Florian Haas committed Jul 2, 2009
    …r ID, and Product ID
    
    It seems nice to be able to set these in an implementation-independent
    way. These VPD attributes could already be set previously by using the
    "params" instance attribute, but that approach required observing
    that, for example, the SCSI ID is named "ScsiId" in IET while it's
    "scsi_id" in tgt. Now, you can just set "scsi_id" and the RA will
    translate to the appropriate target parameter, as per the
    implementation.
    
    Being able to set the SCSI ID is specifically helpful as some iSCSI
    initiator implementations rely on consistent SCSI IDs for smooth
    target failover.
  4. Medium: RA: iSCSITarget: add support for CHAP authentication

    Florian Haas committed Jul 2, 2009
    This patch adds support for incoming user authentication using
    CHAP. It retains the default behavior of allowing unauthenticated
    access if no username is specified.
Commits on Jun 30, 2009
  1. Low: RA: pgsql: logging improvements

    NAKAHIRA Kazutomo committed Jun 30, 2009
Commits on Jun 29, 2009
  1. Low: RA: iSCSILogicalUnit: add support for per-LU parameters

    Florian Haas committed Jun 29, 2009
    This patch adds support for parameters at the LU level. This comes in
    handy if one wishes to assign custom SCSI IDs, serial numbers, and the
    like.
  2. Low: RA: iSCSITarget: add support for restricting target access

    Florian Haas committed Jun 29, 2009
    This patch adds support for restricting access to specific targets
    based on initiator IP address, hostname, or subnet. It retains the
    default behavior of allowing access from all initiators.
Commits on Jun 22, 2009
  1. Low: RA: don't show which(1) errors

    Florian Haas committed Jun 22, 2009
Commits on Jun 18, 2009
  1. Medium: RA: portblock: fix invalid exit codes on monitor

    Florian Haas committed Jun 18, 2009
    IptablesStatus() returns 1 ($OCF_ERR_GENERIC) whenever the
    iptables rule is not configured. This breaks probes whenever a
    resource which is expected to be stopped, is in fact stopped.
    
    Also, this patch removes a pointless function wrapper and uses
    $OCF_RESOURCE_INSTANCE for the ha_pseudo_resource state file
    name.
    
    This updated patch also removes another obsolete comment.
Commits on Jun 17, 2009
  1. Dev: RA: iSCSITarget, iSCSILogicalUnit: improvements and forced disco…

    Florian Haas committed Jun 17, 2009
    …nnect
    
    Add a generic command wrapper to log command, their output, and
    their exit code (stolen from lmb's original drbd OCF RA).
    
    Set a system-dependent default implementation based on the
    availability of administration utilities.
    
    Implement forced connection shutdown on target stop (many thanks
    to Lars Ellenberg for the sed wizardry).
Commits on Jun 14, 2009
Commits on Jun 9, 2009
  1. Import the needed pieces of /etc/ha.d/shellfuncs

    Andrew Beekhof committed Jun 9, 2009
  2. Syntax highlighters look for END

    Andrew Beekhof committed Jun 9, 2009
  3. Fix send_arp compilation

    Andrew Beekhof committed Jun 9, 2009
  4. Fix sfex compilation

    Andrew Beekhof committed Jun 9, 2009
  5. Import sfex, send_arp and ocf-tester

    Andrew Beekhof committed Jun 9, 2009