← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1459542] Re: Move check whether instance is booted from volume from libvirt/driver.py to API

 

So this behaviour is correct. The volume size is inferred from the
flavor, unless the user chooses otherwise. It's really not related. The
quota and usage in Nova is only tracking local disk, cinder tracks all
volumes.

Given all that, marking this as invalid for now.

** Changed in: nova
       Status: Confirmed => Invalid

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

Title:
  Move check whether instance is booted from volume from
  libvirt/driver.py to API

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  In the current "resize instance" implementation, if a instance is
  booted from volume, it is allowed to be resize down.

  But there are two problems:

  1. The current implementation allows resize down with a flavor with smaller 'root_gb' than the volume the instance
  booted from. This will cause differences between the actual 'root_gb' size and the one recorded in the data base. 
  We shouldn't allow resize down with flavor has less 'root_gb' than the volume.

  2. Check if the instance is booted from volume in driver.py is a bad
  implementation, we should perform it in API layer.

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


References