Web UI: user can not create services

Bug #1192620 reported by Timur Nurlygayanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Ekaterina Chernova

Bug Description

Steps To Reproduce:
1. Install OpenStack from devstack
2. Install Murano dashboard by the documentation on murano.mirantis.com
3. Restart apache service:
{code}sudo service apache2 restart{code}
4. Login to default OpenStack Horizon WebUI
5. Navigate to Project > Environments
6. Create new environment 'test'
7. Navigate to the list of services and create new service (for example, AD service)

Observed Result:
User can not create new services. Looks like it can be problem with sessions handling configuration.
Please see attached video file for more detailed information.

Error Messages In Log Files:
/var/log/apache2/horizon_error.log

[Wed Jun 19 09:26:24 2013] [error] DEBUG:muranoclient.common.http:curl -i -X GET -H 'X-Auth-Token: 7045a3e2bde8bee0d080bfafe4ee8031' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-muranoclient' http://localhost:8082environments/create/activeDirectories
[Wed Jun 19 09:26:24 2013] [error] DEBUG:muranoclient.common.http:
[Wed Jun 19 09:26:24 2013] [error] HTTP/1.1 500 Internal Server Error
[Wed Jun 19 09:26:24 2013] [error] date: Wed, 19 Jun 2013 09:26:24 GMT
[Wed Jun 19 09:26:24 2013] [error] content-length: 2691
[Wed Jun 19 09:26:24 2013] [error] content-type: text/plain
[Wed Jun 19 09:26:24 2013] [error] connection: close
[Wed Jun 19 09:26:24 2013] [error]
[Wed Jun 19 09:26:24 2013] [error] Traceback (most recent call last):
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 383, in handle_one_response
[Wed Jun 19 09:26:24 2013] [error] result = self.application(self.environ, start_response)
[Wed Jun 19 09:26:24 2013] [error] File "/opt/stack/python-keystoneclient/keystoneclient/middleware/auth_token.py", line 461, in __call__
[Wed Jun 19 09:26:24 2013] [error] return self.app(env, start_response)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
[Wed Jun 19 09:26:24 2013] [error] resp = self.call_func(req, *args, **self.kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
[Wed Jun 19 09:26:24 2013] [error] return self.func(req, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranoapi/openstack/common/wsgi.py", line 194, in __call__
[Wed Jun 19 09:26:24 2013] [error] response = req.get_response(self.application)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
[Wed Jun 19 09:26:24 2013] [error] application, catch_exc_info=False)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
[Wed Jun 19 09:26:24 2013] [error] app_iter = application(self.environ, start_response)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
[Wed Jun 19 09:26:24 2013] [error] return resp(environ, start_response)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
[Wed Jun 19 09:26:24 2013] [error] response = self.app(environ, start_response)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
[Wed Jun 19 09:26:24 2013] [error] return resp(environ, start_response)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
[Wed Jun 19 09:26:24 2013] [error] resp = self.call_func(req, *args, **self.kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
[Wed Jun 19 09:26:24 2013] [error] return self.func(req, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranoapi/openstack/common/wsgi.py", line 378, in __call__
[Wed Jun 19 09:26:24 2013] [error] action_result = self.execute_action(action, request, **action_args)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranoapi/openstack/common/wsgi.py", line 392, in execute_action
[Wed Jun 19 09:26:24 2013] [error] return self.dispatch(self.controller, action, request, **action_args)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranoapi/openstack/common/wsgi.py", line 401, in dispatch
[Wed Jun 19 09:26:24 2013] [error] return method(*args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranoapi/api/v1/active_directories.py", line 35, in index
[Wed Jun 19 09:26:24 2013] [error] services = get(environment_id, 'activeDirectories', session_id)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranoapi/db/services/systemservices.py", line 61, in get_services
[Wed Jun 19 09:26:24 2013] [error] environment_id, session_id)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranoapi/db/services/environments.py", line 164, in get_environment_description
[Wed Jun 19 09:26:24 2013] [error] env_description = env.description
[Wed Jun 19 09:26:24 2013] [error] AttributeError: 'NoneType' object has no attribute 'description'
[Wed Jun 19 09:26:24 2013] [error]
[Wed Jun 19 09:26:24 2013] [error]
[Wed Jun 19 09:26:24 2013] [error] WARNING:muranoclient.common.http:Request returned failure status.
[Wed Jun 19 09:26:24 2013] [error] ERROR:django.request:Internal Server Error: /project/murano/create
[Wed Jun 19 09:26:24 2013] [error] Traceback (most recent call last):
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/core/handlers/base.py", line 111, in get_response
[Wed Jun 19 09:26:24 2013] [error] response = callback(request, *callback_args, **callback_kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 38, in dec
[Wed Jun 19 09:26:24 2013] [error] return view_func(request, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 54, in dec
[Wed Jun 19 09:26:24 2013] [error] return view_func(request, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 38, in dec
[Wed Jun 19 09:26:24 2013] [error] return view_func(request, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/views/generic/base.py", line 48, in view
[Wed Jun 19 09:26:24 2013] [error] return self.dispatch(request, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/contrib/formtools/wizard/views.py", line 223, in dispatch
[Wed Jun 19 09:26:24 2013] [error] response = super(WizardView, self).dispatch(request, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/views/generic/base.py", line 69, in dispatch
[Wed Jun 19 09:26:24 2013] [error] return handler(request, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/contrib/formtools/wizard/views.py", line 259, in post
[Wed Jun 19 09:26:24 2013] [error] files=self.storage.get_step_files(self.steps.current))
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranodashboard-2013.1.a148.g4d32f23-py2.7.egg/muranodashboard/panel/views.py", line 123, in get_form
[Wed Jun 19 09:26:24 2013] [error] form = super(Wizard, self).get_form(step, data, files)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/Django-1.4.5-py2.7.egg/django/contrib/formtools/wizard/views.py", line 395, in get_form
[Wed Jun 19 09:26:24 2013] [error] return self.form_list[step](**kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranodashboard-2013.1.a148.g4d32f23-py2.7.egg/muranodashboard/panel/forms.py", line 257, in __init__
[Wed Jun 19 09:26:24 2013] [error] request, *args, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranodashboard-2013.1.a148.g4d32f23-py2.7.egg/muranodashboard/panel/forms.py", line 213, in __init__
[Wed Jun 19 09:26:24 2013] [error] domains = api.service_list_by_type(request, environment_id, ad)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/muranodashboard-2013.1.a148.g4d32f23-py2.7.egg/muranodashboard/panel/api.py", line 216, in service_list_by_type
[Wed Jun 19 09:26:24 2013] [error] instances = service_client.list(environment_id, session_id)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/python_muranoclient-2013.1.a90.gbe1bcaf-py2.7.egg/muranoclient/v1/services.py", line 38, in list
[Wed Jun 19 09:26:24 2013] [error] headers=headers)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/python_muranoclient-2013.1.a90.gbe1bcaf-py2.7.egg/muranoclient/common/base.py", line 55, in _list
[Wed Jun 19 09:26:24 2013] [error] resp, body = self.api.json_request('GET', url, headers=headers)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/python_muranoclient-2013.1.a90.gbe1bcaf-py2.7.egg/muranoclient/common/http.py", line 177, in json_request
[Wed Jun 19 09:26:24 2013] [error] resp, body_iter = self._http_request(url, method, **kwargs)
[Wed Jun 19 09:26:24 2013] [error] File "/usr/local/lib/python2.7/dist-packages/python_muranoclient-2013.1.a90.gbe1bcaf-py2.7.egg/muranoclient/common/http.py", line 160, in _http_request
[Wed Jun 19 09:26:24 2013] [error] raise exceptions.from_response(resp)
[Wed Jun 19 09:26:24 2013] [error] HTTPInternalServerError: HTTPInternalServerError (HTTP 500)

Tags: ui
Changed in murano:
status: In Progress → Fix Committed
Changed in murano:
milestone: none → 0.2
status: Fix Committed → Fix Released
summary: - Web UI: user can not create services
+ Launchpad Bug #1192620: Web UI: user can not create services
Changed in murano:
importance: Critical → Medium
status: Fix Released → New
summary: - Launchpad Bug #1192620: Web UI: user can not create services
+ Web UI: user can not create services
Changed in murano:
status: New → Fix Released
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.