The incremental volume backup stopped working after we moved from
cinderclient to SDK[1]. This happened because SDK accepts the
``is_incremental`` parameter[2] rather than the ``incremental`` parameter
which is actually passed in the API request and was previously a valid
parameter for cinderclient.
This patch fixes the issue by passing the ``is_incremental`` field instead
of ``incremental`` from the OSC side which adds the ``incremental`` parameter
in the API request.
Reviewed: https:/ /review. opendev. org/c/openstack /python- openstackclient /+/923169 /opendev. org/openstack/ python- openstackclient /commit/ 205bac3caf5ff98 3c60da0d171e51c 1cc286024a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 205bac3caf5ff98 3c60da0d171e51c 1cc286024a
Author: Rajat Dhasmana <email address hidden>
Date: Mon Jul 1 21:04:45 2024 +0530
Fix: incremental volume backup
The incremental volume backup stopped working after we moved from incremental` ` parameter[2] rather than the ``incremental`` parameter
cinderclient to SDK[1]. This happened because SDK accepts the
``is_
which is actually passed in the API request and was previously a valid
parameter for cinderclient.
This patch fixes the issue by passing the ``is_incremental`` field instead
of ``incremental`` from the OSC side which adds the ``incremental`` parameter
in the API request.
Request body after the fix:
'{"backup": {"name": null, "description": null, "volume_id": "<vol-id>",
"force": false, "container": null, "incremental": true}}'
[1] https:/ /review. opendev. org/c/openstack /python- openstackclient /+/889748 /opendev. org/openstack/ openstacksdk/ src/commit/ 10e5e20fc0eb526 4080f0cfdc0523d 65883dc693/ openstack/ block_storage/ v2/backup. py#L126- L134
[2] https:/
Closes-Bug: #2070080 c39f4dbd664b787 3ab87a9ac6c
Change-Id: I89bd3d2751267e