OSError: [Errno 13] Permission denied: for murano dashboard

Bug #1282613 reported by Tatyanka
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Dmitry Teselkin

Bug Description

Reproduced on the following environment:
Centos with Neutron GRE and Murano

Steps To Reproduce:
Deploy 1 controller + 2 compute
try to navigate to horizon

Expected Result:
Horizon is available

Actual Result:
500 Internal error
Trace in httpd
http://paste.openstack.org/show/67638/

on controller
[root@node-4 httpd]# ls -all /var/cache/murano/
total 16
drwxrw-rw- 4 root root 4096 Feb 20 13:22 .
drwxr-xr-x. 10 root root 4096 Feb 20 13:20 ..
drwxr-xr-x 4 murano murano 4096 Feb 20 13:22 muranoconductor-cache
drwxrw-rw- 2 apache apache 4096 Feb 14 11:48 muranodashboard-cache

[root@node-4 httpd]# ls -all /var/www/html/
total 8
drwxr-xr-x 2 root root 4096 Oct 1 11:27 .
drwxr-xr-x 6 root root 4096 Feb 20 13:18 ..

{"build_id": "2014-02-19_12-19-41", "mirantis": "no", "build_number": "162", "nailgun_sha": "a3fedc45a4f74418a5d56efa5f8170a55ce53d9a", "ostf_sha": "f86abe5544b5ffcf621e0c450bca15737c92361f", "fuelmain_sha": "0b9ba969d1cff3d9de78d9feb4fb0f4539fc74de", "astute_sha": "581643fb9ace27282150fa3951660a9796acb867", "release": "4.1", "fuellib_sha": "8f5fc7f397646933ffba3acab8bb665756caa58b"}

Tags: murano
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :
Changed in fuel:
importance: Undecided → High
assignee: nobody → Timur Nurlygayanov (tnurlygayanov)
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

reproduced on 169 iso too
Steps
Deploy netron gre - verify horizon - all ok
reset environments
add murano - redeploy - verify horizon - 500 error with the same traceback

Mike Scherbakov (mihgen)
Changed in fuel:
status: New → Confirmed
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

I will test it with the latest iso.

Changed in fuel:
status: Confirmed → In Progress
Mike Scherbakov (mihgen)
Changed in fuel:
importance: High → Critical
Changed in fuel:
assignee: Timur Nurlygayanov (tnurlygayanov) → Igor Yozhikov (iyozhikov)
Revision history for this message
Igor Yozhikov (iyozhikov) wrote :
Changed in fuel:
status: In Progress → Fix Committed
Mike Scherbakov (mihgen)
Changed in fuel:
status: Fix Committed → Triaged
Revision history for this message
Mike Scherbakov (mihgen) wrote :

Issue still exists for Ubuntu: [Errno 13] Permission denied: '/var/cache/murano/muranodashboard-cache'

Actually rights are pretty unusual, allowed write for everyone: drwxrw-rw- 3 murano murano 4096 Feb 23 23:10 murano/
this becomes security issue.

Revision history for this message
Mike Scherbakov (mihgen) wrote :

chmod 755 is likely right access rights. Any reason to expand rights more than 755?

Revision history for this message
Mike Scherbakov (mihgen) wrote :

After manual chmod & chown -R www-data.www-data, I had to do ./manage.py syncdb (it was complaining about missing schema in DB), and then I got the following error:

Error during template rendering

In template /usr/lib/python2.7/dist-packages/horizon/templates/horizon/common/_sidebar.html, error at line 7

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Fixed in internal packages repository: https://gerrit.mirantis.com/#/c/10670
Verified on the latest Fuel ISO, looks good, this bug description marked as 'fix commited'

Changed in fuel:
status: Triaged → Fix Committed
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

This issue is not completely fixed and reproduced on CentOS. Need to add fixes for file access in CentOS specs too.

Changed in fuel:
status: Fix Committed → Confirmed
assignee: Igor Yozhikov (iyozhikov) → Dmitry Teselkin (teselkin-d)
summary: - OSError: [Errno 13] Permission denied: for murano dashboard
+ CentOS: OSError: [Errno 13] Permission denied: for murano dashboard
description: updated
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote : Re: CentOS: OSError: [Errno 13] Permission denied: for murano dashboard

Reproduced on the latest ISO with Ubuntu installation. Need to fix.

Mike Scherbakov (mihgen)
summary: - CentOS: OSError: [Errno 13] Permission denied: for murano dashboard
+ OSError: [Errno 13] Permission denied: for murano dashboard
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Need to retest on the latest ISO

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

This issues reproduced on 189 ISO and we should retest on the latest, more stable ISO.

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Fixed in 214 ISO. Verified on CentOS + Murano and Ubuntu + Murano.

Changed in fuel:
status: Confirmed → Fix Committed
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

{
build_id: "2014-02-28_01-17-30",
mirantis: "yes",
build_number: "225",
nailgun_sha: "12a7e7a99557f2bc302f0806ad3beef02e94b974",
ostf_sha: "ceb3ea8c2c0da27306b30b9936f27dbc5044d2c6",
fuelmain_sha: "ba019bf15a9597a154e7c1d6ecc840614d21414c",
astute_sha: "f15f5615249c59c826ea05d26707f062c88db32a",
release: "4.1",
fuellib_sha: "61d3a150402da3ce1160836c8d659f6d9d1f9640"
}

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.