Ask Your Question
0

Murano-UI doesn't work in RDO

asked 2017-11-08 05:01:40 -0600

iOsX gravatar image

Hi everyone,

I have configured Murano for RDO Pike release. Two services are running:

[root@rdo-poc murano(keystone_admin)]# systemctl -l | grep murano
  murano-api.service           loaded active running   OpenStack Murano API Service
  murano-engine.service        loaded active running   Openstack Murano Engine Service

However, after installation of "openstack-murano-ui.noarch" my Horizon dashboard doesn't work. I see the page with note:

Something went wrong! An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.

In journals at the moment of restarting I see nothing that concerns me.

Regards Oleg

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2017-11-09 07:40:30 -0600

jep gravatar image

I had a similar problem in CentOS 7, and fixed it by editing the dashboard settings with:

vi /etc/openstack-dashboard/local_settings

    DATABASES = {
      'default': {
      'ENGINE': 'django.db.backends.sqlite3',
      'NAME': '/var/cache/murano-dashboard/murano-dashboard.sqlite',
      }
    }

    SESSION_ENGINE = 'django.contrib.sessions.backends.db'

    DEBUG_PROPAGATE_EXCEPTIONS = DEBUG

Also, in apache:

vi /usr/lib/systemd/system/httpd.service
--
#PrivateTmp=true
PrivateTmp=false
--
systemctl daemon-reload
systemctl restart httpd

... Then I realized the database referenced above had not been created, so I did it manually:

sqlite3 /var/cache/murano-dashboard/murano-dashboard.sqlite
chown apache:apache /var/cache/murano-dashboard/murano-dashboard.sqlite

/usr/share/openstack-dashboard/manage.py makemigrations
/usr/share/openstack-dashboard/manage.py migrate

murano-db-manage --config-file /etc/murano/murano.conf  upgrade
edit flag offensive delete link more

Comments

Unbelievable, it works :) Thanks a lot, man!

iOsX gravatar imageiOsX ( 2017-11-10 00:18:51 -0600 )edit
0

answered 2017-11-08 07:33:00 -0600

iOsX gravatar image

I have found README file inside "openstack-murano-ui.noarch" RPM package.

cat /usr/share/doc/openstack-murano-ui-4.0.0/README.rst
....
For developer purposes, please symlink the following OpenStack Dashboard plugin
files:
* muranodashboard/local/enabled/*.py into
  horizon/openstack_dashboard/local/enabled/
* muranodashboard/local/local_settings.d/_50_murano.py into
  horizon/openstack_dashboard/local/local_settings.d/_50_murano.py
* muranodashboard/conf/murano_policy.json into
  horizon/openstack_dashboard/conf/

So I have tried.

[root@rdo-poc ~(keystone_admin)]# cp /usr/lib/python2.7/site-packages/muranodashboard/local/enabled/*.py /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_50_dashboard_catalog.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_51_muranodashboard.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_60_panel_group_browse.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_63_panel_murano_catalog.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_70_panel_group_manage.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_71_panel_murano_packages.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_72_panel_murano_images.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_73_panel_murano_categories.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_80_panel_group_applications.py’? y
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_81_panel_applications_environments.py’? y

[root@rdo-poc ~(keystone_admin)]# cp /usr/lib/python2.7/site-packages/muranodashboard/local/local_settings.d/_50_murano.py /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_50_murano.py
cp: overwrite ‘/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_50_murano.py’? y

[root@rdo-poc ~(keystone_admin)]# mkdir /usr/share/openstack-dashboard/openstack_dashboard/conf
[root@rdo-poc ~(keystone_admin)]# cp /usr/lib/python2.7/site-packages/muranodashboard/conf/murano_policy.json /usr/share/openstack-dashboard/openstack_dashboard/conf/

[root@rdo-poc ~(keystone_admin)]# systemctl restart httpd

But anyway ... It doesn't work for me. Horizone only works after removing the package "openstack-murano-ui.noarch"

Regards, Oleg

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-11-08 05:01:40 -0600

Seen: 31 times

Last updated: Nov 09 '17