medhac1403 066a6d9f5f bug/2130717 Fix KeyError in modify_volume when autosize attributes missing
The test 'test_snapshot_before_share_replica' failed due to a KeyError
for 'mode' during replica promotion. The modify_volume() method in
client_cmode_rest.py accessed keys like 'mode' and 'grow-threshold-percent'
from the autosize_attributes dictionary without checking if they exist.

During replica promotion, _update_autosize_attributes_after_promote_replica()
called modify_volume() with a dictionary missing the 'mode' key, resulting
in a KeyError.

This change updates modify_volume() to check for the existence of each
autosize attribute before accessing it. The function now gracefully handles
partial autosize attribute dictionaries, including only present attributes
in the request body.
Closes-bug: #2130717

Change-Id: I8ee3f84abc295c40d35c201c0360578e56239ddf
Signed-off-by: medhac1403 <medhaj06@gmail.com>
(cherry picked from commit 4dc5390ed0)
(cherry picked from commit cb033344fa)
2026-01-28 05:08:44 +00:00
2024-01-27 23:57:00 +09:00
2025-05-08 21:37:58 +00:00
2020-08-11 21:00:54 +00:00
2017-03-30 15:12:22 +03:00
2017-10-25 11:57:46 -04:00
2025-03-14 13:01:49 +00:00
2023-08-31 14:44:36 -04:00
2013-08-08 10:34:06 -04:00
2025-05-13 12:44:35 +01:00
2020-03-18 18:59:27 -07:00
2025-02-06 00:14:20 +09:00
2025-05-13 12:44:35 +01:00

Team and repository tags

image

MANILA

You have come across an OpenStack shared file system service. It has identified itself as "Manila." It was abstracted from the Cinder project.

Getting Started

If you'd like to run from the master branch, you can clone the git repo:

git clone https://opendev.org/openstack/manila

For developer information please see HACKING.rst

You can raise bugs here https://bugs.launchpad.net/manila

Python client

https://opendev.org/openstack/python-manilaclient

  • Documentation for the project can be found at:

https://docs.openstack.org/manila/latest/

  • Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/manila/

  • Source for the project:

https://opendev.org/openstack/manila

  • Bugs:

https://bugs.launchpad.net/manila

  • Blueprints:

https://blueprints.launchpad.net/manila

  • Design specifications are tracked at:

https://specs.openstack.org/openstack/manila-specs/

Description
Shared filesystem management project for OpenStack.
Readme 192 MiB
Languages
Python 99.3%
Shell 0.7%