Creating murano environment with long name returns HTTP 500 code Internal Server Error

Bug #1475226 reported by Sergii Turivnyi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Lin Yang

Bug Description

Preconditions:
Devstack on VirtualBox
VM Ubuntu 14.04

Steps to reproduce:
1. Navigate to VM
2. Activate standard OpenStack clients
3. Execute command
"murano environment-create vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Expected result:
Valid error message

Actual result:
"Internal Server Error" (HTTP 500)

http://paste.openstack.org/show/380193/

Same situation with env-template-create
http://paste.openstack.org/show/380243/

Related bug: ​​
#1472239 Creating murano category with long name returns HTTP 500 code

affects: murano → python-muranoclient
Changed in python-muranoclient:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 0.6.1
tags: added: cli
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

500 response is not a problem of client but a problem of api.

affects: python-muranoclient → murano
Changed in murano:
milestone: 0.6.1 → none
tags: removed: cli
Lin Yang (lin-a-yang)
Changed in murano:
assignee: nobody → Lin Yang (lin-a-yang)
status: Confirmed → In Progress
Revision history for this message
Lin Yang (lin-a-yang) wrote :

This bug happens when create environment with too long name, which is not duplicate with #1472239 of creating category.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

Fix proposed to branch: master
Review: https://review.openstack.org/203574

Changed in murano:
milestone: none → liberty-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to murano (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/203905

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to murano (master)

Reviewed: https://review.openstack.org/203905
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=bdf33cb912bec58b4f1a29a0d353fb6baebdd7f1
Submitter: Jenkins
Branch: master

commit bdf33cb912bec58b4f1a29a0d353fb6baebdd7f1
Author: Lin Yang <email address hidden>
Date: Tue Jul 21 10:28:32 2015 +0800

    Restrict environment template name length to 255

    Previously, there is no limitation for environment template name length. A too
    long name will cause HTTP 500 Internal Server Error. So restrict name length to
    255, and response a clear reason to user.

    Change-Id: I90ebfa5c9cd36925d14a2a3cbf5287d3908d3e75
    Related-Bug: #1475226

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/203574
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=993d7937bef550f2261f5a20eccdc3ecdd627717
Submitter: Jenkins
Branch: master

commit 993d7937bef550f2261f5a20eccdc3ecdd627717
Author: Lin Yang <email address hidden>
Date: Mon Jul 20 18:39:33 2015 +0800

    Restrict environment name length to 255

    Previously, there is no limitation for environment name length. A too long name
    will cause HTTP 500 Internal Server Error. So restrict name length to 255, and
    response a clear reason to user.

    Change-Id: I1cebc9a838eb9424f81b464036fea250901d42c3
    Closes-Bug: #1475226

Changed in murano:
status: In Progress → Fix Committed
tags: added: kilo-backport-potential
Changed in murano:
status: Fix Committed → Fix Released
Changed in murano:
milestone: liberty-2 → 1.0.0
Changed in murano:
milestone: 1.0.0 → 1.0.1
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.