Bug 1371329

Summary: Controller node replacement fails in second heat stack-update
Product: Red Hat OpenStack Reporter: PURANDHAR SAIRAM MANNIDI <pmannidi>
Component: openstack-puppet-modulesAssignee: Lukas Bezdicka <lbezdick>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.0 (Kilo)CC: ipetrova, jguiditt, jthomas, lbezdick, pcaruana, rhos-flags, scorcora, srevivo
Target Milestone: asyncKeywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-puppet-modules-2015.1.8-52.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-29 19:11:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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