muranodashboard-cache stored in /tmp keeps deleting

Bug #1850040 reported by Eduardo David Paredes Vara on 2019-10-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Undecided
Unassigned
kolla-ansible
Medium
Unassigned

Bug Description

What happened:
Since muranodashboard-cache is stored by Horizon container in /tmp (needs to be some space to upload images)this can be deleted by another proccess.
This cause some type of "corrupted" interface that doesn't allow you to choose any app.

This can be solved by executing
docker exec -tiu horizon horizon mkdir -p /tmp/muranodashboard-cache/apps
on affected controllers but is not a real solution.

What you expected to happen:
Since user horizon is able to write on /tmp and this data is cache stored on /tmp it should be recreated by horizon without help.

Environment:
OS: Centos7
Kolla-Ansible version 7.1.2
Docker image Install type: binary
Docker image distribution: Centos (From Docker Hub)

description: updated
Mark Goddard (mgoddard) wrote :

It's not clear to me how creating the directory helps here. Could you explain? Are you going to propose a fix?

Hi Mark

If /tmp/muranodashboard-cache doesn't exist murano's UI fails when you try to choose an application.

If muranodashboard-cache it's going to be placed in a directory like /tmp it should be able to recreate this dir at least, but it isn't.

Maybe it's not a big deal but at least it's lame. I would love to propose a fix but I'm not sure when it is created or if I can choose where. Just changing where it creates should be enough.

Creating a directory with docker exec -tiu horizon horizon mkdir -p /tmp/muranodashboard-cache/apps it's just a workaround, cause /tmp keeps cleaning 'itself'.

Mark Goddard (mgoddard) wrote :

You could try adding something to docker/horizon/extend_start.sh in kolla, which runs every time the container starts up. There is a function called config_murano_dashboard which should work.

Changed in kolla-ansible:
status: New → Triaged
importance: Undecided → Medium
Radosław Piliszek (yoctozepto) wrote :

So it seems it gets created on each horizon start by murano-dashboard.

Not sure how kolla-ansible can help here except for forcing it to be moved to a more persistent location.

Does something run to clean /tmp dir?

Could you elaborate on when the deletion happens?

Horizon uses host's /tmp dir. It is the only container which does so.

Changed in murano:
status: New → Confirmed
Changed in kolla-ansible:
status: Triaged → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers