Regions resource should allow NULL description

Bug #1272459 reported by Jay Pipes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Confirmed
Medium
Jay Pipes

Bug Description

Currently, the description column in the SQL driver's Region model is required. This is an optional attribute and should allow NULL values.

Fix is to add a migration that sets the description column to nullable.

Jay Pipes (jaypipes)
Changed in keystone:
assignee: nobody → Jay Pipes (jaypipes)
Revision history for this message
Dolph Mathews (dolph) wrote :

Migration 37 has unique=True and nullable=False on the description column

Changed in keystone:
importance: Undecided → Medium
status: New → Confirmed
Dolph Mathews (dolph)
Changed in keystone:
milestone: none → icehouse-3
Dolph Mathews (dolph)
Changed in keystone:
milestone: icehouse-3 → icehouse-rc1
Revision history for this message
Lance Bragstad (lbragstad) wrote :
Revision history for this message
Lance Bragstad (lbragstad) wrote :

If we wanted to roll the nullable=False fix in, we could do it in the migration (043 https://review.openstack.org/#/c/79159/4/keystone/common/sql/migrate_repo/versions/043_fixup_region_description.py ) that I have up. Last Dolph and I spoke about it though, it was decided to keep it non nullable and carry the logic for the case where the user doesn't supply a description in the request in the manager https://review.openstack.org/#/c/78658/3/keystone/catalog/core.py

Just wanted to mention that in case it is decided that we should make the description column nullable.

Revision history for this message
Dolph Mathews (dolph) wrote :

I think nullable=True is fine, as long as we can make it optional in the API and default it to an empty string in the backend.

Revision history for this message
Dolph Mathews (dolph) wrote :

I meant nullable=False!

Revision history for this message
Dolph Mathews (dolph) wrote :

Apologies- the fix landed referencing a dupe, so I reversed the dupe status.

Changed in keystone:
milestone: icehouse-rc1 → none
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.