The ONTAP documentation states that the `clone-create` ZAPI call
fails with `block-ranges` and `space-reserve` parameters sent
together. The sub-clone uses the `block-ranges` and is failing
because of that restriction.
This patch fixes the `clone-create` operation by using exactly one
of `block-ranges` or `space-reserve`.
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/798208 /opendev. org/openstack/ cinder/ commit/ dd0b1076df936b9 cb1111567f6b4c3 b747744b72
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit dd0b1076df936b9 cb1111567f6b4c3 b747744b72
Author: Felipe Rodrigues <email address hidden>
Date: Fri Apr 16 10:05:40 2021 -0300
NetApp ONTAP: Fix sub-clone zapi call
The ONTAP documentation states that the `clone-create` ZAPI call
fails with `block-ranges` and `space-reserve` parameters sent
together. The sub-clone uses the `block-ranges` and is failing
because of that restriction.
This patch fixes the `clone-create` operation by using exactly one
of `block-ranges` or `space-reserve`.
Change-Id: I05d83d73de69c5 7d885e0c417e8a3 76f7cfb1e4f
Closes-Bug: #1924643