You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Ahmed Fathalla (Created) (JIRA)" <ji...@apache.org> on 2011/11/10 11:20:51 UTC

[jira] [Created] (AMBARI-128) Build fails if "ethtool" not installed

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


Build with the following error of 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

        

[jira] [Commented] (AMBARI-128) Build fails if "ethtool" not installed

Posted by "Eric Yang (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (AMBARI-128) Build fails if "ethtool" not installed

Posted by "Ahmed Fathalla (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMBARI-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ahmed Fathalla updated AMBARI-128:
----------------------------------

    Attachment: AMBARI-128.patch
    
> 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

        

[jira] [Updated] (AMBARI-128) Build fails if "ethtool" not installed

Posted by "Ahmed Fathalla (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMBARI-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ahmed Fathalla updated AMBARI-128:
----------------------------------

    Description: 
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())

  was:
Build with the following error of 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())

    
> 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
>
> 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

        

[jira] [Updated] (AMBARI-128) Build fails if "ethtool" not installed

Posted by "Eric Yang (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMBARI-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Yang updated AMBARI-128:
-----------------------------

    Attachment: AMBARI-128-1.patch

Set net speed to 0, if ethtool does not exist.
Added ethtool dependency to RPM/DEB package generation.
                
> 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-1.patch, 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