[Openstack-operators] OpenStack Horizon puppet module error python manage.py compress

Davíð Örn Jóhannsson davidoj at siminn.is
Wed Nov 18 12:02:19 UTC 2015


I'm currently trying to automate horizon setup with https://github.com/openstack/puppet-horizon/blob/stable/kilo/manifests/init.pp? module but I recieve an OfflineGenerationError:


You have offline compression enabled but key "695212a2a24c10ba077ec76c387aa922" is missing from offline manifest. You may need to run "python manage.py compress".


The module tries to run the following command:


/usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear && /usr/share/openstack-dashboard/manage.py compress --force


But it results in the following error:


Deleting 'bootstrap/js/bootstrap-datepicker.js'
Deleting 'bootstrap/js/bootstrap.js'
Copying '/usr/lib/python2.7/dist-packages/horizon/static/bootstrap/js/bootstrap-datepicker.js'
Copying '/usr/lib/python2.7/dist-packages/horizon/static/bootstrap/js/bootstrap.js'

2 static files copied.
Found 'compress' tags in:
/usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html
/usr/lib/python2.7/dist-packages/horizon/templates/horizon/_conf.html
/usr/lib/python2.7/dist-packages/horizon/templates/horizon/_scripts.html
CommandError: An error occured during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html: 'dashboard/less/horizon.less' could not be found in the COMPRESS_ROOT '/usr/share/openstack-dashboard/static' or with staticfiles.?

Any Ideas to how one might fix this?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20151118/695d57c6/attachment.html>


More information about the OpenStack-operators mailing list