SnapLock autocommit modify failing with value out of range error
Applies to
- ONTAP 9
- SnapLock
Issue
- Attempts to change the SnapLock autocommit period fails despite value being within the acceptable range
::> volume snaplock modify -autocommit-period 1114113 minutes -vserver svm1 -volume vol1
Error: command failed: The value specified with "-autocommit-period" must be in minutes (5 - 5256000) or hours (1 - 87600) or days (1 - 3650) or months (1 - 120) or years (1 - 10).
- The autocommit-period of 1114113 minutes falls within the range of 5 - 5256000 minutes mentioned in the error, yet the command still fails
- Due to a flaw in how autocommit-period values are calculated, this issue will occur for various values that fall within the specified range