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

Emilien Macchi emilien at redhat.com
Wed Nov 18 14:14:56 UTC 2015


I think we are working on this kind of bug:
https://review.openstack.org/#/c/241218/


On 11/18/2015 01:40 PM, Davíð Örn Jóhannsson wrote:
> This seem to have to do
> with /usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/scss/horizon.scss
> is not being present.
> 
> 
> Package: python-django-horizon
> State: installed
> Automatically installed: yes
> Version: 1:2015.1.2-0ubuntu1~cloud0
> Priority: extra
> Section: python
> Maintainer: Chuck Short <zulcss at ubuntu.com>
> Architecture: all
> Uncompressed Size: 12.0 M
> Depends: python-babel (>= 1.3), python-ceilometerclient (>= 1.0.6),
> python-cinderclient (>= 1:1.1.0), python-compressor (>= 1.3), python-django
>          (>= 1.4.2), python-django-pyscss (>= 1.0.3), python-eventlet
> (>= 0.16.1), python-glanceclient (>= 1:0.15.0), python-heatclient (>=
>          0.3.0), python-httplib2 (>= 0.7.5), python-iso8601 (>= 0.1.9),
> python-keystoneclient (>= 1:1.0.0), python-kombu (>= 2.5.0),
>          python-memcache, python-netaddr (>= 0.7.12),
> python-neutronclient (>= 1:2.3.11), python-novaclient (>= 1:2.18.0),
> python-openstack-auth
>          (>= 1.1.7), python-oslo-concurrency (>= 1.4.1),
> python-oslo-config (>= 1:1.9.0), python-oslo-i18n (>= 1.3.0),
> python-oslo-serialization
>          (>= 1.2.0), python-oslo-utils (>= 1.2.0), python-pbr (>= 0.6),
> python-pint (>= 0.5), python-pyscss (>= 1.2.1), python-saharaclient (>=
>          0.7.6), python-six (>= 1.9.0), python-swiftclient (>= 1:2.2.0),
> python-troveclient (>= 1:1.0.7), python-tz (>= 2013.6), python-yaml (>=
>          3.1.0), python:any (>= 2.7.5-5~), python:any (< 2.8)
> Recommends: memcached​
> 
> 
> 
> ------------------------------------------------------------------------
> *Frá:* Davíð Örn Jóhannsson
> *Sent:* 18. nóvember 2015 12:02
> *Til:* openstack-operators at lists.openstack.org
> *Efni:* [Openstack-operators] OpenStack Horizon puppet module error
> python manage.py compress
>  
> 
> 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?
> 
> 
> 
> 
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
> 

-- 
Emilien Macchi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20151118/ec5eb528/attachment.pgp>


More information about the OpenStack-operators mailing list