You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2015/04/23 11:26:04 UTC

Review Request 33473: Ranger Admin Install fails with an Attribute Error

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

Review request for Ambari and Jayush Luniya.


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


Repository: ambari


Description
-------

navigated through Ambari install wizard to install HDP. after install add
ranger as a service (ranger db being Oracle). Ranger admin install fails with
the below error:  
Here is the cluster where we noticed this: 172.22.72.225:8080. please help
take a look

    
    
    
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 74, in <module>
        RangerAdmin().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 37, in install
        self.configure(env)
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 70, in configure
        setup_ranger_admin()
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py", line 29, in setup_ranger_admin
        check_db_connnection()
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py", line 99, in check_db_connnection
        Logger.info(ex)
      File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 65, in info
        Logger.logger.info(Logger.filter_text(text))
      File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 98, in filter_text
        text = text.replace(placeholder, '')
    AttributeError: 'Fail' object has no attribute 'replace'


Diffs
-----

  ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py 391df2a 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 33473: Ranger Admin Install fails with an Attribute Error

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/33473/
-----------------------------------------------------------

(Updated April 24, 2015, 9:58 a.m.)


Review request for Ambari and Jayush Luniya.


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


Repository: ambari


Description
-------

navigated through Ambari install wizard to install HDP. after install add
ranger as a service (ranger db being Oracle). Ranger admin install fails with
the below error:  
Here is the cluster where we noticed this: 172.22.72.225:8080. please help
take a look

    
    
    
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 74, in <module>
        RangerAdmin().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 37, in install
        self.configure(env)
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 70, in configure
        setup_ranger_admin()
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py", line 29, in setup_ranger_admin
        check_db_connnection()
      File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py", line 99, in check_db_connnection
        Logger.info(ex)
      File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 65, in info
        Logger.logger.info(Logger.filter_text(text))
      File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 98, in filter_text
        text = text.replace(placeholder, '')
    AttributeError: 'Fail' object has no attribute 'replace'


Diffs (updated)
-----

  ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py 391df2a 
  ambari-server/src/test/python/stacks/2.2/RANGER/test_ranger_admin.py 4bff50f 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 33473: Ranger Admin Install fails with an Attribute Error

Posted by Jayush Luniya <jl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/33473/#review81325
-----------------------------------------------------------

Ship it!


This code might become irrelevant depending on https://reviews.apache.org/r/33462/ but lets fix existing code.

- Jayush Luniya


On April 23, 2015, 9:26 a.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/33473/
> -----------------------------------------------------------
> 
> (Updated April 23, 2015, 9:26 a.m.)
> 
> 
> Review request for Ambari and Jayush Luniya.
> 
> 
> Bugs: AMBARI-10686
>     https://issues.apache.org/jira/browse/AMBARI-10686
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> navigated through Ambari install wizard to install HDP. after install add
> ranger as a service (ranger db being Oracle). Ranger admin install fails with
> the below error:  
> Here is the cluster where we noticed this: 172.22.72.225:8080. please help
> take a look
> 
>     
>     
>     
>     Traceback (most recent call last):
>       File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 74, in <module>
>         RangerAdmin().execute()
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 214, in execute
>         method(env)
>       File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 37, in install
>         self.configure(env)
>       File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py", line 70, in configure
>         setup_ranger_admin()
>       File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py", line 29, in setup_ranger_admin
>         check_db_connnection()
>       File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py", line 99, in check_db_connnection
>         Logger.info(ex)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 65, in info
>         Logger.logger.info(Logger.filter_text(text))
>       File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 98, in filter_text
>         text = text.replace(placeholder, '')
>     AttributeError: 'Fail' object has no attribute 'replace'
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py 391df2a 
> 
> Diff: https://reviews.apache.org/r/33473/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>