Hide Forgot
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
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.
Upstream soom to have gone with different patch as fix for this: https://github.com/puppetlabs/puppetlabs-mongodb/commit/4b99ab2ac49b64e4d5979d293d6a2d1fd65dac14
Verified on: openstack-puppet-modules-2015.1.8-53.el7ost.noarch
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