Bug 1041727

Summary: [RFE][cinder]: Check the length for volume, snapshot and other types name in Cinder
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/cinder/+spec/string-length-check-support
Whiteboard: upstream_milestone_none upstream_status_started upstream_definition_obsolete
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 17:01:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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