Bug 1041727 - [RFE][cinder]: Check the length for volume, snapshot and other types name in Cinder
Summary: [RFE][cinder]: Check the length for volume, snapshot and other types name in ...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/cind...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 18:50 UTC by RHOS Integration
Modified: 2016-02-02 05:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 17:01:53 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description RHOS Integration 2013-12-12 18:50:57 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/cinder/+spec/string-length-check-support.

Description:

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-description also has this issue

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.

Specification URL (additional information):

None


Note You need to log in before you can comment on or make changes to this bug.