← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1627597] Re: Nova instance backup with rotation 0 creates backup and deletes it immediately

 

** Changed in: nova
       Status: In Progress => Won't Fix

-- 
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/1627597

Title:
  Nova instance backup with rotation 0 creates backup and deletes it
  immediately

Status in OpenStack Compute (nova):
  Won't Fix
Status in OpenStack Security Advisory:
  Won't Fix

Bug description:
  If you create an instance backup by passing rotation 0 to the backup
  api, nova creates an image and takes a snapshot of an instance and
  then deletes it immediately. Any malicious user can use this loophole
  by calling backup api for all instances belonging to his/her project
  causing consumption of glance and nova resources at the expense of
  service provider.

  Steps to reproduce:

  1. Create the instance

  $ nova boot --flavor <flavor_id> --image <image_id> <instance_name>

  2. Create the instance backup using the backup api by giving the
  rotation parameter value as 0

  $ nova backup <instance_id> <name> daily 0

  3. Check the glance image list

  $ glance image-list

  Output:
  In glance images you will not found backup image as it will be deleted immediately after creation.

  Expected result:
  If user passes rotation 0, then nova shouldn’t create an image and take a snapshot of an instance and upload it to glance service or minimum value of rotation should be changed from 0 to 1.

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