RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1272570 - clufter does not add resource operations (monitor, start) to converted resource into cib.xml
Summary: clufter does not add resource operations (monitor, start) to converted resour...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: clufter
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Pokorný [poki]
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1269964 1343661
TreeView+ depends on / blocked
 
Reported: 2015-10-16 19:03 UTC by Miroslav Lisik
Modified: 2016-10-11 19:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
ccs2pcs conversion now properly propagates or adds monitor action.
Clone Of:
Environment:
Last Closed: 2015-12-16 17:50:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
configuration file cluster.conf with apache resource (533 bytes, text/plain)
2015-10-16 19:03 UTC, Miroslav Lisik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1269964 0 high CLOSED Rebase clufter component [RHEL 6.8] 2021-02-22 00:41:40 UTC

Internal Links: 1269964

Description Miroslav Lisik 2015-10-16 19:03:06 UTC
Created attachment 1083797 [details]
configuration file cluster.conf with apache resource

Description of problem:
Converted resource has no start/monitor operations in cib.xml.

Version-Release number of selected component (if applicable):
clufter-cli-0.50.4-1.el7.noarch

How reproducible:
always


Steps to Reproduce:

1. Convert attached configuration file with apache resource using clufter. 
2. Check the resulting cib.xml file for operations.

Actual results:

The resulting cib file contains only stop operation:
<operations>
    <op id="RESOURCE-apache-webserver-OP-stop" name="stop" interval="0" timeout="0s"/>
</operations>

Expected results:

The resulting cib file contains start, stop and monitor operations:
<operations>
          <op id="webserver-start-interval-0s" interval="0s" name="start" timeout="40s"/>
          <op id="webserver-stop-interval-0s" interval="0s" name="stop" timeout="60s"/>
          <op id="webserver-monitor-interval-10" interval="10" name="monitor" timeout="20s"/>
</operations>


Additional info:
http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#_resource_operations
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/High_Availability_Add-On_Reference/index.html#s1-resourceoperate-HAAR

Comment 2 Jan Pokorný [poki] 2015-12-16 17:50:47 UTC
Thanks for the report.

Should be fixed upstream as of
https://pagure.io/clufter/db80d13dd3dffbcda6a4c5aac2c9c7e5605efac4

This is planned for new (soonish) release.

Comment 3 Jan Pokorný [poki] 2016-10-10 13:27:25 UTC
Note this is addressed in RHEL 6.8 through rebase ([bug 1269964])
+ in RHEL 7.3 also through rebase ([bug 1343661]).

Comment 4 Miroslav Lisik 2016-10-10 16:35:08 UTC
[root@virt-101 ~]# rpm -q clufter-cli
clufter-cli-0.59.5-2.el7.noarch

ccs2pcs-flatirion/ccs2pcs-needle for apache and ip resource:

[root@virt-101 ~]# cat cluster-apache.conf 
<?xml version="1.0"?>
<cluster name="test" config_version="1">

  <clusternodes>
  </clusternodes>

  <fencedevices>
  </fencedevices>

  <rm>
   <failoverdomains/>
   <resources>
	 <ip address="10.34.71.228/23" monitor_link="yes" sleeptime="10"/>
	 <apache config_file="conf/httpd.conf" name="webserver" server_root="/etc/httpd" shutdown_wait="0"/>
   </resources>
   <service autostart="1" name="webserver" recovery="relocate">
	 <ip ref="10.34.71.228/23"/>
	 <apache ref="webserver"/>
   </service>
  </rm>
</cluster>
[root@virt-101 ~]# clufter ccs2pcs-needle --input=cluster-apache.conf --cib=cib-apache.xml
[ccs2needlexml        ] xslt: WARNING: secret key used by corosync for encryption/integrity checking is, as a measure to prevent from dropping these security features entirely, stored directly in the main configuration file (totem/key), possibly readable by arbitrary system-local user
[xml2simpleconfig     ] output: corosync-a7363234.conf
[cibcompact2cib       ] xslt: NOTE: no fencing is configured hence stonith is disabled; please note, however, that this is suboptimal, especially in shared storage scenarios
[cib2cibfinal         ] output: cib-apache.xml
[root@virt-101 ~]# clufter ccs2pcs-flatiron --input=cluster-apache.conf --cib=cib-apache-flatiron.xml
[ccs-version-bump     ] output: cluster-a7363234.conf
[cibcompact2cib       ] xslt: NOTE: no fencing is configured hence stonith is disabled; please note, however, that this is suboptimal, especially in shared storage scenarios
[cib2cibfinal         ] output: cib-apache-flatiron.xml
[root@virt-101 ~]# diff -ur cib-apache.xml cib-apache-flatiron.xml 
[root@virt-101 ~]# grep monitor cib-apache.xml 
			<op id="RESOURCE-ip-10.34.71.228_23-OP-monitor" name="monitor" interval="20s"/>
			<op id="RESOURCE-apache-webserver-OP-monitor" name="monitor" interval="60s"/>

> OK. Both resources have a monitor operation.

ccs2pcs-flatirion/ccs2pcs-needle for mysql resource:

[root@virt-101 ~]# cat cluster-mysql.conf 
<?xml version="1.0"?>
<cluster name="test" config_version="1">

  <clusternodes>
  </clusternodes>

  <fencedevices>
  </fencedevices>

  <rm>
	<failoverdomains/>
	<resources/>
	<service name="mysql" recovery="relocate">
		<mysql config_file="/etc/oh-my.cnf" listen_address="0.0.0.0" mysqld_options="--verbose" name="oh-my" shutdown_wait="34" startup_wait="12"/>
	</service>
  </rm>
</cluster>
[root@virt-101 ~]# clufter ccs2pcs-needle --input=cluster-mysql.conf --cib=cib-mysql.xml
[ccs2needlexml        ] xslt: WARNING: secret key used by corosync for encryption/integrity checking is, as a measure to prevent from dropping these security features entirely, stored directly in the main configuration file (totem/key), possibly readable by arbitrary system-local user
[xml2simpleconfig     ] output: corosync-fa470f0b.conf
[cibcompact2cib       ] xslt: NOTE: no fencing is configured hence stonith is disabled; please note, however, that this is suboptimal, especially in shared storage scenarios
[cib2cibfinal         ] output: cib-mysql.xml
[root@virt-101 ~]# clufter ccs2pcs-flatiron --input=cluster-mysql.conf --cib=cib-mysql-flatiron.xml
[ccs-version-bump     ] output: cluster-fa470f0b.conf
[cibcompact2cib       ] xslt: NOTE: no fencing is configured hence stonith is disabled; please note, however, that this is suboptimal, especially in shared storage scenarios
[cib2cibfinal         ] output: cib-mysql-flatiron.xml
[root@virt-101 ~]# diff -ur cib-mysql.xml cib-mysql-flatiron.xml 
[root@virt-101 ~]# grep monitor cib-mysql.xml 
			<op id="RESOURCE-mysql-oh_my-OP-monitor" name="monitor" interval="60s"/>

> OK. Resource has a monitor operation.


Note You need to log in before you can comment on or make changes to this bug.