Commit 7cbc2cfc authored by Leigh B. Stoller's avatar Leigh B. Stoller

When creating vnodes, make sure there is a new uuid for each one.

parent cb96f568
......@@ -1398,12 +1398,6 @@ sub CreateVnodes($$)
return -1;
}
my $uuid = NewUUID();
if (!defined($uuid)) {
print STDERR "Could not generate a UUID!\n";
next NODE;
}
#
# Assign however many we are told to (typically by assign). Locally
# this is not a problem since nodes are not shared; assign always
......@@ -1477,6 +1471,12 @@ sub CreateVnodes($$)
}
my $jailip = "${IPBASE1}.${pnet}.${pnode2}.${i}";
my $uuid = NewUUID();
if (!defined($uuid)) {
print STDERR "Could not generate a UUID!\n";
goto bad;
}
if ($verbose) {
print STDERR "Jail IP for $vnodeid is $jailip\n";
if ($impotent) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment