Skip to content

Commit 2b40170

Browse files
dl2nDan Lovinger
andauthored
Bump to 2.0.2.1 (#170)
* Bump to 2.0.2.1 vmfleet: move-fleet, get-fleetdatadiskestimate cluster remoting does not work vmfleet: start-fleetsweep should start from pause to avoid free-run/go false start * 2.0.2.1 release notes Co-authored-by: Dan Lovinger <[email protected]>
1 parent 7be4eec commit 2b40170

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

Frameworks/VMFleet/VMFleet.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ SOFTWARE.
3737
RootModule = 'VMFleet.psm1'
3838

3939
# Version number of this module. Even build# is release, odd pre-release (Mj.Mn.Bd.Rv)
40-
ModuleVersion = '2.0.2.0'
40+
ModuleVersion = '2.0.2.1'
4141

4242
# Supported PSEditions
4343
# CompatiblePSEditions = @()

Frameworks/VMFleet/VMFleet.psm1

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ function Set-FleetControlScript
824824

825825
function Set-SweepTemplateScript
826826
{
827+
# __Unique__
827828
# buffer size/alighment, threads/target, outstanding/thread, write%
828829
$b = __b__; $t = __t__; $o = __o__; $w = __w__
829830

@@ -3392,7 +3393,7 @@ function Move-Fleet
33923393
# will build on the moves for 50%, and so forth.
33933394
#
33943395

3395-
$vms = Get-ClusterGroup |? GroupType -eq VirtualMachine
3396+
$vms = Get-ClusterGroup @clusterParam |? GroupType -eq VirtualMachine
33963397

33973398
#
33983399
# Only rotate online VMs? This allows one model of composing partial startup with rotation - start
@@ -4386,6 +4387,9 @@ function Get-FleetDataDiskEstimate
43864387
$VMPercent
43874388
)
43884389

4390+
$clusterParam = @{}
4391+
CopyKeyIf $PSBoundParameters $clusterParam 'Cluster'
4392+
43894393
if (-not $PSBoundParameters.ContainsKey('CachePercent') -and
43904394
-not $PSBoundParameters.ContainsKey('CapacityPercent'))
43914395
{
@@ -4428,7 +4432,7 @@ function Get-FleetDataDiskEstimate
44284432
$cacheCapacity = 0
44294433
}
44304434

4431-
$nodes = @(Get-ClusterNode -Cluster $Cluster)
4435+
$nodes = @(Get-ClusterNode @clusterParam)
44324436

44334437
if ($nodes |? State -ne Up)
44344438
{
@@ -4446,8 +4450,8 @@ function Get-FleetDataDiskEstimate
44464450
# Get total/data space available in fleet volumes
44474451
#
44484452

4449-
$nodes = Get-ClusterNode
4450-
$volumes = Get-Volume
4453+
$nodes = Get-ClusterNode @clusterParam
4454+
$volumes = Get-Volume -CimSession $Cluster
44514455

44524456
foreach ($volume in $volumes)
44534457
{
@@ -4469,7 +4473,7 @@ function Get-FleetDataDiskEstimate
44694473
#
44704474

44714475
$curDataDiskCapacity = 0
4472-
$dataDisk = @(Get-FleetDisk -Cluster $Cluster)
4476+
$dataDisk = @(Get-FleetDisk @clusterParam)
44734477

44744478
if ($dataDisk.Count)
44754479
{
@@ -4507,7 +4511,7 @@ function Get-FleetDataDiskEstimate
45074511

45084512
if (-not $PSBoundParameters.ContainsKey('VMs'))
45094513
{
4510-
$vmGroups = @(Get-ClusterGroup -Cluster $Cluster |? GroupType -eq VirtualMachine |? Name -like 'vm-*')
4514+
$vmGroups = @(Get-ClusterGroup @clusterParam |? GroupType -eq VirtualMachine |? Name -like 'vm-*')
45114515

45124516
#
45134517
# Limit estimate to VMs currently running? Allows for at-a-distance dynamic resizing of fleet (e.g., start
@@ -5451,6 +5455,8 @@ function Start-FleetSweep
54515455
$runtemplate
54525456
)
54535457

5458+
$guid = [System.Guid]::NewGuid().Guid
5459+
54545460
# Use template script if offered, else builtin
54555461
$(if ($runtemplate.Length -gt 0)
54565462
{
@@ -5475,6 +5481,7 @@ function Start-FleetSweep
54755481
$line = $line -replace "__$($v.label())__",$vsub
54765482
}
54775483

5484+
$line = $line -replace '__Unique__',$guid
54785485
$line
54795486

54805487
} | Out-File "$($RunFilePath).tmp" -Encoding ascii -Width ([int32]::MaxValue)
@@ -5507,7 +5514,10 @@ function Start-FleetSweep
55075514

55085515
#############
55095516

5510-
Clear-FleetRunState -Cluster $Cluster
5517+
# Start paused so that when run state is cleared VMs do not enter free run
5518+
# and begin executing the first run file for this sweep pass.
5519+
Set-FleetPause @clusterParam
5520+
Clear-FleetRunState @clusterParam
55115521

55125522
# construct the Variable list describing the sweep
55135523

@@ -5548,7 +5558,7 @@ function Start-FleetSweep
55485558
ShowRun $sweep
55495559
NewRunFile $sweep $RunTemplate
55505560

5551-
Start-FleetRun -PrePlaced -Cluster $Cluster -AddSpec ($sweep.label($LabelTemplate)) -Duration (GetRunDuration $sweep) -pc $pc -SampleInterval $SampleInterval -ErrorVariable e
5561+
Start-FleetRun -PrePlaced @clusterParam -AddSpec ($sweep.label($LabelTemplate)) -Duration (GetRunDuration $sweep) -pc $pc -SampleInterval $SampleInterval -ErrorVariable e
55525562

55535563
if ($e.Count)
55545564
{

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ What's New?
7878

7979
VM Fleet is a performance characterization and analyst framework for exploring the storage capabilities of Windows Server Hyper-Converged environments with Storage Spaces Direct.
8080

81+
# VM Fleet 2.0.2.1 11/9/2021
82+
83+
* Fix cluster remoting issues in Move-Fleet and Get-FleetDataDiskEstimate
84+
* Fix timing issue with Start-FleetSweep; always start from fleet pause to avoid triggering free run
85+
* Use uniqueness to guarantee Start-FleetSweep runs profile in case of repeat
86+
8187
# VM Fleet 2.0.2 11/2/2021
8288

8389
* Windows Server 2019/RS5 host operation now confirmed & supported

0 commit comments

Comments
 (0)