summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorRajat Dhasmana <rajatdhasmana@gmail.com>2021-06-15 21:09:20 -0400
committerRajat Dhasmana <rajatdhasmana@gmail.com>2021-07-28 11:14:46 -0400
commit85c7a06687291eba30510d63d3ee8b9e9cb33c5f (patch)
treed21f453e0e0c178111db10fbd4d1f66ff9940fa1 /releasenotes
parent82d87230491eda4bbef63b0b1acce1ebaf5a6e72 (diff)
downloadglance_store-85c7a06687291eba30510d63d3ee8b9e9cb33c5f.tar.gz
Glance cinder nfs: Block creating qcow2 volumes
There's an issue when cinder nfs is configured as glance backend and the image is > 1GB i.e. extend operation is performed on volume. Currently glance writes the qcow2 header in the raw volume and cinder nfs driver used to work on format autodetection which is changed to manual detection here[1] This fixes the extend volume problem for raw volumes, however, if cinder nfs is configured to create qcow2 volumes then we will run into the same problem. This patch blocks creating images when the nfs volume is qcow2. Refactoring work: 1) attachment_delete call is removed in nfs related code as it was already done in the finally block 2) handle_exceptions decorator is removed from volume delete method as it raises BackendException and incase when volume is not found (possibly deleted manually), the image deletion fails so we don't want to raise any error in this case [1] https://review.opendev.org/c/openstack/cinder/+/761152 Closes-Bug: #1901138 Change-Id: I8ce6f36f1cb4b0ed6bcc5f3869fab3bb64fe3390
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/cinder-nfs-block-qcow2-vol-4fed58b0afafc980.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/releasenotes/notes/cinder-nfs-block-qcow2-vol-4fed58b0afafc980.yaml b/releasenotes/notes/cinder-nfs-block-qcow2-vol-4fed58b0afafc980.yaml
new file mode 100644
index 0000000..b438285
--- /dev/null
+++ b/releasenotes/notes/cinder-nfs-block-qcow2-vol-4fed58b0afafc980.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+ - |
+ `Bug #1901138 <https://bugs.launchpad.net/glance-store/+bug/1901138>`_:
+ Blocked creation of images when glance store is cinder,
+ cinder backend is nfs and volumes created are qcow2 format.