#Cannot set qos policy group name when creating volume clone.

1 messages · Page 1 of 1 (latest)

austere root
#

@glacial moth reported this error in ansible channel - https://discordapp.com/channels/855068651522490400/1097931674743996436/1097931674743996436

"msg": "Error creating volume clone new_clone: calling: storage/volumes: got {'message': 'Specifying a value for \"qos.policy.name\" is not valid for a volume FlexClone creation.', 'code': '918247'}.",

ZAPI to REST equivalent document has qos.policy.name for configuration qos policy group.
https://docs.netapp.com/us-en/ontap-restmap-9101/volume.html#volume-clone-create

but using qos.policy.name returns error that its not valid for flex clone creation, below is debug log.

{'method': 'POST', 'url': 'https://ontap_hostname/api/storage/volumes', 'verify': False, 'params': {'return_timeout': 30, 'return_records': 'true'}, 'timeout': 60, 'json': {'name': 'ansibleVolume12_clone', 'clone.parent_volume.name': 'ansibleVolume12', 'clone.is_flexclone': True, 'svm.name': 'ansibleSVM', 'qos.policy.name': 'policy_1'}, 'headers': 'redacted', 'auth_args': 'redacted'}

is it documentation typo or bug in REST api?

austere root
#

DEBUG 500: b'{\n "error": {\n "message": "Specifying a value for \\"qos.policy.name\\" is not valid for a volume FlexClone creation.",\n "code": "918247"\n }\n}'

patent lion
#

This seems like a documentation typo. Atleast in REST there is no support for assigning qos policy to a clone during POST, you would have to make a separate call to REST to assign a qos policy to the cloned volume. @austere root