mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	add check that MN name is resolvable and put out error if it is not
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4107 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -764,10 +764,14 @@ sub initDB
 | 
			
		||||
    my $xcatiport  = "3002";
 | 
			
		||||
    my $tftpdir    = "/tftpboot";
 | 
			
		||||
    my $installdir = "/install";
 | 
			
		||||
 | 
			
		||||
    my $master;
 | 
			
		||||
    my ($name, $aliases, $addrtype, $length, @addrs) = gethostbyname($hname);
 | 
			
		||||
    my $master = inet_ntoa($addrs[0]);
 | 
			
		||||
 | 
			
		||||
    if ($? == 0) {
 | 
			
		||||
     $master = inet_ntoa($addrs[0]);
 | 
			
		||||
    } else {
 | 
			
		||||
      xCAT::MsgUtils->message("E","Hostname resolution for $hname failed.\n");
 | 
			
		||||
     $master="NORESOLUTION";
 | 
			
		||||
    }
 | 
			
		||||
    # set value based on OS
 | 
			
		||||
    my ($domain, $timezone);
 | 
			
		||||
    if ($::osname eq 'AIX')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user