[murano] Horizon is unavailable after creating symlink for murano dashboard

Bug #1518981 reported by Anastasia Kuznetsova
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Alexey Deryugin

Bug Description

Steps to reproduce:
1. Deploy environment using fuel custom ISO 723
2. After environment deployment, manually create symlinks to murano-dashboard enabling by executing following command at every controller:
ln -s /usr/lib/python2.7/dist-packages/openstack_dashboard/enabled/_50_murano.py /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/ && service apache2 restart
3. Try to open Horizon

Observed result:
Internal Server Error in UI
and following error in horizon.log at master node:
...
2015-11-23T13:37:12.230013+00:00 err: [Mon Nov 23 13:37:05.761057 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] self._wrapped = self._setupfunc()
2015-11-23T13:37:12.230013+00:00 err: [Mon Nov 23 13:37:05.761066 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/horizon/base.py", line 820, in url_patterns
2015-11-23T13:37:12.230013+00:00 err: [Mon Nov 23 13:37:05.761081 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] return self._urls()[0]
2015-11-23T13:37:12.230013+00:00 err: [Mon Nov 23 13:37:05.761102 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/horizon/base.py", line 855, in _urls
2015-11-23T13:37:12.230013+00:00 err: [Mon Nov 23 13:37:05.761116 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] include(dash._decorated_urls)))
2015-11-23T13:37:12.230013+00:00 err: [Mon Nov 23 13:37:05.761125 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/horizon/base.py", line 531, in _decorated_urls
2015-11-23T13:37:12.230013+00:00 err: [Mon Nov 23 13:37:05.761138 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] include(panel._decorated_urls)))
2015-11-23T13:37:12.230013+00:00 err: [Mon Nov 23 13:37:05.761148 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/horizon/base.py", line 304, in _decorated_urls
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761161 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] urlpatterns = self._get_default_urlpatterns()
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761170 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/horizon/base.py", line 110, in _get_default_urlpatterns
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761183 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] urls_mod = import_module('.urls', package_string)
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761193 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 46, in import_module
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761207 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] __import__(name)
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761216 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/muranodashboard/packages/urls.py", line 17, in <module>
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761230 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] from muranodashboard.packages import views
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761239 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/muranodashboard/packages/views.py", line 42, in <module>
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761252 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] from muranodashboard.api import packages as pkg_api
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761262 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/muranodashboard/api/packages.py", line 21, in <module>
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761275 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] from muranodashboard.common import cache
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761284 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/dist-packages/muranodashboard/common/cache.py", line 28, in <module>
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761298 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] os.makedirs(OBJS_PATH)
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761307 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/os.py", line 150, in makedirs
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761320 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] makedirs(head, mode)
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761329 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] File "/usr/lib/python2.7/os.py", line 157, in makedirs
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761342 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] mkdir(name, mode)
2015-11-23T13:37:12.230874+00:00 err: [Mon Nov 23 13:37:05.761362 2015] [:error] [pid 11757:tid 140562464442112] [remote 192.168.0.4:6727] OSError: [Errno 13] Permission denied: '/var/cache/muranodashboard-cache'

Changed in fuel:
status: New → Confirmed
Maciej Relewicz (rlu)
tags: added: area-library
Dmitry Pyzhov (dpyzhov)
tags: added: area-mos
removed: area-library
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

This bug is blocker for QA team, please, fix it as soon as we can.

Changed in fuel:
importance: High → Critical
tags: added: blocker-for-qa
Changed in fuel:
assignee: Alexey Deryugin (velovec) → MOS Packaging Team (mos-packaging)
assignee: MOS Packaging Team (mos-packaging) → Daniil Trishkin (dtrishkin)
Changed in fuel:
assignee: Daniil Trishkin (dtrishkin) → Alexey Deryugin (velovec)
status: Confirmed → In Progress
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Nastya, please keep in mind that step (2) from STR _is not required_ to add murano-dashboard to horizon. It's already there after the deployment, check file /usr/share/openstack-dashboard/openstack_dashboard/enabled/murano.py

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

s/murano.py/_50_murano.py/

Revision history for this message
Alexey Deryugin (velovec) wrote :
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to puppet-modules/puppet-murano (mos-8.0)

Fix proposed to branch: mos-8.0
Change author: Alexey Deryugin <email address hidden>
Review: https://review.fuel-infra.org/14670

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to puppet-modules/puppet-murano (mos-8.0)

Reviewed: https://review.fuel-infra.org/14670
Submitter: Denis Egorenko <email address hidden>
Branch: mos-8.0

Commit: 312358cf68bb1ad256916b5a4a980e5c6468d590
Author: Alexey Deryugin <email address hidden>
Date: Mon Dec 14 16:19:56 2015

Fix incorrect default metadata_dir and api_url parameters

According to murano-dashboard package murano::dashboard points
to incorrect metadata_dir by default.

Also, since Murano dashboard can use Keystone to locate Murano API,
murano::dashboard parameter api_url should not be set by default.

Change-Id: I9e121b6097afe471ad2914b1fc02624b3b36c1ca
Closes-Bug: #1518981

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :

Patch was merged in downstream. Fuel library tag isn't updated yet

Changed in fuel:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/258025

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/258025
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=fcc3c074a8f6f61026b6885b0b0e0c32ae7096e3
Submitter: Jenkins
Branch: master

commit fcc3c074a8f6f61026b6885b0b0e0c32ae7096e3
Author: Alexey Deryugin <email address hidden>
Date: Tue Dec 15 20:31:36 2015 +0300

    Fix incorrect metadata_dir for murano::dashboard

    According to murano-dashboard package murano::dashboard points
    to incorrect metadata_dir by default.

    Downstream fix is merged, so we need to update tag for puppet-murano.
    Downstream Fix: https://review.fuel-infra.org/#/c/14670/

    Change-Id: Ibd083bdfabff60f7a6fe4eac42056794b8dc237f
    Closes-Bug: #1518981

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Kuznetsova (akuznetsova) wrote :

Verified on:
ERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "328"
  build_id: "328"
  fuel-nailgun_sha: "ec25ae8df28e1f1d87da653c5aab2711dff729f6"
  python-fuelclient_sha: "7c7a756fb6a3d091851c060003a2965c67aa353d"
  fuel-agent_sha: "d354cbe61b055db848a15ce66fb7ae92178d2c0a"
  fuel-nailgun-agent_sha: "a33a58d378c117c0f509b0e7badc6f0910364154"
  astute_sha: "c56dfde2da034151a7e707b381c4cf9d213b4ba2"
  fuel-library_sha: "bcc3d042a47547f6ad826360a85ef21dcaf25882"
  fuel-ostf_sha: "b2ebf15a3530b5c7b57707acf8642c1c3ac71bd8"
  fuel-mirror_sha: "8100acb3a566358d0d4ecc66de32d39626263028"
  fuelmenu_sha: "2942a85796d37f09ba8c8c6d762d8813292cf0d4"
  shotgun_sha: "cacb93cbc28910ff0dc38f30a855efa9af50d8ce"
  network-checker_sha: "d443ef47abeda58d319bc8d33d5005dd09440a02"
  fuel-upgrade_sha: "718aa3d7021fee2970f0fa6791cf5188578cc516"
  fuelmain_sha: "3faa824728ce60734abe602ff3778976f8a16eed"

Changed in fuel:
status: Fix Committed → 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.