[rbd driver] slow on create encrypted volumes with temp file import

Bug #2055517 reported by Rico Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Undecided
Rico Lin

Bug Description

When create encrypted volumes, rbd driver will first use qemu-img to create local encryped file, and use rbd import to upload to rbd.
This has two problems:
First, it's slow during the entire file create and upload. And when it comes to large volumes, the performance will get much worse even there just few MB of actual data in it.
Second, we generate temp file just for rbd import, which makes extra disk ios and space consumption.

there is an easier way to do both qemu-img and rbd import with single qemu-img command: https://docs.ceph.com/en/quincy/rbd/qemu-rbd/#creating-images-with-qemu

That provides a fix with better performance and saves resources for us.

Rico Lin (rico-lin)
Changed in cinder:
assignee: nobody → Rico Lin (rico-lin)
summary: - [rbd driver] extremely slow on create encrypted volumes
+ [rbd driver] slow on create encrypted volumes with temp file import
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/910700

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to cinder (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/913436

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/cinder/+/913437

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.