Bug 1162686 - ambari_config_update uncorrectly modify values in key
Summary: ambari_config_update uncorrectly modify values in key
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhs-hadoop-install
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHGS 3.0.4
Assignee: Jeff Vance
QA Contact: Martin Kudlej
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-11 13:11 UTC by Martin Kudlej
Modified: 2015-05-13 17:53 UTC (History)
5 users (show)

Fixed In Version: 2.37-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-31 10:18:30 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:0761 0 normal SHIPPED_LIVE Red Hat Storage Server 3 Hadoop plug-in enhancement update 2015-03-31 14:17:20 UTC

Description Martin Kudlej 2014-11-11 13:11:52 UTC
Description of problem:
./ambari_config_update.sh --configkey key1 --action add --cluster TestCluster --configvalue value2001
./ambari_config_update.sh --configkey key1 --action prepend --cluster TestCluster --configvalue value1
./ambari_config_update.sh --configkey key1 --action append --cluster TestCluster --configvalue value2

Expected value: value1,value2001,value2
Current value: value1,001,value2

I think this script should do only action which is requested by user. In this case I see that there are 2 actions: s/value2// and append.

Version-Release number of selected component (if applicable):
Ambari 1.6.1
rhs-hadoop-install-2_29-1

How reproducible:
100%

Comment 2 Jeff Vance 2014-11-11 19:07:22 UTC
Duplicated problem: variable substitution bug in removeValue() function.

Comment 3 Jeff Vance 2014-11-11 21:09:29 UTC
fixed bin/ambari_config_update.sh

Comment 6 Martin Kudlej 2015-03-11 12:26:59 UTC
Tested with rhs-hadoop-install-2_44-1.el6rhs.noarch and it works. -->VERIFIED

Comment 8 errata-xmlrpc 2015-03-31 10:18:30 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/RHEA-2015-0761.html


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