← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
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):
  New

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


Follow ups

References