Horizon dashboard local/enabled directory not present in horizon container

Bug #1782717 reported by Sean Murphy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Unassigned

Bug Description

In the kolla-ansible horizon queens container (ubuntu, binary), the directory

/usr/lib/python2.7/site-packages/openstack_dashboard/local/enabled

does not exist. This has implications when enabling optional dashboards
(eg heat) which assume the directory exists - see config_heat_dashboard
in kolla_extend_start.

When optional dashboards are required, kolla_extend_start fails when
trying to copy necessary files for the optional dashboards into the
above directory and consequently the container start process fails and
the container terminates.

Our ugly hack was to add

mkdir -p /usr/lib/python2.7/site-packages/openstack_dashboard/local/enabled

to the top of the kolla_extend_start file which solved the problem.

Revision history for this message
Gustavo (gfioreit) wrote :

Same issue here:

cp: cannot create regular file '/usr/lib/python2.7/site-packages/openstack_dashboard/local/enabled/_1610_project_orchestration_panel.py': No such file or directory

Sean Murphy : Where did you add the line "mkdir -p /usr/lib/python2.7/site-packages/openstack_dashboard/local/enabled"? In the container?

Thank you.

Revision history for this message
Sean Murphy (murp) wrote :

See line 5 in https://pastebin.com/50qfZexx

You can also (manually) modify contents of your /etc/kolla/horizon directory to insert this modified file into the container. (Of course this breaks the automation which is kolla's main point, but I'm assuming this bug will be fixed quickly and this workaround will only be necessary for a short time).

root@tell01:/etc/kolla/horizon# diff config.json config.json.old
16,21d15
< },
< {
< "source": "/var/lib/kolla/config_files/kolla_extend_start.modified",
< "dest": "/usr/local/bin/kolla_extend_start",
< "owner": "horizon",
< "perm": "0744"
root@tell01:/home/ubuntu/kolla/horizon#

Revision history for this message
Gustavo (gfioreit) wrote :

Thanks Sean!

Changed in kolla-ansible:
status: New → 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.