VirtualBox

Changeset 71084 in vbox


Ignore:
Timestamp:
Feb 21, 2018 1:01:33 PM (7 years ago)
Author:
vboxsync
Message:

ValidationKit: Turn the warning about likely non-unique IP detected for the host into an error, and teach the vsheriff to look for it. Usually happens with Linux and Solaris, who cleverly map their FQDN to an IP in localnet through /etc/hosts. bugref:7994

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py

    r70795 r71084  
    15481548                if sys.version_info[0] < 3:
    15491549                    abHostIP = (ord(abHostIP[0]), ord(abHostIP[1]), ord(abHostIP[2]), ord(abHostIP[3]));
    1550                 if   abHostIP[0] == 127 \
    1551                   or (abHostIP[0] == 169 and abHostIP[1] == 254) \
    1552                   or (abHostIP[0] == 192 and abHostIP[1] == 168 and abHostIP[2] == 56):
    1553                     reporter.log('warning: host IP for "%s" is %s, most likely not unique.' % (sHostName, sHostIP))
    1554             except:
    1555                 reporter.errorXcpt('failed to determine the host IP for "%s".' % (sHostName,))
    1556                 return False
     1550            except:
     1551                return reporter.errorXcpt('failed to determine the host IP for "%s".' % (sHostName,))
     1552            if   abHostIP[0] == 127 \
     1553              or (abHostIP[0] == 169 and abHostIP[1] == 254) \
     1554              or (abHostIP[0] == 192 and abHostIP[1] == 168 and abHostIP[2] == 56):
     1555                return reporter.error('host IP for "%s" is %s, most likely not unique.' % (sHostName, sHostIP))
     1556
    15571557            sDefaultMac = '%02X%02X%02X%02X%02X%02X' \
    15581558                % (0x02, abHostIP[0], abHostIP[1], abHostIP[2], abHostIP[3], iNic)
     
    15631563            oNic = self.o.machine.getNetworkAdapter(iNic)
    15641564        except:
    1565             reporter.errorXcpt('getNetworkAdapter(%s) failed for "%s"' % (iNic, self.sName))
    1566             return False
     1565            return reporter.errorXcpt('getNetworkAdapter(%s) failed for "%s"' % (iNic, self.sName))
    15671566
    15681567        try:
    15691568            oNic.MACAddress = sMacAddr
    15701569        except:
    1571             reporter.errorXcpt('failed to set the MAC address on slot %s to "%s" for VM "%s"' \
     1570            return reporter.errorXcpt('failed to set the MAC address on slot %s to "%s" for VM "%s"' \
    15721571                % (iNic, sMacAddr, self.sName))
    1573             return False
    15741572
    15751573        reporter.log('set MAC address on slot %s to %s for VM "%s"' % (iNic, sMacAddr, self.sName))
  • trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py

    r70847 r71084  
    188188    def getMainLog(self):
    189189        """
    190         Tries to reads the main log file since this will be the first source of information.
     190        Tries to read the main log file since this will be the first source of information.
    191191        """
    192192        if self.sMainLog:
     
    205205    def getLogFile(self, oFile):
    206206        """
    207         Tries to reads the given file as a utf-8 log file.
     207        Tries to read the given file as a utf-8 log file.
    208208        oFile is a TestFileDataEx instance.
    209209        Returns empty string if problems opening or reading the file.
     
    486486    ktReason_Host_Modprobe_Failed                      = ( 'Host',              'Modprobe failed' );
    487487    ktReason_Host_Install_Hang                         = ( 'Host',              'Install hang' );
     488    ktReason_Host_NetworkMisconfiguration              = ( 'Host',              'Network misconfiguration' );
    488489    ktReason_Networking_Nonexistent_host_nic           = ( 'Networking',        'Nonexistent host networking interface' );
    489490    ktReason_OSInstall_GRUB_hang                       = ( 'O/S Install',       'GRUB hang' );
     
    883884        ( True,  ktReason_OSInstall_Sata_no_BM,                     'PCHS=14128/14134/8224' ),
    884885        ( True,  ktReason_Host_DoubleFreeHeap,                      'double free or corruption' ),
     886        ( True,  ktReason_Host_NetworkMisconfiguration,             'most likely not unique' ),
    885887    ];
    886888
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette