After upgrading to the latest "WFA pack for managing Clustered Data ONTAP" 1.5.0, we have issues with the "Modify Volume" command.
In the latest version, it takes a new parameter as such:
[parameter(Mandatory=$false, HelpMessage="The tiering policy that is to be associated with the volume.")]
[ValidateSet("auto","none","backup","snapshot-only")]
[string]$TieringPolicy,
This parameter is mapped to Volume.tiering_policy.
However, a newly created volume using "Create volume" without a defined tiering policy will default to "snapshot_only", note the underscore, this is the part from the reservation:
IF('${TieringPolicy}' IS NULL,
"snapshot_only",
'${TieringPolicy}'),
This "snapshot_only" will then not be accepted by the "Modify Volume", because it only takes "snapshot-only" with a dash rather than an underscore.
@netapp: can you confirm that and/or is this a known bug and in the works or does that need a ticket?