Hi All - I am attempting to migrate from Puppet DSC to Puppet StorageDSC (5.0.1-0-6). I am attempting to fix a manifest that iterates through a json list of facts. It grabs the LUNs and maps them to a drive letter, then uses a for each to loop through and initialize each disk with dsc_disk. In the old module, it would just skip already initialized drives. With the new module after the disks are configured, I get continuous corrective notifications in the puppet runs. Two issues that I cannot get through:
On Windows 2019 standalone servers in Azure with disks already initialized (manually or the old dsc_disk manifest ) 1 corrective:
dsc_diskidtype changed 'Number' to 'number' (corrective) – looked through the code and cannot seem to figure out where this is coming from.
I tested clearing the disk and starting from initialized with the same results
A bigger issue is with Windows 2019 in Azure that have an availability group configured within a Failover Cluster with disks already initialized (manually or the old dsc_disk ) 3 corrective notices & one warning:
dsc_fslabel changed 'System.Object[]' to 'e_drive' (corrective) – this is what is actually is - why is the object empty?
dsc_fsformat changed 'System.Object[]' to 'NTFS' (corrective) - this is what is actually is - why is the object empty?
dsc_diskidtype changed 'Number' to 'number' (corrective) – looked through the code and cannot seem to figure out where this is coming from.
Provider returned data that does not match the Type Schema for
dsc_disk[e_drive]
Value type mismatch: * dsc_fsformat: System.Object[] (expects an undef value or a match for Enum['NTFS', 'ReFS', 'ntfs', 'refs'], got 'System.Object[]')
These seem to be the disks from the other machine the info from get-disk suggest (null values for the same drive letter) – in the old DSC module the runs fail with “Could not evaluate: Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.UInt64".”
Any advice and help is much appreciated.