User can't upload new Murano applications of size more than 64KB

Bug #1384657 reported by Timur Nurlygayanov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Undecided
Unassigned
5.0.x
Won't Fix
High
MOS Murano
5.1.x
Invalid
Undecided
Unassigned
6.0.x
Invalid
Undecided
Unassigned

Bug Description

Note:
Reproduced only on MOS 5.0 and MOS 5.0.1.

Steps To Reproduce:
1. Deploy OpenStack with Murano using MOS 5.0.1 (should reproduced for 5.x and 6.x).
2. Login to Horizon dashboard and navigate to Murano > Manage > Package Definitions.
3. Upload new application in zip archive (attached to bug description).

Observed Result:
Error message in Horizon:
Error: Unable to upload package

In horizon logs we can see the following traceback:
2014-10-23 09:49:56.606 27744 INFO eventlet.wsgi [-] Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/eventlet/wsgi.py", line 389, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/muranoapi/openstack/common/wsgi.py", line 197, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 582, in __call__
    return self.app(env, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/muranoapi/openstack/common/wsgi.py", line 197, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/lib/python2.6/site-packages/routes/middleware.py", line 131, in __call__
    response = self.app(environ, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/muranoapi/openstack/common/wsgi.py", line 384, in __call__
    action_result = self.execute_action(action, request, **action_args)
  File "/usr/lib/python2.6/site-packages/muranoapi/openstack/common/wsgi.py", line 398, in execute_action
    return self.dispatch(self.controller, action, request, **action_args)
  File "/usr/lib/python2.6/site-packages/muranoapi/openstack/common/wsgi.py", line 407, in dispatch
    return method(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/muranoapi/api/v1/catalog.py", line 193, in upload
    package = db_api.package_upload(package_meta, req.context.tenant)
  File "/usr/lib/python2.6/site-packages/muranoapi/db/catalog/api.py", line 392, in package_upload
    package.save(session)
  File "/usr/lib/python2.6/site-packages/muranoapi/db/models.py", line 43, in save
    session.flush()
  File "/usr/lib/python2.6/site-packages/muranoapi/openstack/common/db/sqlalchemy/session.py", line 462, in _wrap
    raise exception.DBError(e)
DBError: (DataError) (1406, "Data too long for column 'archive' at row 1")

Tags: murano
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Murano application package ^^^

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Fix:
in /usr/lib/python2.6/site-packages/muranoapi/db/models.py need to change

archive = sa.Column(sa.LargeBinary)

to

archive = sa.Column(sa.LargeBinary())

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Reproduced only on MOS 5.0 and MOS 5.0.1.

Will be fixed in MOS 5.1.1

description: updated
ruhe (ruhe)
summary: - User can't upload new Murano applications
+ User can't upload new Murano applications of size more than 64KB
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.