Installing heat dashboard breaks Horizon (Queens)

asked 2018-07-06 19:11:26 -0600

dv3 gravatar image

Hi,

I am installing OpenStack Queens from scratch in CentOS using the following link:
https://docs.openstack.org/install-guide/ (https://docs.openstack.org/install-gu...)
and have installed Nova, Keystone, Neutron, Glance, Cinder, Heat, Horizon. The horizon UI is working as I can access it from the UI and I am able to create instances too.

As I didn't see any Orchestration tab and after reading the following I understood that heat UI is packaged as a separate horizon plugin from now on.
https://docs.openstack.org/releasenotes/heat-dashboard/queens.html (https://docs.openstack.org/releasenot...)

So I followed the link to install it and when I restart httpd service, it gives an error
https://docs.openstack.org/heat-dashboard/latest/install/index.html (https://docs.openstack.org/heat-dashb...)

The systemctl gives the following error:

> /usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force -v0 (code=exited, status=1/FAILURE)
> CommandError: An error occurred during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html: 'horizon/js/horizon.tables_inline_edit.js' could not be found in the  COMPRESS_ROOT  '/usr/share/openstack-dashboard/static' or with staticfiles.

and so I manually ran the commands present in
/usr/lib/systemd/system/httpd.service.d/openstack-dashboard.conf

and found out that the collectstatic keeps deleting this JavaScript file
/usr/share/openstack-dashboard/static/horizon/js/horizon.tables_inline_edit.js

causing the next command compress to fail.

I am following the documentation and have repeatedly tried to install heat-dashboard using the default values. Is the heat-dashboard not tested fully or am I missing some step.

Steps to reproduce: 1. Install Horizon
https://docs.openstack.org/horizon/queens/install/install-rdo.html (https://docs.openstack.org/horizon/qu...)
2. Install Heat Dashboard
https://docs.openstack.org/heat-dashboard/latest/install/index.html (https://docs.openstack.org/heat-dashb...)
3. And get the following error;

systemctl status httpd.service

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: failed (Result: exit-code) since Fri 2018-07-06 16:06:18 UTC; 22s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 12931 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 11679 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
  Process: 12984 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force -v0 (code=exited, status=1/FAILURE)
  Process: 12953 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=0/SUCCESS)
 Main PID: 11679 (code=exited, status=0/SUCCESS)

journalctl -xe

Jul 06 16:06:18 standalone-infra python[12984]: CommandError: An error occurred during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.h
Jul 06 16:06:18 standalone-infra python[12984]: Compressing... 
Jul 06 16:06:18 standalone-infra systemd[1]: httpd.service: control process exited, code=exited status=1 
Jul 06 16:06:18 standalone-infra systemd[1]: Failed to start The Apache HTTP Server.
edit retag flag offensive close merge delete