Commits on Dec 18, 2009
Commits on Dec 16, 2009
  1. Low: doc: improve ra2refentry.xsl stylesheet

    Suppress superfluous newlines in crm shell configuration
    example. Add quotes around default values.
    Florian Haas committed Dec 16, 2009
  2. Medium: mark obsolete RAs as deprecated (LF 2244)

    Mark the following RAs as deprecated, add ocf_deprecated
    warning, and ignore_deprecation parameter:
    Florian Haas committed Dec 16, 2009
  3. Low: .ocf-shellfuncs: add ocf_deprecated convenience function (LF 2244)

    Add an ocf_deprecated function, to log a deprecation warning on
    every RA invocation (unless deliberately suppressed).
    ocf_deprecated checks for the truth value of a configurable
    resource parameter (default ignore_deprecation), and if that
    value is set to false (or unset), logs a warning with ocf_log warn.
    Deprecated resource agents should simply invoke ocf_deprecated on
    every action except usage and meta-data, and should also define
    a boolean parameter named ignore_deprecation, defaulting to false.
    A resource agent making use of this feature should also update
    its longdesc and shortdesc to explain _why_ it is deprecated,
    and suggest an alternative.
    Florian Haas committed Dec 16, 2009
Commits on Dec 15, 2009
  1. High: RA: VirtualDomain: fix forceful stop (LF 2283)

    Adopt the following strategy in VirtualDomain_Status during the "stop"
    * If the domain is definitely running, return $OCF_SUCCESS.
    * If the domain is definitely not running, return $OCF_NOT_RUNNING.
    * Under all other circumstances (virsh domstate returning "no state",
      the empty string, or throwing an error), return $OCF_ERR_GENERIC.
    Retain the old behavior when VirtualDomain_Status is invoked from any
    other operation:
    * If the domain is definitely running, return $OCF_SUCCESS.
    * If the domain is definitely not running, return $OCF_NOT_RUNNING.
    * If the domain has "no state", or virsh domstate returns the empty
      string, keep trying until we time out.
    * Under all other circumstances, return $OCF_ERR_GENERIC.
    Then inside VirtualDomain_Stop, behave as follows:
    * If OCF_RESKEY_force_stop is true, skip immediately to forced
      shutdown (destroy).
    * Otherwise, try a graceful shutdown first, waiting for it to complete
      for timeout minus five seconds, looping on VirtualDomain_Status.
      - If at any time VirtualDomain_Status returns something other than
        $OCF_SUCCESS or $OCF_NOT_RUNNING; bail out and skip to forced
      - If VirtualDomain_Status returns $OCF_NOT_RUNNING (indicating
        graceful shutdown having succeeded), return $OCF_SUCCESS
      - While VirtualDomain_Status returns $OCF_SUCCESS, sleep and
    The downside of this behavior is that if at any time during stop
    libvirtd (or the virtualization layer beneath) misbehaves, we don't
    get graceful shutdown. But there seems to be no way to fix that, and
    at the same time making sure stop always succeeds.
    Florian Haas committed Dec 15, 2009
Commits on Dec 12, 2009
Commits on Dec 11, 2009
  1. Low: build: fix docdir for autotools versions that do not support it …

    * * *
    spec fix
    extra : rebase_source : b258792f18a02f7c76a19c3d7b0e615541dfc83b
    Florian Haas committed Dec 11, 2009
  2. Dev: jboss: refine argument processing (LF 2241)

    NAKAHIRA Kazutomo committed Dec 11, 2009
