← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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    |
+--------------------+------+———+

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

Title:
  shelve offload does not reduce core and RAM quota

Status in OpenStack Compute (nova):
  New

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


Follow ups