Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1611538 - The update of pcmk resource with location constraint fails when deep_compare function is enabled
The update of pcmk resource with location constraint fails when deep_compare ...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-pacemaker (Show other bugs)
13.0 (Queens)
Unspecified Unspecified
high Severity high
: z2
: 13.0 (Queens)
Assigned To: Michele Baldessari
Marian Krcmarik
: Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-02 06:03 EDT by Marian Krcmarik
Modified: 2018-08-29 12:40 EDT (History)
6 users (show)

See Also:
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)
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-08-29 12:39:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 588922 None None None 2018-08-06 08:37 EDT
Red Hat Product Errata RHBA-2018:2574 None None None 2018-08-29 12:40 EDT

  None (edit)
Description Marian Krcmarik 2018-08-02 06:03:26 EDT
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 04:06:33 EDT
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 12:39:25 EDT
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.