Murano Dashboard error while running " tox -e venv -- python manage.py runserver <IP:PORT>"

Asked by Gokul

I have faced the issue while running the command "tox -e venv -- python manage.py runserver <IP:PORT>" and "tox -e venv -- python manage.py migrate --noinput"

Error as follows:

venv runtests: commands[0] | python manage.py runserver <IP:PORT>
Traceback (most recent call last):
  File "manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 303, in execute
    settings.INSTALLED_APPS
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
    self._setup(name)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/root/murano/horizon/openstack_dashboard/settings.py", line 447, in <module>
    INSTALLED_APPS,
  File "/root/murano/horizon/openstack_dashboard/utils/settings.py", line 112, in update_dashboards
    for key, config in import_dashboard_config(modules):
  File "/root/murano/horizon/openstack_dashboard/utils/settings.py", line 45, in import_dashboard_config
    for key, submodule in six.iteritems(import_submodules(module)):
  File "/root/murano/horizon/openstack_dashboard/utils/settings.py", line 30, in import_submodules
    submodule = import_module(name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/root/murano/horizon/openstack_dashboard/local/enabled/_50_murano.py", line 46, in <module>
    HORIZON_CONFIG['legacy_static_settings'] = LEGACY_STATIC_SETTINGS
NameError: name 'HORIZON_CONFIG' is not defined
ERROR: InvocationError: '/root/murano/horizon/.tox/venv/bin/python manage.py runserver <IP:PORT>'
_______________________________________________________________________________ summary ________________________________________________________________________________
ERROR: venv: commands failed

can someone please help me on this.? I have try murano on openStack Newton (Ubuntu 16.04 LTS, VM on ESX)

Question information

Language:
English Edit question
Status:
Solved
For:
Murano Edit question
Assignee:
No assignee Edit question
Solved by:
Gokul
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Stan Lagun (slagun) said :
#1

I'm not sure but the problem might be in the fact that you have the /root/murano/horizon/openstack_dashboard/local/enabled/_50_murano.py file

_50_murano.py was the name of the plagin from previous version. Recent version has it split into several files:

openstack_dashboard/local/enabled/_50_dashboard_catalog.py
openstack_dashboard/local/enabled/_50_settings.py.example
openstack_dashboard/local/enabled/_51_muranodashboard.py
openstack_dashboard/local/enabled/_60_panel_group_browse.py
openstack_dashboard/local/enabled/_63_panel_murano_catalog.py
openstack_dashboard/local/enabled/_70_panel_group_manage.py
openstack_dashboard/local/enabled/_71_panel_murano_packages.py
openstack_dashboard/local/enabled/_72_panel_murano_images.py
openstack_dashboard/local/enabled/_73_panel_murano_categories.py
openstack_dashboard/local/enabled/_80_panel_group_applications.py
openstack_dashboard/local/enabled/_81_panel_applications_environments.py

Please check the murano-dashboard installation guide and your openstack_dashboard/local/enabled folder

Revision history for this message
Gokul (gokul-venkatachalam) said :
#2

I found it.

http://docs.openstack.org/developer/murano/administrator-guide/deploy_murano/install_manually.html

this document i have proceed with both newton prior and later release steps(Step 5).. That was the issue...I have re-install murano and proceed the document and skip prior to newton release step. Now i am able to view murano dashboard.

In dashboard i have faced some issues like,

Error: Unable to retrive project list
Error: There was an error communicating with server

murano.conf

[DEFAULT]
debug = true
verbose = true
rabbit_host = 172.xx.x.xxx
rabbit_userid = rabbituser
rabbit_password = *****
rabbit_virtual_host = /

[database]
connection = mysql+pymysql://murano:*****@hostname/murano

[keystone]
auth_url = 'http://172.xx.x.xxx:5000'

[keystone_authtoken]

auth_uri = http://hostname:5000
auth_url = http://hostname:35357
memcached_servers = hostname:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = murano
password = *****

[murano]
url = http://172.xx.x.xxx:8082

[rabbitmq]
host = 172.xx.x.xxx
login = rabbituser
password = ****
virtual_host = /

[networking]
default_dns = 8.8.8.8

[oslo_messaging_notifications]
driver = messagingv2

Revision history for this message
Gokul (gokul-venkatachalam) said :
#3

This was the error while iam running "tox -e venv -- python manage.py runserver 172.xx.xx.xx:9000"

DEBUG:keystoneauth.session:Request returned failure status: 404
Unable to retrieve project list.
Traceback (most recent call last):
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/openstack_auth/user.py", line 335, in authorized_tenants
    is_federated=self.is_federated)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/openstack_auth/utils.py", line 362, in get_project_list
    projects = client.tenants.list()
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/keystoneclient/v2_0/tenants.py", line 125, in list
    tenant_list = self._list('/tenants%s' % query, 'tenants')
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/keystoneclient/base.py", line 125, in _list
    resp, body = self.client.get(url, **kwargs)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 216, in get
    return self.request(url, 'GET', **kwargs)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 373, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 141, in request
    return self.session.request(url, method, **kwargs)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/keystoneauth1/session.py", line 607, in request
    raise exceptions.from_response(resp, method, url)
NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-77aafd8b-6534-4a16-a73d-b54d65dcc4ed)
[29/Nov/2016 13:46:39] "GET /identity/ HTTP/1.1" 200 26816
[29/Nov/2016 13:46:40] "GET /i18n/js/horizon+openstack_dashboard+muranodashboard/ HTTP/1.1" 200 2372
DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://openstack:5000/v3/tenants -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: {SHA1}7192bfb2b24c92cdbca20169c2cf565d0f4005ee" -H "Accept: application/json"
DEBUG:keystoneauth.session:RESP: [404] Date: Tue, 29 Nov 2016 13:47:54 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-d16ba550-8589-4162-bb8a-c547bc2cc9a9 Content-Length: 93 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
RESP BODY: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

Can anyone help me on this..

Revision history for this message
Gokul (gokul-venkatachalam) said :
#4

OPENSTACK_API_VERSIONS={"identity":3}
OPENSTACK_KEYSTONE_URL="http://192.168.100.56/v3"

Add these lines in local_settings.py

This solved the above issue :)

Revision history for this message
Gokul (gokul-venkatachalam) said :
#5

The above was resolved my Error: Unable to retrieve project list only

But i still face the issue

Error: There was an error communicating with server

Issue log was following while running "tox -e venv -- python manage.py runserver 172.xx.xx.xx:9000"

DEBUG:muranoclient.common.http:curl -i -X GET -H 'X-Auth-Token: {SHA1}dab7564cb78ca5810507fbe22a97e266b6704b25' -H 'User-Agent: python-muranoclient' -H 'Content-Type: application/json' http://openstack:8082/v1/environments?all_tenants=False
DEBUG:muranoclient.common.http:
HTTP/1.1 500 Internal Server Error
Content-Type: text/html; charset=UTF-8
Content-Length: 2729
X-Openstack-Request-Id: req-1ac2bcb1-acaa-448e-8cb2-5bd89eca3552
Date: Wed, 30 Nov 2016 17:08:12 GMT
Connection: keep-alive

{"title": "Internal Server Error", "code": 500, "error": {"message": "No module named memcache", "traceback": "Traceback (most recent call last):\n File \"/root/murano/murano/murano/api/middleware/fault.py\", line 130, in process_request\n return req.get_response(self.application)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/request.py\", line 1299, in send\n application, catch_exc_info=False)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/request.py\", line 1263, in call_application\n app_iter = application(self.environ, start_response)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/dec.py\", line 130, in __call__\n resp = self.call_func(req, *args, **self.kwargs)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/dec.py\", line 195, in call_func\n return self.func(req, *args, **kwargs)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 320, in __call__\n response = self.process_request(req)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 552, in process_request\n resp = super(AuthProtocol, self).process_request(request)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 348, in process_request\n data, user_auth_ref = self._do_fetch_token(request.user_token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 388, in _do_fetch_token\n data = self.fetch_token(token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 661, in fetch_token\n cached = self._cache_get_hashes(token_hashes)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 644, in _cache_get_hashes\n cached = self._token_cache.get(token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py\", line 214, in get\n with self._cache_pool.reserve() as cache:\n File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__\n return self.gen.next()\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py\", line 78, in reserve\n import memcache\nImportError: No module named memcache\n", "type": "ImportError"}, "explanation": "The server has either erred or is incapable of performing the requested operation."}

ERROR:muranodashboard.api:There was an error communicating with server
Traceback (most recent call last):
  File "/root/murano/murano-dashboard/muranodashboard/api/__init__.py", line 58, in handled_exceptions
    yield
  File "/root/murano/murano-dashboard/muranodashboard/environments/api.py", line 208, in environments_list
    environments = client.environments.list()
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/muranoclient/v1/environments.py", line 42, in list
    return self._list(path, 'environments')
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/muranoclient/common/base.py", line 64, in _list
    resp, body = self.api.json_request(url, 'GET', headers=headers)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/muranoclient/common/http.py", line 253, in json_request
    resp = self.request(url, method, **kwargs)
  File "/root/murano/horizon/.tox/venv/local/lib/python2.7/site-packages/muranoclient/common/http.py", line 211, in request
    raise exc.from_response(resp)
