← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1785164] Re: Identity API v3: POST method for "Create Limits" is abnormal for a domain-id

 

Reviewed:  https://review.openstack.org/588460
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=bf3a8c09a095c2b037f114ba4770b59d6351c73b
Submitter: Zuul
Branch:    master

commit bf3a8c09a095c2b037f114ba4770b59d6351c73b
Author: wangxiyuan <wangxiyuan@xxxxxxxxxx>
Date:   Fri Aug 3 15:33:44 2018 +0800

    Do not allow create limits for domain
    
    Keystone now doesn't support domain-level limits. When creating
    limits, if the input project_id is a domain id, it should not be
    allowed.
    
    Change-Id: Ifafd96113499d533341870960f294dd5fada477d
    Closes-Bug: #1785164


** Changed in: keystone
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1785164

Title:
  Identity API v3: POST method for "Create Limits" is abnormal for a
  domain-id

Status in OpenStack Identity (keystone):
  Fix Released

Bug description:
  /v3/limits POST method for "Create Limits"

  When setting a domain-id for "project_id" in request body, it still successfully creates a limit for the domain.
  It is strange since we use a "project_id" to create limits for domain.

  My test request was:
  {
      "limits":[
          {
              "service_id": "10656fdd41e1429f8cb57f097935f327",
              "project_id": "default",
              "region_id": "RegionOne",
              "resource_name": "snapshot",
              "resource_limit": 5
          },
          {
              "service_id": "10656fdd41e1429f8cb57f097935f327",
              "project_id": "default",
              "resource_name": "volume",
              "resource_limit": 10,
              "description": "Number of volumes for project"
          }
      ]
  }
  and it successfully returned 201 - Created.

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


References