← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1346525] [NEW] Snapshots when using RBD backend make full copy then upload unnecessarily

 

Public bug reported:

When performing a snapshot a local copy is made. In the case of RBD, it
reads what libvirt thinks is a raw block device and then converts that
to a local raw file. The file is then uploaded to glance, which reads
the whole raw file and stores it in the backend, if the backend is Ceph
this is completely unnecessary. The fix should go something like this:


1. Tell Ceph to make a snapshot of the RBD
2. Get Ceph metadata from backend, send that to Glance
3. Glance gets metadata, if it has Ceph backend no download is necessary, if it doesn't download image from Ceph location, store in backend

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1346525

Title:
  Snapshots when using RBD backend make full copy then upload
  unnecessarily

Status in OpenStack Compute (Nova):
  New

Bug description:
  When performing a snapshot a local copy is made. In the case of RBD,
  it reads what libvirt thinks is a raw block device and then converts
  that to a local raw file. The file is then uploaded to glance, which
  reads the whole raw file and stores it in the backend, if the backend
  is Ceph this is completely unnecessary. The fix should go something
  like this:

  
  1. Tell Ceph to make a snapshot of the RBD
  2. Get Ceph metadata from backend, send that to Glance
  3. Glance gets metadata, if it has Ceph backend no download is necessary, if it doesn't download image from Ceph location, store in backend

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1346525/+subscriptions


Follow ups

References