You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2016/04/12 15:58:59 UTC

Review Request 46095: On debian7 UI shows 'os not supported' in processor info

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

Review request for Ambari and Vitalyi Brodetskyi.


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


Repository: ambari


Description
-------

This is caused by platform python module not able to get processor
architecture.

    
    
    >>> import platform
    >>> platform.processor()
    ''
    

We should use a more reliable way to do that.  
That is by using lsof.

    
    
    root@os-d7-cpnlrs-devdeploy-1:~# lscpu | grep "Architecture:" | awk '{ print $2 }'
    x86_64


Diffs
-----

  ambari-agent/src/main/python/ambari_agent/Facter.py bad9b96 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 46095: On debian7 UI shows 'os not supported' in processor info

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

(Updated April 12, 2016, 2:05 p.m.)


Review request for Ambari and Vitalyi Brodetskyi.


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


Repository: ambari


Description
-------

This is caused by platform python module not able to get processor
architecture.

    
    
    >>> import platform
    >>> platform.processor()
    ''
    

We should use a more reliable way to do that.  
That is by using lsof.

    
    
    root@os-d7-cpnlrs-devdeploy-1:~# lscpu | grep "Architecture:" | awk '{ print $2 }'
    x86_64


Diffs (updated)
-----

  ambari-agent/src/main/python/ambari_agent/Facter.py bad9b96 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk