← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1362291] Re: Project creation attributes in Identity API are inconsistent with implementation

 

The implementation does make sure a `domain_id` is supplied in the
project reference:

https://github.com/openstack/keystone/blob/f4f0bdf092edf7ba6e74019f5524629fd2ad85ce/keystone/assignment/controllers.py#L399

This invalids this bug since the user doesn't *have* to specific a
`domain_id` in the request, the Keystone server will populate it
automatically, making `domain_id` optional. The documentation was
correct.

** Changed in: keystone
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1362291

Title:
  Project creation attributes in Identity API are inconsistent with
  implementation

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  The Identity API lists `domain_id` as an optional attribute when
  creating a project. If a `domain_id` is optional, it can be supplied
  in the request as a valid id string, supplied in the request with
  value None, or not supplied in the request at all.

  Currently, the Keystone implementation doesn't allow the `domain_id`
  attribute to be nullable when creating a project [2].

  Either the implementation has to be updated to allow for truly
  optional `domain_id` attributes in project references, or `domain_id`
  attributes need to be represented as required in the Identity API so
  that it is not misleading to our users.

  
  [1] https://github.com/openstack/identity-api/blob/fadef23172a32d4c98c92edff4e6cc75d2fb5248/v3/src/markdown/identity-api-v3.md#projects-v3projects
  [2] https://github.com/openstack/keystone/blob/f4f0bdf092edf7ba6e74019f5524629fd2ad85ce/keystone/common/sql/migrate_repo/versions/034_havana.py#L114

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


References