User can't run scale action in a big K8s Cluster App

Bug #1616997 reported by Anastasia Kuznetsova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Undecided
Stan Lagun

Bug Description

Environment: MOS GA 9.0 (stable/mitaka), Murano as a plugin, Glare is enabled
root@node-4:~# dpkg --list | grep murano
ii murano-api 1:3.0.0~b2-54 all
ii murano-common 1:3.0.0~b2-54 all
ii murano-engine 1:3.0.0~b2-54 all
ii murano-glance-artifacts-plugin 1:3.0.0~b2-54 all
ii murano-rabbitmq 1:3.0.0~b2-54 all
ii python-murano 1:3.0.0~b2-54 all
ii python-murano-dashboard 1:3.0.0~b2-4~u14.04+mos17 all
ii python-muranoclient 0.10.0-3~u14.04+mos1 all
root@node-4:~# dpkg --list | grep yaql
ii python-yaql 1.1.0-1~u14.04+mos1 all

Steps to reproduce:
1. Log in WebUI
2. Upload Kubernetes Cluster application and its dependencies to the Murano
3. Upload any Docker application that will be deployed in Kubernetes Cluster.
4. Create Murano environment
5. Add Kubernetes Cluster to the env:
   - Set cluster name
   - Initial number on Kubernetes Nodes = 50
   - Maximum number of Kubernetes Nodes = 60
   - Leave all other fields as is
   - Fill instance configuration form
6. Add Kubernetes Pod to the env:
   - Created K8s Cluster should be chosen in the Kubernetes Cluster dropdown
7. Add Docker application to the env:
   - Created K8s Pod should be chosen as a Container Host
8. Deploy env
9. After the deployment try to run "ScaleNodeUp" action and scale K8s cluster

Expected result:
New minion node was spawned

Observed result:
Unable to run action

Error in horizon log:
2016-08-24 09:45:29,136 3092 ERROR django.request Internal Server Error: /horizon/murano/fb9d053b5cd8451ebc65d78a176b73c5/start_action/5f3225cb-71a0-4b4e-9507-3bfcc651d210_scaleNodesUp/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/muranodashboard/environments/views.py", line 273, in post
    task_id = api.run_action(request, environment_id, action_id)
  File "/usr/lib/python2.7/dist-packages/muranodashboard/environments/api.py", line 334, in run_action
    return mc.actions.call(environment_id, action_id)
  File "/usr/lib/python2.7/dist-packages/muranoclient/v1/actions.py", line 28, in call
    resp, body = self.api.json_request(url, 'POST', body=arguments)
  File "/usr/lib/python2.7/dist-packages/muranoclient/common/http.py", line 253, in json_request
    resp = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/muranoclient/common/http.py", line 211, in request
    raise exc.from_response(resp)
HTTPInternalServerError: {"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "(_mysql_exceptions.DataError) (1406, \"Data too long for column 'description' at row 1\") [SQL: u'INSERT INTO task (created, updated, id, started, finished, description, environment_id, action, result) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)'] [parameters: (datetime.datetime(2016, 8, 24, 9, 45, 29, 110125), datetime.datetime(2016, 8, 24, 9, 45, 29, 110141), 'f294ec098c14445da3be90cd31fc8225', datetime.datetime(2016, 8, 24, 9, 45, 29, 110365), None, '{\"defaultNetworks\": {\"environment\": {\"autoUplink\": true, \"name\": \"k8s_30gateways-network\", \"externalRouterId\": \"17a9e644-6bb0-43b6-b0f4-f44febc3d057\", \"dnsNameservers\": [\"8.8.8.8\"], ....)]}}

summary: - User can't run scale action in a big K8s Cluster
+ User can't run scale action in a big K8s Cluster App
Revision history for this message
Valerii Kovalchuk (vakovalchuk) wrote :

Shouldn't it be in murano-apps?

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/363092

Changed in murano:
assignee: nobody → Stan Lagun (slagun)
status: New → In Progress
Changed in murano:
milestone: none → newton-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

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

commit 61625103a328f3377afd5565d246d3bc43bee766
Author: Stan Lagun <email address hidden>
Date: Tue Aug 30 11:07:36 2016 -0700

    Increase description column length in task table

    Previously we changed description column in environment
    table from TEXT to LONGTEXT but forgot to do the same
    for similar column in the task task table

    Change-Id: I3a2bd0204a9fac2d583d8742ca72868bd20c49b4
    Closes-Bug: #1616997

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano 3.0.0.0b3

This issue was fixed in the openstack/murano 3.0.0.0b3 development milestone.

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.