Bug 1371329 - Controller node replacement fails in second heat stack-update
Summary: Controller node replacement fails in second heat stack-update
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-puppet-modules
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: async
: 7.0 (Kilo)
Assignee: Lukas Bezdicka
QA Contact: Marius Cornea
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-29 23:46 UTC by PURANDHAR SAIRAM MANNIDI
Modified: 2019-12-16 06:32 UTC (History)
8 users (show)

Fixed In Version: openstack-puppet-modules-2015.1.8-52.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-29 19:11:54 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2586601 0 None None None 2016-08-30 07:32:17 UTC
Red Hat Product Errata RHBA-2016:1979 0 normal SHIPPED_LIVE openstack-packstack and openstack-puppet-modules bug fix advisory 2016-09-29 23:06:18 UTC

Description PURANDHAR SAIRAM MANNIDI 2016-08-29 23:46:03 UTC
Description of problem:
While executing controller node replacement steps as mentioned in the Redhat documentation, the heat stack update fails at the end of 8.4.3 in 
'https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html-single/Director_Installation_and_Usage/index.html#sect-Replacing_Controller_Nodes' with error

Error: /Stage[main]/Main/Mongodb_replset[tripleo]: Could not evaluate: 757: unexpected token at '{

Version-Release number of selected component (if applicable):
openstack-puppet-modules-2015.1.8-51.el7ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. Follow the steps in 'https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html-single/Director_Installation_and_Usage/index.html#sect-Replacing_Controller_Nodes'

Actual results:
Error: /Stage[main]/Main/Mongodb_replset[tripleo]: Could not evaluate: 757: unexpected token at '{

Expected results:
Overcloud should be Updated without any issues.

Additional info:

Fixed after applying following patch
https://github.com/puppetlabs/puppetlabs-mongodb/commit/eee681e5e241375808a125ce9f0dd70221265c68

Comment 2 Pablo Caruana 2016-08-30 12:32:10 UTC
Workaround is really easy one as only missing this line
+    output.gsub!(/ObjectId\((.+?)\)/, '[\1]')  as described at
https://access.redhat.com/site/solutions/2586601

Now for the long run we need to incorporate this at the regular /usr/share/openstack-puppet/modules/mongodb/lib/puppet/provider/mongodb_replset/mongo.rb provided by openstack-puppet-modules rpm.

Comment 3 Lukas Bezdicka 2016-08-30 13:51:30 UTC
Upstream soom to have gone with different patch as fix for this:

https://github.com/puppetlabs/puppetlabs-mongodb/commit/4b99ab2ac49b64e4d5979d293d6a2d1fd65dac14

Comment 10 Marius Cornea 2016-09-14 21:05:22 UTC
Verified on: openstack-puppet-modules-2015.1.8-53.el7ost.noarch

Comment 12 errata-xmlrpc 2016-09-29 19:11:54 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://rhn.redhat.com/errata/RHBA-2016-1979.html


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