HTTPInternalServerError: {"title": "Internal Server Error", "code": 500, "error": {"message": "No module named memcache", "traceback": "Traceback (most recent call last):\n File \"/root/murano/murano/murano/api/middleware/fault.py\", line 130, in process_request\n return req.get_response(self.application)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/request.py\", line 1299, in send\n application, catch_exc_info=False)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/request.py\", line 1263, in call_application\n app_iter = application(self.environ, start_response)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/dec.py\", line 130, in __call__\n resp = self.call_func(req, *args, **self.kwargs)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/dec.py\", line 195, in call_func\n return self.func(req, *args, **kwargs)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 320, in __call__\n response = self.process_request(req)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 552, in process_request\n resp = super(AuthProtocol, self).process_request(request)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 348, in process_request\n data, user_auth_ref = self._do_fetch_token(request.user_token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 388, in _do_fetch_token\n data = self.fetch_token(token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 661, in fetch_token\n cached = self._cache_get_hashes(token_hashes)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 644, in _cache_get_hashes\n cached = self._token_cache.get(token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py\", line 214, in get\n with self._cache_pool.reserve() as cache:\n File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__\n return self.gen.next()\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py\", line 78, in reserve\n import memcache\nImportError: No module named memcache\n", "type": "ImportError"}, "explanation": "The server has either erred or is incapable of performing the requested operation."} (HTTP 500)
UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 774 of the file /usr/lib/python2.7/threading.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html.parser")

WARNING:py.warnings:UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 774 of the file /usr/lib/python2.7/threading.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html.parser")

Recoverable error: {"title": "Internal Server Error", "code": 500, "error": {"message": "No module named memcache", "traceback": "Traceback (most recent call last):\n File \"/root/murano/murano/murano/api/middleware/fault.py\", line 130, in process_request\n return req.get_response(self.application)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/request.py\", line 1299, in send\n application, catch_exc_info=False)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/request.py\", line 1263, in call_application\n app_iter = application(self.environ, start_response)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/dec.py\", line 130, in __call__\n resp = self.call_func(req, *args, **self.kwargs)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/dec.py\", line 195, in call_func\n return self.func(req, *args, **kwargs)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 320, in __call__\n response = self.process_request(req)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 552, in process_request\n resp = super(AuthProtocol, self).process_request(request)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 348, in process_request\n data, user_auth_ref = self._do_fetch_token(request.user_token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 388, in _do_fetch_token\n data = self.fetch_token(token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 661, in fetch_token\n cached = self._cache_get_hashes(token_hashes)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py\", line 644, in _cache_get_hashes\n cached = self._token_cache.get(token)\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py\", line 214, in get\n with self._cache_pool.reserve() as cache:\n File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__\n return self.gen.next()\n File \"/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py\", line 78, in reserve\n import memcache\nImportError: No module named memcache\n", "type": "ImportError"}, "explanation": "The server has either erred or is incapable of performing the requested operation."} (HTTP 500)
DEBUG:muranodashboard.environments.api:Environment::List []
DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://openstack:5000/v3/users/419c3da1f7fe428b81787f86e3d1e290/projects -H "X-Auth-Token: {SHA1}1319d66901cb4386689a784673df3d86fd16de4f" -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG:keystoneauth.session:RESP: [200] Date: Wed, 30 Nov 2016 17:08:13 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-02b61466-276d-4878-8348-edee615083bf Content-Length: 440 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
RESP BODY: {"links": {"self": "http://openstack:5000/v3/users/419c3da1f7fe428b81787f86e3d1e290/projects", "previous": null, "next": null}, "projects": [{"is_domain": false, "description": "Bootstrap project for initializing the cloud.", "links": {"self": "http://openstack:5000/v3/projects/2fbd2d9bd8614d08bc0ebaef9f950a57"}, "enabled": true, "id": "2fbd2d9bd8614d08bc0ebaef9f950a57", "parent_id": "default", "domain_id": "default", "name": "admin"}]}

can someone help on this..

Revision history for this message
Stan Lagun (slagun) said :
#6

"No module named memcache" indicates that the problem is in keystone because it is Keystone who uses memcache, not Murano. Maybe it is just a python dependency missing at your OpenStack site

Revision history for this message
Gokul (gokul-venkatachalam) said :
#7

May i know the dependency name?

i was installed python-memcache alone using apt-get

and now i have tried with install php-memcached.. But it wont help

Thanks in Advance :)

Revision history for this message
Gokul (gokul-venkatachalam) said :
#8

At last found the issue at rectified it...

I have installed murano api and murano dashboard in different venv. I have missed to install memcache in munano api venv. When i'm tried after install memcache in murano api venv..Now working fine.