Comment 3 for bug 1643964

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I was able to recreate this on a zesty machine from source. Here are the steps I used:

Created a zesty container:

lxc launch ubuntu-daily:zesty
lxc exec useful-redbird /bin/bash

In the container:

sudo apt install git
git clone https://github.com/openstack/horizon.git
cd horizon/
git checkout 11.0.0.0b1
sudo apt update
sudo apt install python-pip
cd -
git clone https://github.com/openstack/requirements.git

cd horizon/
sudo pip install . -c ../requirements/upper-constraints.txt

adduser --system horizon
addgroup --system horizon
usermod -a -G horizon horizon

mkdir /usr/share/openstack-dashboard
mkdir /var/lib/openstack-dashboard
cp manage.py /usr/share/openstack-dashboard/manage.py
cp ./openstack_dashboard/settings.py /usr/share/openstack-dashboard/settings.py

mkdir /etc/openstack-dashboard/
cp ./openstack_dashboard/local/local_settings.py.example /etc/openstack-dashboard/local_settings.py
rsync -avrz ./openstack_dashboard/ /usr/share/openstack-dashboard/openstack_dashboard/

ln -s /usr/share/openstack-dashboard/openstack_dashboard/static /usr/share/openstack-dashboard/static
ln -s /etc/openstack-dashboard/local_settings.py /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py
ln -s /usr/local/lib/python2.7/dist-packages/horizon/static/horizon/ /usr/share/openstack-dashboard/openstack_dashboard/static/horizon

sudo python /usr/share/openstack-dashboard/manage.py collectstatic --noinput
sudo python /usr/share/openstack-dashboard/manage.py compress --force

output from compress:

root@enhanced-catfish:~/horizon# sudo python /usr/share/openstack-dashboard/manage.py compress --force
Found 'compress' tags in:
        /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_conf.html
        /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
        /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html
Compressing... CommandError: An error occurred during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html: '\"../bower_components/respond/dest/respond.min.js\"' is
n't accessible via COMPRESS_URL ('/static/') and can't be compressed