Add error handling for maximum length of values

Bug #1406457 reported by Adrian Otto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Triaged
Wishlist
rajiv

Bug Description

Add graceful error handling to politely decline to set a value, such as a pod label or image name that would cause the value to exceed the maximum configured length. Make the maximum configured length settable in the magnum configuration file. Allow different maximum lengths to be applied to different fields of each object. Use sensible defaults for these values that are known to work with a standard MySQL backing store.

Example of code needing this work applied:
https://review.openstack.org/143783

Tags: tech-debt
Adrian Otto (aotto)
Changed in magnum:
status: New → Triaged
importance: Undecided → Wishlist
Changed in magnum:
assignee: nobody → Madhuri Kumari (madhuri-rai07)
Adrian Otto (aotto)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/179416
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=88fd313abd6f391a0ed537221de6b8f49f42ecd0
Submitter: Jenkins
Branch: master

commit 88fd313abd6f391a0ed537221de6b8f49f42ecd0
Author: Tom Cammann <email address hidden>
Date: Fri May 1 15:56:46 2015 +0100

    Add string length validation to names in APIs

    Add string length validation bays, bay models and containers.

    Change-Id: I50f39e6416bda1a64f8bd997a0bb4c38ead63bfd
    Partial-Bug: 1406457

Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
Revision history for this message
Murali Allada (murali-allada) wrote :

Removing assignee.

We need to checking all attributes and errors and fix them.

Changed in magnum:
assignee: Madhuri Kumari (madhuri-rai07) → nobody
rajiv (rajiv-kumar)
Changed in magnum:
assignee: nobody → rajiv (rajiv-kumar)
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.