Identity Liberty version does not return 'description' if not passed while create domain

Bug #1649245 reported by Ghanshyam Mann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Won't Fix
Undecided
Unassigned

Bug Description

While creating domain, we can pass optional description field and same will be returned in response. If not passed then empty string.

But there is different behaviour in case of liberty version. If description is not passed in create domain then it would not be returned in response.

I think issue is here - https://github.com/openstack/keystone/blob/stable/liberty/keystone/resource/backends/sql.py#L235-L242

Where Domain table does not have description field.

Higher version use Project table which have description and at least return empty description.

Failure can be seen here- http://logs.openstack.org/79/349379/8/check/gate-tempest-dsvm-full-ubuntu-trusty-liberty/fbc5b76/logs/testr_results.html.gz

Revision history for this message
Steve Martinelli (stevemar) wrote :

Hey Ghanshyam,

You are right, as of Mitaka a 'domain' now uses the 'project' database (with a special flag to indicate it's a domain). This resulted in getting the description for free, since it is an attribute of a project. Before this, if a description (or any key-value pair) was passed in upon creation, that data would be stored as an 'extra' field.

With all that said, I'm surprised this only came up now. Liberty is EOL as of 12-14-2016, the bug was filed on 12-12-2016. I'm not sure how to address this issue, but tempted to mark it as invalid. Thoughts?

Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

Yea, actually we were late on this bug. In Tempest, tests "create domain with no description" was not written correctly.

Bug timing was too tricky, now liberty gone :). I am just wondering if it break any prod env but seems no one complained till now.

I am ok with your call on Won't Fix or invalid.

Revision history for this message
Steve Martinelli (stevemar) wrote :

Thanks for confirming Ghanshyam, marking as invalid since Liberty is EOL.

Changed in keystone:
status: New → Won't Fix
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.