Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
AoEtarget.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
AudibleAlarm This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
CTDB.in CTDB: fix OCF_RESKEY_ctdb_recovery_lock validation (bsc#1088692) Aug 1, 2018
ClusterMon This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
Delay This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
Dummy This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
EvmsSCC This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
Evmsd This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
Filesystem Filesystem: Canonicalize mountpoint symlinks Sep 3, 2018
ICP This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
IPaddr Low: Update outdated mailing list/wiki references Nov 30, 2016
IPaddr2 Mid: IPaddr2: Change return code. Jul 6, 2018
IPsrcaddr This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
IPv6addr.c Fix spelling errors reported by lintian May 15, 2018
IPv6addr_utils.c High: IPv6addr: Split send_ua utility out of IPv6addr.c source so it … Nov 4, 2013
LVM Low: Refactor systemd detection Feb 20, 2018
LVM-activate LVM-activate: return OCF_ERR_CONFIGURED for incorrect vg_access_mode Aug 22, 2018
LinuxSCSI This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
MailTo This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
Makefile.am Add gcp-pd-move python script Sep 17, 2018
ManageRAID.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
ManageVE.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
NodeUtilization This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
Pure-FTPd Dev: Pure-FTPd: fix spacing Dec 10, 2013
README Dev: ocf-shellfuncs: use $HA_VARLIB as default destination for trace … Feb 7, 2013
README.galera galera: don't bootstrap from a node with no grastate.dat when possible Mar 15, 2016
README.mariadb.md Implement GTID/semi-sync based MariaDB Master/Slave resource-agent Jan 9, 2018
Raid1 Fix spelling errors reported by lintian May 15, 2018
Route Fix spelling errors reported by lintian May 15, 2018
SAPDatabase This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
SAPInstance timeout/interval: add "s" suffix where it's missing Sep 4, 2018
SendArp This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
ServeRAID This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
SphinxSearchDaemon This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
Squid.in Medium: Squid: Use ss if netstat is not available Sep 5, 2018
Stateful Fix spelling errors reported by lintian May 15, 2018
SysInfo.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
VIPArip Low: Update outdated mailing list/wiki references Nov 30, 2016
VirtualDomain VirtualDomain: add stateless support Jul 3, 2018
WAS This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
WAS6 This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
WinPopup This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
Xen Xen: check autoset attributes before calling Xen_Update_Utilization Sep 17, 2018
Xinetd This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
ZFS ZFS: Update style to match other agents Aug 10, 2017
aliyun-vpc-move-ip Merge pull request #1209 from oalbrigt/metadata-s-suffix Sep 5, 2018
anything This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
apache This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
apache-conf.sh Low: Update outdated mailing list/wiki references Nov 30, 2016
asterisk This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
aws-vpc-move-ip Merge pull request #1206 from diegoakechi/fixes-aws-vpc-move-ip Sep 3, 2018
aws-vpc-route53.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
awseip awseip: fix allocation_id not found error Apr 30, 2018
awsvip awsvip: update year of Copyright declaration Apr 22, 2018
azure-lb This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
clvm.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
conntrackd.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
db2 Fix spelling errors reported by lintian May 15, 2018
dhcpd This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
dnsupdate.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
docker Fix spelling errors reported by lintian May 15, 2018
eDir88.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
ethmonitor Fix spelling errors reported by lintian May 15, 2018
exportfs Low: exportfs: Fix inconsistent whitespace in exportfs_monitor Mar 22, 2018
findif.sh findif: only match lines containing netmasks Aug 1, 2018
fio.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
galera Use ${HA_SBIN_DIR} on all the command invokation Sep 17, 2018
garbd Medium: garbd: Use netstat or ss Sep 5, 2018
gcp-pd-move.in Add gcp-pd-move python script Sep 17, 2018
gcp-vpc-move-ip.in gcp-vpc-move-ip.in: add deprecation message Jul 19, 2018
gcp-vpc-move-route.in gcp-vpc-move-route: use Python library Jul 23, 2018
gcp-vpc-move-vip.in timeout/interval: add "s" suffix where it's missing Sep 4, 2018
http-mon.sh Low: Update outdated mailing list/wiki references Nov 30, 2016
iSCSILogicalUnit.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
iSCSITarget.in enable chap authentication for lio-t iscsi target implementation. if … Apr 4, 2018
ids This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
iface-bridge Low: iface-bridge add new agent to manage bridge interfaces as HA res… Sep 24, 2013
iface-vlan Fix spelling errors reported by lintian May 15, 2018
ipsec Remove output redirection to file in /tmp Aug 13, 2018
iscsi This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
jboss This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
jira.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
kamailio.in Fix spelling errors reported by lintian May 15, 2018
lvm-clvm.sh Dev: LVM: put VG protection mechanisms into separate files Oct 31, 2017
lvm-plain.sh Dev: LVM: put VG protection mechanisms into separate files Oct 31, 2017
lvm-tag.sh LVM: fix missing dash Aug 13, 2018
lvmlockd lvmlockd: add cmirrord support Aug 17, 2018
lxc.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
lxd-info.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
machine-info.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
mariadb.in timeout/interval: add "s" suffix where it's missing Sep 4, 2018
metadata.rng Add metadata verification to CI and update metadata to not fail Jan 6, 2017
minio This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
mpathpersist.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
mysql Medium: mysql: Remove obsolete DEBUG_LOG functionality (bsc#1021689) Aug 15, 2018
mysql-common.sh Low: mysql: fix missing variables Dec 7, 2015
mysql-proxy Medium: mysql-proxy: Fix incorrect conditional reported by shellcheck Nov 2, 2016
nagios This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
named This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
nfsnotify.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
nfsserver This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
nfsserver-redhat.sh Medium: nfsserver: do redhat specific stuff on redhat Dec 22, 2015
nginx This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
ocf-binaries.in ocf-binaries: use detected SSH-path Apr 20, 2018
ocf-directories.in ocf_log: use same log format as pacemaker Mar 1, 2017
ocf-distro Medium: nfsserver: do redhat specific stuff on redhat Dec 22, 2015
ocf-rarun Medium: ocf-rarun: replace error log messages with calls to ocf_exit_… Apr 10, 2015
ocf-returncodes Dev: add OCF_ROOT/lib/heartbeat directory Feb 9, 2011
ocf-shellfuncs.in Low: VirtualDomain: fix warning messages in log Mar 6, 2018
ocf.py Python: add logging.basicConfig() to support background logging Jul 23, 2018
openstack-cinder-volume Layout updates May 11, 2018
openstack-floating-ip Update openstack-floating-ip May 15, 2018
openstack-info Update openstack-info May 15, 2018
ora-common.sh Low: Update outdated mailing list/wiki references Nov 30, 2016
oraasm This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
oracle This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
oralsnr This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
ovsmonitor Fix spelling errors reported by lintian May 15, 2018
pgagent This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
pgsql pgsql: Avoid the change of /dev/null to postgres owner/group Aug 31, 2018
pingd This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
podman Initial podman support Aug 21, 2018
portblock Medium: portblock: Use ss or netstat (partial) Sep 5, 2018
postfix Low: postfix: data_dir loop could only ever run once Nov 15, 2016
pound This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
proftpd Dev: add OCF_ROOT/lib/heartbeat directory Feb 9, 2011
ra-api-1.dtd Low: ra dtd: add the time type Nov 16, 2009
rabbitmq-cluster rabbitmq-cluster: get cluster status from mnesia during monitor Aug 29, 2018
redis.in Do not call ocf_attribute_target in the meta-data function Jul 18, 2018
rkt This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
rsyncd High: Exit reason string support updates Aug 19, 2014
rsyslog.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
sapdb-nosha.sh Low: s/ist/is typo fix Sep 16, 2015
sapdb.sh Add hdbnameserver to monitor services Jul 31, 2017
scsi2reservation This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
send_ua.c High: IPv6addr: Split send_ua utility out of IPv6addr.c source so it … Nov 4, 2013
sfex Dev: add OCF_ROOT/lib/heartbeat directory Feb 9, 2011
sg_persist.in Cosmetic changes. Apr 16, 2018
shellfuncs.in Low: fix usage of HA_VARLOCK variable Apr 23, 2016
slapd.in Fix spelling errors reported by lintian May 15, 2018
sybaseASE.in timeout/interval: add "s" suffix where it's missing Sep 4, 2018
symlink This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
syslog-ng.in syslog-ng: fix control file issue Apr 13, 2018
tomcat Low: Refactor systemd detection Feb 20, 2018
varnish This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
vmware This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018
vsftpd.in CI: fixes for bash path, strncpy in GCC 8 and missing docbook-style-xsl Mar 23, 2018
zabbixserver This patch introduces consistency by adding an explicit trailing "s" Jan 31, 2018

README

The OCF RA shared code directory

If an RA is too big to be comfortably maintained, split it into
several source files. Obviosuly, if two or more RAs share some
code, move that code out to a file which can be shared.

These files will be installed in $OCF_ROOT/lib/heartbeat with
permissions 644.

Naming practice

Use names such as <RA>.sh or <RA>-check.sh or anything-else.sh
where "anything-else" should be related to both the RA and the
code it contains. By adding extension (.sh) it is going to be
easier to notice that these files are not complete resource
agents.

For instance, oracle and oralsnr RA can both use code in
ora-common.sh.

Of course, if the RA is implemented in another programming
language, use the appropriate extension.

RA tracing

RA tracing may be turned on by setting OCF_TRACE_RA. The trace
output will be saved to OCF_TRACE_FILE, if set, or by default to

  $HA_VARLIB/trace_ra/<type>/<id>.<action>.<timestamp>

e.g. $HA_VARLIB/trace_ra/oracle/db.start.2012-11-27.08:37:08

HA_VARLIB is typically set to /var/lib/heartbeat.

OCF_TRACE_FILE can be set to a path or file descriptor:

- FD (small integer [3-9]) in that case it is up to the callers
  to capture output; the FD _must_ be open for writing

- absolute path

NB: FD 9 may be used for tracing with bash >= v4 in case
OCF_TRACE_FILE is set to a path.