incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Yang (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-128) Build fails if "ethtool" not installed
Date Thu, 10 Nov 2011 17:36:51 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147851#comment-13147851
] 

Eric Yang commented on AMBARI-128:
----------------------------------

It is best to manage ethtool pre-requisite in RPM/DEB packaging dependencies to ensure ethtool
exists.
It would be safer to set it to 0, if the output of ethtool can not be parsed.
                
> Build fails if "ethtool" not installed
> --------------------------------------
>
>                 Key: AMBARI-128
>                 URL: https://issues.apache.org/jira/browse/AMBARI-128
>             Project: Ambari
>          Issue Type: Bug
>          Components: build
>         Environment: Ubuntu 10.04 Natty
> Linux fathalla 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686
i386 GNU/Linux
>            Reporter: Ahmed Fathalla
>            Priority: Minor
>         Attachments: AMBARI-128.patch
>
>
> Build fails with the following error if ethtools is not installed on system
> ValueError: invalid literal for int() with base 10
> This is caused by the following line in ethtool method in Hardware.py
> self.netSpeed = int(result['output'].rstrip())

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message