Bug 1611538 - The update of pcmk resource with location constraint fails when deep_compare function is enabled
Summary: The update of pcmk resource with location constraint fails when deep_compare ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-pacemaker
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z2
: 13.0 (Queens)
Assignee: Michele Baldessari
QA Contact: Marian Krcmarik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-02 10:03 UTC by Marian Krcmarik
Modified: 2018-12-24 11:40 UTC (History)
6 users (show)

Fixed In Version: puppet-pacemaker-0.7.2-0.20180423212251.el7ost
Doc Type: No Doc Update
Doc Text:
No doc update needed as this was a bug introduced in z2 and fixed in z2 (and the feature is currently disabled atm, although we do plan to enable it in the future)
Clone Of:
Environment:
Last Closed: 2018-08-29 16:39:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 588922 0 None MERGED Deep_compare fix with location constraints and better debugging 2021-02-01 17:06:19 UTC
Red Hat Product Errata RHBA-2018:2574 0 None None None 2018-08-29 16:40:05 UTC

Description Marian Krcmarik 2018-08-02 10:03:26 UTC
Description of problem:
If an update of pcmk bundle resource is being triggered during overcloud redeploy with some bundle resource config change and that resource has some existing location constraints (such as galera, rabbit, redis, ...) then overcloud update fails on something which looks like:
    \"+ puppet apply --debug --verbose --detailed-exitcodes --summarize --color=false --modulepath /etc/puppet/modules:/opt/stack/puppet-modules:/usr/shar
    e/openstack-puppet/modules --tags file,file_line,concat,augeas,pacemaker::resource::bundle,pacemaker::property,pacemaker::resource::ocf,pacemaker::constraint:
    :order,pacemaker::constraint::colocation,rabbitmq_policy,rabbitmq_user,rabbitmq_ready -e 'include ::tripleo::profile::base::pacemaker;include ::tripleo::profi
    le::pacemaker::rabbitmq_bundle'\",
            \"Failed to get D-Bus connection: Operation not permitted\",
            \"Warning: Undefined variable 'deploy_config_name'; \",
            \"   (file & line not available)\",
            \"Error: duplicate constraint already exists, use --force to override\",
            \"  Constraint: location-rabbitmq-bundle\",
            \"    Rule: score=0  (id:location-rabbitmq-bundle-rule)\",
            \"      Expression: rabbitmq-role eq true  (id:location-rabbitmq-bundle-rule-expr)\",
            \"Error: constraint location rabbitmq-bundle rule resource-discovery=exclusive score=0 rabbitmq-role eq true returned error. This should never happen.\",
            \"Error: /Stage[main]/Tripleo::Profile::Pacemaker::Rabbitmq_bundle/Pacemaker::Resource::Ocf[rabbitmq]/Pcmk_resource[rabbitmq]/ensure: change from absent to present failed: constraint location rabbitmq-bundle rule resource-discovery=exclusive score=0 rabbitmq-role eq true returned error. This should never happen.\",

It seems as location constraint is not being deleted before creating it again within resource update procedure which fails .

Version-Release number of selected component (if applicable):
puppet-pacemaker-0.7.2-0.20180423212250.el7ost

How reproducible:
Always

Steps to Reproduce:
1. Deploy OSP13
2. Redeploy with following configuration change:
parameter_defaults:
  RabbitHAQueues: 0
  ExtraConfig:
    pacemaker::resource::bundle::deep_compare: true
    pacemaker::resource::ip::deep_compare: true
    pacemaker::resource::ocf::deep_compare: true

Actual results:
Overcloud Update fails

Expected results:
Successful redeploy with config change of rabbitmq resource (Ha policy all to exact)

Additional info:

Comment 9 Joanne O'Flynn 2018-08-15 08:06:33 UTC
This bug is marked for inclusion in the errata but does not currently contain draft documentation text. To ensure the timely release of this advisory please provide draft documentation text for this bug as soon as possible.

If you do not think this bug requires errata documentation, set the requires_doc_text flag to "-".


To add draft documentation text:

* Select the documentation type from the "Doc Type" drop down field.

* A template will be provided in the "Doc Text" field based on the "Doc Type" value selected. Enter draft text in the "Doc Text" field.

Comment 11 errata-xmlrpc 2018-08-29 16:39:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2574


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