-Fix order of mounting datastores to allow for resolving linked dependencies that cross datastores
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8769 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d85b8faad0
commit
280759cf23
@ -788,11 +788,7 @@ sub migrate {
|
||||
return (1,"Unable to reach $targ to perform operation of $node, destination unusable.");
|
||||
}
|
||||
if (defined $confdata->{vm}->{$node}->[0]->{storage} and $confdata->{vm}->{$node}->[0]->{storage} =~ /^nfs:/) {
|
||||
my $urls = $confdata->{vm}->{$node}->[0]->{storage} and $confdata->{vm}->{$node}->[0]->{storage};
|
||||
foreach (split /,/,$urls) {
|
||||
s/=.*//;
|
||||
get_storage_pool_by_url($_,$desthypconn,$targ);
|
||||
}
|
||||
#first, assure master is in place
|
||||
if ($confdata->{vm}->{$node}->[0]->{master}) {
|
||||
my $vmmastertab=xCAT::Table->new('vmmaster',-create=>0);
|
||||
my $masterent;
|
||||
@ -806,6 +802,11 @@ sub migrate {
|
||||
}
|
||||
}
|
||||
}
|
||||
my $urls = $confdata->{vm}->{$node}->[0]->{storage} and $confdata->{vm}->{$node}->[0]->{storage};
|
||||
foreach (split /,/,$urls) {
|
||||
s/=.*//;
|
||||
get_storage_pool_by_url($_,$desthypconn,$targ);
|
||||
}
|
||||
}
|
||||
my $sock = IO::Socket::INET->new(Proto=>'udp');
|
||||
my $ipa=inet_aton($node);
|
||||
@ -895,12 +896,6 @@ sub makedom {
|
||||
if (not $xml and $confdata->{kvmnodedata}->{$node} and $confdata->{kvmnodedata}->{$node}->[0] and $confdata->{kvmnodedata}->{$node}->[0]->{xml}) {
|
||||
#we do this to trigger storage prereq fixup
|
||||
if (defined $confdata->{vm}->{$node}->[0]->{storage} and ($confdata->{vm}->{$node}->[0]->{storage} =~ /^nfs:/ or $confdata->{vm}->{$node}->[0]->{storage} =~ /^dir:/)) {
|
||||
print "going by urls\n";
|
||||
my $urls = $confdata->{vm}->{$node}->[0]->{storage} and $confdata->{vm}->{$node}->[0]->{storage};
|
||||
foreach (split /,/,$urls) {
|
||||
s/=.*//;
|
||||
get_storage_pool_by_url($_);
|
||||
}
|
||||
if ($confdata->{vm}->{$node}->[0]->{master}) {
|
||||
my $vmmastertab=xCAT::Table->new('vmmaster',-create=>0);
|
||||
my $masterent;
|
||||
@ -914,6 +909,11 @@ sub makedom {
|
||||
}
|
||||
}
|
||||
}
|
||||
my $urls = $confdata->{vm}->{$node}->[0]->{storage} and $confdata->{vm}->{$node}->[0]->{storage};
|
||||
foreach (split /,/,$urls) {
|
||||
s/=.*//;
|
||||
get_storage_pool_by_url($_);
|
||||
}
|
||||
}
|
||||
$xml = $confdata->{kvmnodedata}->{$node}->[0]->{xml};
|
||||
my $newxml = fixbootorder($node,$xml);
|
||||
|
Loading…
Reference in New Issue
Block a user