Check the length for volume, snapshot and other types name in Cinder
Currently, Cinder do not support string length check. Due to in database, for some perperties name, the length is defined 255 charaters, so create a volume with name exceeds 255 chars, it maybe cause dberror.
I have checked:
For mysql, create a volume with name exceeds 255 chars, it will truncate 255 chars of the user input as the displayname, the parameter --display-
For DB2, create a volume with name exceeds 255 chars, it will return one DBerror with 500 internal error.
I have checked in Nova component, and found in Nova component, all of the name string length have been checked, so we also need to do this check in Cinder to avoid DBerror and truncate error.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Dazhao Yu
- Direction:
- Needs approval
- Assignee:
- Dazhao Yu
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Started
- Milestone target:
- None
- Started by
- Dazhao Yu
- Completed by
- Sean McGinnis
Related branches
Related bugs
Sprints
Whiteboard
(smcginnis): Marking obsolete as this has been sitting out there for a long time. If this is still needed, please submit a new bp.
None