Commits on Dec 10, 2009
  1. Low: mysql: fix wrong parameter name in comment (thanks to…

    … (LF 2264)
    dmuhamedagic committed Dec 10, 2009
  2. Low: build/doc: add BuildRequires for XML toolchain to RPM spec

    Autotools tarballs have the man pages in $(EXTRA_DIST), so RPMs built
    from those tarballs should not need xsltproc or the DocBook DTDs. To
    enable building directly from a hg archive, however, include libxslt,
    the DocBook DTD package, and the DocBook stylesheet package in the
    BuildRequires list.
    extra : rebase_source : 518e2895f1f4daa2d8a19cdd3802827cd4bccae5
    Florian Haas committed Dec 10, 2009
  3. Low: doc: highlight defaults in ra2refentry.xsl

    extra : rebase_source : db3cc57c1ba7be2de3c121381fa112f7f6a4f261
    Florian Haas committed Dec 10, 2009
  4. High: proftpd: new resource agent

    Achim Stumpf committed Dec 10, 2009
  5. Dev: build: include README.webapps properly, dtd target directory, etc

    - ra-api-1.dtd goes to /usr/share/heartbeat
    - README.webapps included as doc
    - add COPYING and AUTHORS
    diff -r e13565f0ea8a doc/
    --- a/doc/	Wed Dec 09 16:33:15 2009 +0100
    +++ b/doc/	Thu Dec 10 03:21:59 2009 +0100
    @@ -36,10 +36,10 @@
     CLEANFILES              = $(man_MANS) $(xmlfiles) metadata-*.xml
     # TODO: add README and license files
    -doc_DATA		= README.webapps
    +doc_DATA		=
     man_MANS		=
    -EXTRA_DIST 		= $(man_MANS) $(doc_DATA)
    +EXTRA_DIST 		= $(man_MANS) $(doc_DATA) README.webapps
     # OCF_ROOT=. is necessary due to a sanity check in .ocf-shellfuncs
     # (which tests whether $OCF_ROOT points to a directory
    diff -r e13565f0ea8a heartbeat/
    --- a/heartbeat/	Wed Dec 09 16:33:15 2009 +0100
    +++ b/heartbeat/	Thu Dec 10 03:21:59 2009 +0100
    @@ -24,7 +24,7 @@
     ocfdir		        = $(OCF_RA_DIR)/heartbeat
    -dtddir			= $(datadir)/$(PACKAGE)
    +dtddir			= $(datadir)/heartbeat
     dtd_SCRIPTS		= ra-api-1.dtd
     if USE_IPV6ADDR
    diff -r e13565f0ea8a resource-agents.spec
    --- a/resource-agents.spec	Wed Dec 09 16:33:15 2009 +0100
    +++ b/resource-agents.spec	Thu Dec 10 03:21:59 2009 +0100
    @@ -156,10 +156,11 @@
    -%dir %{_datadir}/resource-agents
    -%doc %{_datadir}/resource-agents/ra-api-1.dtd
    -%doc %{_docdir}/resource-agents/README.webapps
    +%doc AUTHORS
    +%doc COPYING
    +%doc %{_datadir}/heartbeat/ra-api-1.dtd
     %doc %{_mandir}/man7/*.7*
    +%doc doc/README.webapps
     # For compatability with pre-existing agents
     %dir %{_libdir}/heartbeat
    dmuhamedagic committed Dec 10, 2009
Commits on Dec 9, 2009
  1. Low: doc: convert man pages to DocBook 4.4 so they build nicely on SL…

    …ES 10 (LF 2258)
    Florian Haas committed Dec 9, 2009
  2. Low: doc: add CTDB to list of autogenerated man pages (really, this t…

    …ime) (LF 2256)
    Previous changeset a919473fb232 just contained a Makefile
    reorganization to make it easier to follow. _This_ changeset really
    adds ocf_heartbeat_CTDB.7 to the list of autogenerated man pages.
    Florian Haas committed Dec 9, 2009
Commits on Dec 8, 2009
  1. Dev: ocf-shellfuncs: reduce ocf_is_probe and protect variables

    - it's enough to do test ..., the return code will be properly
    - if the RA is invoked outside of cluster (ocf-tester, etc), some
      variables may not be set
    dmuhamedagic committed Dec 8, 2009
  2. Low: CTDB: fix trivial bashisms

    Replace two instances of "[ $foo == $bar ]" with "[ $foo -eq $bar ]".
    Florian Haas committed Dec 8, 2009
  3. Medium: CTDB: introduce OCF_FUNCTIONS_DIR, allow it to be overridden …

    Fixes bug LF 2239 for the newly added CTDB RA.
    Florian Haas committed Dec 8, 2009
Commits on Dec 7, 2009
  1. High: apache: monitor operation of depth 10 for web applications (LF …

    Usage is explained in the README file.
    Important changes supporting this feature:
    - support for curl(1)
    - the new parameters:
    - add "--no-proxy --bind-address=" to wget options
    Also some code cleanup.
    dmuhamedagic committed Dec 7, 2009
Commits on Nov 30, 2009
  1. Medium: RA: Route: improve validate (LF 2232)

    No longer exit with $OCF_ERR_INSTALLED during probes, if
    configured source or gateway IP addresses are not present.
    Florian Haas committed Nov 30, 2009