[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH OSSTEST RFC] Osstest/Debian.pm: Use Fqdn hostprop when collecting host keys



Ian Campbell writes ("[PATCH OSSTEST RFC] Osstest/Debian.pm: Use Fqdn hostprop 
when collecting host keys"):
> Otherwise hosts which are not in the same DnsDomain are not processed,
> resulting in log messages such as:
> 
> 2015-05-01 10:06:19 Z skipping host key for nonexistent host 
> marilith-n4.xs.citrite.net
> 2015-05-01 10:06:20 Z skipping host key for nonexistent host 
> lace-bug.xs.citrite.net

Oops.

>      $hostsq->execute($flight);
>      while (my ($node) = $hostsq->fetchrow_array()) {
> -        my $longname= "$node.$c{TestHostDomain}";
> +        my %props;
> +        $mhostdb->get_properties($node, \%props);
> +        my $longname= $props{Fqdn} ? $props{Fqdn} : 
> "$node.$c{TestHostDomain}";

Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

Although, there is very similar logic in selecthost() (see near
$defaultfqdn).  The code here in preseed_create lacks the check to see
whether the hostname is the fqdn to start with.  Merging these two may
be a bit awkward (and involve more code than just duplicating the
logic), given their different environments, so I won't block your
fixup for this.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.