ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 18217: Nagios and Hive fails, when password is numberonly
Date Tue, 18 Feb 2014 15:56:24 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18217/
-----------------------------------------------------------

Review request for Ambari and Arsen Babych.


Bugs: AMBARI-4713
    https://issues.apache.org/jira/browse/AMBARI-4713


Repository: ambari


Description
-------

{code}
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios_server.py",
line 113, in <module>
    NagiosServer().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 95, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios_server.py",
line 33, in install
    self.configure(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios_server.py",
line 38, in configure
    nagios()
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios.py",
line 69, in nagios
    set_web_permisssions()
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/nagios.py",
line 85, in set_web_permisssions
    cmd = format("{htpasswd_cmd} -c -b  /etc/nagios/htpasswd.users {nagios_web_login} {nagios_web_password!p}")
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/format.py",
line 83, in format
    return ConfigurationFormatter().format(format_string, args, **result)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/format.py",
line 50, in format
    result_unprotected = self.vformat(format_string, args, all_params)
  File "/usr/lib64/python2.6/string.py", line 549, in vformat
    result = self._vformat(format_string, args, kwargs, used_args, 2)
  File "/usr/lib64/python2.6/string.py", line 575, in _vformat
    obj = self.convert_field(obj, conversion)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/format.py",
line 58, in convert_field_unprotected
    return self._convert_field(value, conversion, False)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/format.py",
line 73, in _convert_field
    return "[PROTECTED]" if is_protected else self._convert_field(value, 'e', is_protected)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/format.py",
line 69, in _convert_field
    return pipes.quote(value)
  File "/usr/lib64/python2.6/pipes.py", line 271, in quote
    for c in file:
TypeError: 'int' object is not iterable
{code}


Diffs
-----

  ambari-agent/src/main/python/resource_management/libraries/functions/format.py ead0f47 

Diff: https://reviews.apache.org/r/18217/diff/


Testing
-------


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message