[Bug 881792] New: ocf:heartbeat:apache resource agent is broken.
https://bugzilla.novell.com/show_bug.cgi?id=881792 https://bugzilla.novell.com/show_bug.cgi?id=881792#c0 Summary: ocf:heartbeat:apache resource agent is broken. Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: High Availability AssignedTo: lmb@suse.com ReportedBy: carlosturiel@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 In Pacemaker, the resource agent for Apache (ocf:heartbeat:apache) doesn work. I think this agent needs Apache sysV version with the initscript /etc/init.d/apache. It seems with the systemd Apache version is not compatible. Searching for a workaround, I have also tried to configure the apache primitive with systemd:apache and doesn't work. I don't find the way to run Apache with pacemaker. nodo2:~ # crm ra list systemd | grep -e apache -e http nodo2:~ # crm ra list lsb | grep -e apache -e http nodo2:~ # ls -l /etc/init.d/apache2 ls: no se puede acceder a /etc/init.d/apache2: No existe el fichero o el directorio nodo2:~ # systemctl status apache2 apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled) Active: inactive (dead) Reproducible: Always Steps to Reproduce: 1. to create the primitive, nodo2:~ # crm configure primitive WebSite ocf:heartbeat:apache \ params configfile="/etc/apache2/httpd.conf" statusurl="http://localhost/server-status" \ op monitor interval="1min" 2. Try to start the resource, crm resource start apache 3. To see the errors, nodo2:~ # crm_mon -1 Last updated: Sun Jun 8 22:58:54 2014 Last change: Sun Jun 8 22:58:43 2014 by root via cibadmin on nodo2 Stack: corosync Current DC: nodo2 (3232249878) - partition with quorum Version: 1.1.10-1.2-d9bb763 2 Nodes configured 2 Resources configured Online: [ nodo1 nodo2 ] ClusterIP (ocf::heartbeat:IPaddr2): Started nodo1 Failed actions: WebSite_start_0 on (null) 'not configured' (6): call=50, status=complete, last-rc-change='Sun Jun 8 22: 58:43 2014', queued=128ms, exec=0ms WebSite_start_0 on nodo2 'not configured' (6): call=50, status=complete, last-rc-change='Sun Jun 8 22:5 8:43 2014', queued=128ms, exec=0ms 4. Testing with ocf-tester: nodo2:~ # ocf-tester -n WebSite /usr/lib/ocf/resource.d/heartbeat/apache -o configfile="/etc/apache2/httpd.conf" statusurl="http://localhost/server-status" Beginning tests for /usr/lib/ocf/resource.d/heartbeat/apache... * rc=6: Start failed. Did you supply enough options with -o ? ERROR: /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs: line 381: /etc/init.d/apache2: No such file or directory Aborting tests 5 . In the 155 line of the file /usr/lib/ocf/resource.d/heartbeat/apache use the /etc/init.d/apache2 initscript which doesn't exist, 150 validate_default_suse_config() { 151 if [ "$CONFIGFILE" = "$DEFAULT_SUSECONFIG" ] && \ 152 grep -Eq '^Include[[:space:]]+/etc/apache2/sysconfig.d/include.conf' "$CONFIGFI LE" 153 then 154 [ -x "/usr/sbin/a2enmod" ] && ocf_run -q /usr/sbin/a2enmod status 155 ocf_run -q /etc/init.d/apache2 configtest 156 return 157 else 158 return 0 159 fi 160 } 161 162 apache_start() { Actual Results: the apache resource doesn start. Expected Results: Apache running. nodo2:~ # cat /etc/os-release NAME=openSUSE VERSION="13.1 (Bottle)" VERSION_ID="13.1" PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:13.1" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://opensuse.org/" ID_LIKE="suse" nodo2:~ # rpm -qa | grep pacemaker libpacemaker3-1.1.10-1.2.x86_64 pacemaker-1.1.10-1.2.x86_64 pacemaker-cli-1.1.10-1.2.x86_64 nodo2:~ # rpm -qa | grep apache apache2-utils-2.4.6-6.23.1.x86_64 apache2-prefork-2.4.6-6.23.1.x86_64 apache2-2.4.6-6.23.1.x86_64 nodo2:~ # zypper sl --url # | Alias | Nombre | Habilitado | Actualizar | Tipo | URI ---+---------------------------+------------------------------------+------------+------------+--------+------------------------------------------------------------------------------------------- 1 | ha-clustering-Factory | ha-clustering-Factory | Si | Si | rpm-md | http://download.opensuse.org/repositories/network:/ha-clustering:/Factory/op... 2 | openSUSE-13.1-1.10 | openSUSE-13.1-1.10 | Si | No | yast2 | cd:///?devices=/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376,/dev/sr0 3 | openSUSE_13.1-1.10 | openSUSE | Si | No | yast2 | dvd:/// 4 | repo-debug | openSUSE-13.1-Debug | No | Si | NONE | http://download.opensuse.org/debug/distribution/13.1/repo/oss/ 5 | repo-debug-update | openSUSE-13.1-Update-Debug | No | Si | NONE | http://download.opensuse.org/debug/update/13.1/ 6 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No | Si | NONE | http://download.opensuse.org/debug/update/13.1-non-oss/ 7 | repo-non-oss | openSUSE-13.1-Non-Oss | Si | Si | yast2 | http://download.opensuse.org/distribution/13.1/repo/non-oss/ 8 | repo-oss | openSUSE-13.1-Oss | Si | Si | yast2 | http://download.opensuse.org/distribution/13.1/repo/oss/ 9 | repo-source | openSUSE-13.1-Source | No | Si | NONE | http://download.opensuse.org/source/distribution/13.1/repo/oss/ 10 | repo-update | openSUSE-13.1-Update | Si | Si | rpm-md | http://download.opensuse.org/update/13.1/ 11 | repo-update-non-oss | openSUSE-13.1-Update-Non-Oss | Si | Si | rpm-md | http://download.opensuse.org/update/13.1-non-oss/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=881792 https://bugzilla.novell.com/show_bug.cgi?id=881792#c1 Carlos Turiel <carlosturiel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carlosturiel@gmail.com --- Comment #1 from Carlos Turiel <carlosturiel@gmail.com> 2014-06-09 21:16:25 UTC --- The primitive with systemd:apache2 and without monitor parameter works. nodo1:~ # crm configure show node $id="3232249877" nodo1 node $id="3232249878" nodo2 primitive ClusterIP ocf:heartbeat:IPaddr2 \ params ip="10.0.2.120" cidr_netmask="32" \ op monitor interval="30s" primitive WebSite systemd:apache2 primitive vsftpd systemd:vsftpd \ op monitor interval="1min" group ftp ClusterIP vsftpd property $id="cib-bootstrap-options" \ dc-version="1.1.10-1.2-d9bb763" \ cluster-infrastructure="corosync" \ stonith-enabled="false" \ no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \ resource-stickiness="100" op_defaults $id="op-options" \ timeout="240s" nodo1:~ # crm status Last updated: Mon Jun 9 23:08:38 2014 Last change: Mon Jun 9 23:03:06 2014 by root via cibadmin on nodo1 Stack: corosync Current DC: nodo1 (3232249877) - partition with quorum Version: 1.1.10-1.2-d9bb763 2 Nodes configured 3 Resources configured Online: [ nodo1 nodo2 ] WebSite (systemd:apache2): Started nodo1 Resource Group: ftp ClusterIP (ocf::heartbeat:IPaddr2): Started nodo1 vsftpd (systemd:vsftpd): Started nodo1 nodo1:~ # ps -ef | grep http root 17346 1 0 23:03 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start wwwrun 17363 17346 0 23:03 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start wwwrun 17364 17346 0 23:03 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=881792 https://bugzilla.novell.com/show_bug.cgi?id=881792#c2 Андрей Кувшинов <m407@mail.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m407@mail.ru --- Comment #2 from Андрей Кувшинов <m407@mail.ru> 2014-08-01 14:56:45 UTC --- Confirm this behaviour. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=881792 https://bugzilla.novell.com/show_bug.cgi?id=881792#c Lars Marowsky-Bree <lmb@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|lmb@suse.com |kgronlund@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=881792 https://bugzilla.novell.com/show_bug.cgi?id=881792#c3 Kristoffer Gronlund <kgronlund@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |carlosturiel@gmail.com --- Comment #3 from Kristoffer Gronlund <kgronlund@suse.com> 2014-08-14 11:33:20 UTC --- This should be fixed with the version of resource-agents found in network:ha-clustering:Factory, please give that a try. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com