Comment 6 for bug 1643964

Revision history for this message
Richard Jones (r1chardj0n3s) wrote :

I've reduced the steps to reproduce down to:

  apt-get update
  apt install git python-pip
  git clone https://github.com/openstack/horizon.git
  git clone https://github.com/openstack/requirements.git
  cd horizon
  git checkout 11.0.0.0b1
  pip install . -c ../requirements/upper-constraints.txt
  mkdir /usr/share/openstack-dashboard
  mkdir /var/lib/openstack-dashboard
  cp manage.py /usr/share/openstack-dashboard/manage.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
  python /usr/share/openstack-dashboard/manage.py collectstatic --noinput
  python /usr/share/openstack-dashboard/manage.py compress --force

Which, you might note, already has the settings.py copy command removed (that file is ignored). When I remove the spurious links (marked * above) the compress works as intended. Those links are not necessary to the correct collection of static files, and in fact confuse the heck out of things.