cinder/cinder/image
Rafael Weingärtner c43fb490b2 Filter reserved image properties
Cinder is currently not able to upload a volume that is based on an
image back to glance. This bug is triggered if glance multistore is
enabled (devstack in this example).

When enabling multistore, the following properties will be stored in Cinder:
* os_glance_failed_import=''
* os_glance_importing_to_stores=''

Those properties will cause problems when Cinder tries to perform some
actions with Glance. Error msg:
```
cinderclient.exceptions.BadRequest: HTTP 403 Forbidden: Access was denied to this resource.: Attribute 'os_glance_failed_import' is reserved. (HTTP 400)
```

Nova had the same issue and solved it with:
50fdbc752a/releasenotes/notes/absolutely-non-inheritable-image-properties-85f7f304fdc20b61.yaml

and

dda179d3f9

Therefore, this patch is intended to apply a similar solution in Cinder.

Change-Id: I79d70543856c01a45e2d8c083ab8df6b9c047ebc
Closes-Bug: #1945500
2023-01-31 20:57:22 -03:00
..
accelerators Leverage hw accelerator in image compression 2019-09-18 03:01:18 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
accelerator.py Signature of base method in class 'AccelBase' 2021-10-15 10:59:20 +08:00
cache.py mypy: image cache 2021-08-10 10:26:39 -04:00
glance.py Use modern type annotation format for collections 2022-05-18 10:01:18 -04:00
image_utils.py Filter reserved image properties 2023-01-31 20:57:22 -03:00