For last few days I'm unable to merge computers. The problem is that clicking on merge this computer doesn't give me any possibilities.
I just can't see why these two computers are not treated mergeable.
edit: well, the cache size reported is different, could this be it?
edit 2: nope, that wasn't it
It's because one host reported to the scheduler AFTER the other host was created. See the last four lines of this function:
// return true if it's possible that the two host records
// correspond to the same host
//
function hosts_compatible($host1, $host2) {
// we screwed around with Intel processor names,
// so count them as compatible if both contain "Intel" and "Pentium",
// and don't have conflicting clock rate info
//
$p1 = "$host1->p_vendor $host1->p_model";
$p2 = "$host2->p_vendor $host2->p_model";
if (strstr($p1, "Pentium") && strstr($p1, "Intel")
&& strstr($p2, "Pentium") && strstr($p2, "Intel")
) {
$g1 = ghz($p1);
$g2 = ghz($p2);
if ($g1 && $g2 && ($g1!=$g2)) return false;
} else {
if ($host2->p_vendor != $host1->p_vendor) return false;
if ($host2->p_model != $host1->p_model) return false;
}
if ($host2->os_name != $host1->os_name) return false;
// one host must strictly precede the other
//
if ($host1->rpc_time create_time) return true;
if ($host2->rpc_time create_time) return true;
return false;
}
