← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1630454] Re: shelve offload does not reduce core and RAM quota

 

As discussed in the comments, this is working as currently designed.
There's no opposition to changing the behavior but doing so would need a
spec to propose the behavior change along with addressing details around
how to handle the change for existing shelved offloaded instances during
an upgrade, etc.

If someone is interested in proposing and working on that, please send
an email to openstack-dev@xxxxxxxxxxxxxxxxxxx with the tag "[nova]" in
the subject line and we can get the ball rolling about it.

I'm going to close this bug as "Invalid" since it's working as designed
and I don't think keeping this open as a bug in our backlog is useful.

** 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/1630454

Title:
  shelve offload does not reduce core and RAM quota

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Currently, when an instance is shelved and offloaded, the usage quota
  for RAM and cores does not reduced although the resources themselves
  are no longer used on the hypervisor.

  The IP should continue to be accounted for as it is reserved.

  This fix is needed as we are looking to encourage our users to shelve
  less used instances when they get near their quota limits rather than
  asking for a quota increase.

  
  1) create a VM:
  openstack server create --image 7239c5e1-7b7b-4912-8c48-ee201c211a8f --flavor m1.tiny test-001

  2) check quota usage:
  nova absolute-limits

  +--------------------+------+-------+
  | Name               | Used | Max   |
  +--------------------+------+-------+
  | Cores              | 1    | 20    |
  | ImageMeta          | -    | 128   |
  | Instances          | 1    | 10    |
  | Keypairs           | -    | 100   |
  | Personality        | -    | 5     |
  | Personality Size   | -    | 10240 |
  | RAM                | 512  | 51200 |
  | Server Meta        | -    | 128   |
  | ServerGroupMembers | -    | 10    |
  | ServerGroups       | 0    | 10    |
  +--------------------+------+-------+

  3) shelve the instance and wait for it to offload
  openstack shelve test-001

  4) check quota usage:
  nova absolute-limits

  +--------------------+------+-------+
  | Name               | Used | Max   |
  +--------------------+------+-------+
  | Cores              | 1    | 20    |
  | ImageMeta          | -    | 128   |
  | Instances          | 1    | 10    |
  | Keypairs           | -    | 100   |
  | Personality        | -    | 5     |
  | Personality Size   | -    | 10240 |
  | RAM                | 512  | 51200 |
  | Server Meta        | -    | 128   |
  | ServerGroupMembers | -    | 10    |
  | ServerGroups       | 0    | 10    |
  +--------------------+------+———+

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


References