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 1272592 - clufter add extra internal attribute into resulting cib.xml when converting vm resource
Summary: clufter add extra internal attribute into resulting cib.xml when converting v...
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 20:11 UTC by Miroslav Lisik
Modified: 2016-10-11 19:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
ccs2pcs conversion now does not take undeployed (contained in <resources> and not referenced elsewhere) into account and is more careful about carrying about parent service group auxiliary reference for further processing.
Clone Of:
Environment:
Last Closed: 2016-10-10 12:41:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
configuration file cluster.conf with vm resource (329 bytes, text/plain)
2015-10-16 20:11 UTC, Miroslav Lisik
no flags Details

Description Miroslav Lisik 2015-10-16 20:11:45 UTC
Created attachment 1083801 [details]
configuration file cluster.conf with vm resource

Description of problem:
clufter add extra internal attribute into resulting cib.xml when converting vm resource

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

How reproducible:
always

Steps to Reproduce:

1. Convert attached configuration file with vm resource using clufter.
2. Check the meta attribute of the converted vm resource.

Actual results:

The meta attribute of name 'rgmanager-service' is present in resulting cib.xml
<meta_attributes id="RESOURCE-vm-lxc-01-META">
          <nvpair id="RESOURCE-vm-lxc-01-META-service" name="rgmanager-service" value="RM-"/>
</meta_attributes>

Expected results:

The metta attribude of name 'rgmanager-service' is not present in resulting cib.xml.

Comment 1 Jan Pokorný [poki] 2016-10-10 12:41:24 UTC
Thanks for the report.

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

Comment 2 Jan Pokorný [poki] 2016-10-10 13:14:43 UTC
Note this is addressed in RHEL 7.3 through rebase ([bug 1343661]).

Comment 3 Jan Pokorný [poki] 2016-10-10 13:22:18 UTC
Note this is, even earlier, addressed in RHEL 6.8 through rebase
([bug 1269964]).

Comment 4 Miroslav Lisik 2016-10-10 15:58:19 UTC
[root@virt-101 ~]# rpm -q clufter-cli
clufter-cli-0.59.5-2.el7.noarch
[root@virt-101 ~]# cat cluster.conf 
<?xml version="1.0"?>
<cluster name="test" config_version="1">

  <clusternodes>
  </clusternodes>

  <fencedevices>
  </fencedevices>

  <rm>
    <failoverdomains/>
    <vm autostart="1" hypervisor_uri="lxc:///" name="lxc-01" path="/etc/libvirt/lxc" recovery="restart" xmlfile="/etc/libvirt/lxc/lxc-01.xml"/>
  </rm>
</cluster>
[root@virt-101 ~]# clufter ccs2pcs-flatiron --input=cluster.conf --cib=cib.xml
[ccs-version-bump     ] output: cluster-f799f74b.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.xml
[root@virt-101 ~]# sed -n "/<meta_attributes/,/<\/meta_attributes>/p" cib.xml

> There is no meta attribute of name 'rgmanager-service' present in resulting cib.xml


Resulting cib file:

[root@virt-101 ~]# cat cib.xml 
<cib validate-with="pacemaker-1.2" admin_epoch="0" epoch="0" num_updates="0" update-client="clufter 0.59.5">
  <configuration>
    <crm_config>
      <!-- NOTE: no fencing is configured hence stonith is disabled; please note, however, that this is suboptimal, especially in shared storage scenarios -->
      <cluster_property_set id="CRMCONFIG-bootstrap">
        <nvpair id="CRMCONFIG-bootstrap-STONITH-ENABLED" name="stonith-enabled" value="false"/>
      </cluster_property_set>
    </crm_config>
    <nodes/>
    <resources>
      <!-- FENCING/STONITH (+ POSSIBLY TOPOLOGY BELOW) -->
      <!-- RESOURCES+ARRANGEMENT -->
      <primitive id="RESOURCE-vm-lxc_01" description="natively converted from vm RA" class="ocf" provider="heartbeat" type="VirtualDomain">
        <instance_attributes id="RESOURCE-vm-lxc_01-ATTRS">
          <nvpair id="RESOURCE-vm-lxc_01-ATTRS-config" name="config" value="/etc/libvirt/lxc/lxc-01.xml"/>
          <nvpair id="RESOURCE-vm-lxc_01-ATTRS-hypervisor" name="hypervisor" value="lxc:///"/>
        </instance_attributes>
        <operations>
          <op id="RESOURCE-vm-lxc_01-OP-stop" name="stop" interval="0" timeout="120s"/>
          <op id="RESOURCE-vm-lxc_01-OP-monitor" name="monitor" interval="30s"/>
        </operations>
      </primitive>
    </resources>
    <constraints/>
  </configuration>
  <status/>
</cib>

Comment 5 Miroslav Lisik 2016-10-10 16:12:29 UTC
The same result for ccs2pcs-needle variant of command.


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