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: I05d83d73de69c57d885e0c417e8a376f7cfb1e4f
Closes-Bug: #1924643
(cherry picked from commit dd0b1076df936b9cb1111567f6b4c3b747744b72)
(cherry picked from commit 344f3e8b098ff52c137ece8a28b3b40a5893e30e)
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/821892 /opendev. org/openstack/ cinder/ commit/ fffe9b57b984ba4 02fbe9f0c578b41 9926491b5b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit fffe9b57b984ba4 02fbe9f0c578b41 9926491b5b
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 cb1111567f6b4c3 b747744b72) c137ece8a28b3b4 0a5893e30e)
Closes-Bug: #1924643
(cherry picked from commit dd0b1076df936b9
(cherry picked from commit 344f3e8b098ff52