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 commit4dc5390ed0) (cherry picked from commitcb033344fa)
Team and repository tags
MANILA
You have come across an OpenStack shared file system service. It has identified itself as "Manila." It was abstracted from the Cinder project.
- Wiki: https://wiki.openstack.org/wiki/Manila
- Developer docs: https://docs.openstack.org/manila/latest/
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:
Description
Languages
Python
99.3%
Shell
0.7%