Add quotas for Server Groups (V2 API compatibility & V2.1 support)

Bug #1368617 reported by OpenStack Infra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Rui Chen

Bug Description

https://review.openstack.org/104957
commit 597c46fde1ae36023b67061166e6c1c42677cd34
Author: Phil Day <email address hidden>
Date: Fri Jul 4 21:03:48 2014 +0000

    Add quotas for Server Groups (V2 API compatibility & V2.1 support)

    Server groups can be used to control the affinity and anti-affinity
    scheduling policy for a group of servers (instances). Whilst this is
    a useful mechanism for users such scheduling decisions need to be
    balanced by a deployers requirements to make effective use of the
    available capacity.

    This change adds quota values to constrain the number and size of
    server groups a user can create.

    Two new quota values are be introduced to limit the number of server
    groups and the number of servers in a server group. These will follow
    the existing pattern for quotas in that:

    * They are defined by config values, which also include the default
      value

    * They can be defined per project or per user within a project

    * A value of -1 for either quota will be treated as unlimited

    * Defaults can be set via the quota groups API

    * Values may be changed at any time but will only take effect at the next
      server group or server create. Reducing the quota will not affect any
      existing groups, but new servers will not be allowed into group
      that have become over quota.

    This is part one of a linked sequences of changes that implement the
    new quotas - split to make the reviews easier.

    This part adds the definition of the new quota values, but leaves the
    V2 API unchanged. The V2.1 API is updated as it shows all quota values.

    The second part adds the new V2 API extension to make the new quota
    values visible and changeable. At this point a Tempest change is
    required to get a clean run as it checks for a specific set of
    values.

    The third part implements the quota checks themselves.

    Thanks to Cyril Roelandt for supplying some of the unit tests.

    Co-authored-by: Cyril Roelandt <email address hidden>

    Implements: blueprint server-group-quotas
    DocImpact

    Change-Id: Ib281e43eabfbd176454bde7f0622d46fb04fcb79

Tags: nova
Tom Fifield (fifieldt)
affects: openstack-manuals → openstack-api-site
Revision history for this message
Anne Gentle (annegentle) wrote :

Need to make sure samples os-quota-sets for http://developer.openstack.org/api-ref.html

are updated, and check https://github.com/openstack/api-site/blob/master/api-ref/src/wadls/compute-api/src/v2.1/wadl/os-quota-sets-v2.1.wadl contains any new info given in the commit message above.

Changed in openstack-api-site:
status: New → Triaged
importance: Undecided → Medium
Rui Chen (kiwik-chenrui)
Changed in openstack-api-site:
assignee: nobody → Rui Chen (kiwik-chenrui)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

Fix proposed to branch: master
Review: https://review.openstack.org/144861

Changed in openstack-api-site:
status: Triaged → In Progress
Revision history for this message
Rui Chen (kiwik-chenrui) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/144861
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=bd97500d00117fd16b8b33d2b05ba250bda47160
Submitter: Jenkins
Branch: master

commit bd97500d00117fd16b8b33d2b05ba250bda47160
Author: Rui Chen <email address hidden>
Date: Sun Jan 4 11:40:30 2015 +0800

    Add quotas for Server Groups (V2.1 API change)

    Change-Id: I1e81c8c3c9b9e8d4e395f762881a981222ba5332
    Closes-bug: #1368617

Changed in openstack-api-site:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.