Test fix for storage group race condition.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 2 years ago
parent 1bba56a5b1
commit d64044c7d1
  1. 5
      Anvil/Tools/Cluster.pm

@ -378,7 +378,10 @@ ORDER BY
scan_lvm_vg_size => $scan_lvm_vg_size." (".$anvil->Convert->bytes_to_human_readable({'bytes' => $scan_lvm_vg_size}).")",
scan_lvm_vg_internal_uuid => $scan_lvm_vg_internal_uuid,
}});
# Using previously loaded storage group data can be racy, so query group membership directly.
$anvil->Database->get_storage_group_data({debug => $debug});
# Skip VGs that are in a group already.
if ((exists $anvil->data->{storage_groups}{vg_uuid}{$scan_lvm_vg_internal_uuid}) &&
($anvil->data->{storage_groups}{vg_uuid}{$scan_lvm_vg_internal_uuid}{storage_group_uuid}))

Loading…
Cancel
Save