ImportError: No module named openstack_auth

Bug #1036571 reported by Emilien Macchi
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Gabriel Hurley
horizon (Ubuntu)
Fix Released
Undecided
Adam Gandelman

Bug Description

Hi,

I'm working on Folsom-3 Testing Packages [1].

- apt-get install -y libapache2-mod-wsgi openstack-dashboard

- Go to URL : http://<my-host>/horizon

- 500 Error : Internal Server Error [2]

[1] https://launchpad.net/~openstack-ubuntu-testing/+archive/folsom-trunk-testing
[2] http://paste.openstack.org/show/EyhyxBVx737WaWlwDkQs/

description: updated
description: updated
description: updated
Revision history for this message
Emilien Macchi (emilienm) wrote :

I fixed all the issues with this method :

pip install django_openstack_auth
pip install django_compressor
apt-get install -y lessc
mkdir -p /usr/share/openstack-dashboard/bin/less/
ln -s $(which lessc) /usr/share/openstack-dashboard/bin/less/lessc
ln -s /usr/share/openstack-dashboard/openstack_dashboard/static /usr/share/openstack-dashboard/static
chown -R www-data:www-data /usr/share/openstack-dashboard/openstack_dashboard/static

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Hey Emilien-

Thanks so much for the detailed report. Some of the dependencies are/will be satisified by new packages that are trickling into the Ubuntu archive. When those are satisfied, I'll update the packaging to include the required steps you've noted.

Changed in horizon (Ubuntu):
assignee: nobody → Adam Gandelman (gandelman-a)
status: New → Confirmed
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

This is a dependency issue in the downstream package which is correctly targeted here. Closing for the main horizon project.

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
status: New → Invalid
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Still trying to figure out how best to handle the lessc dependency. But in the meantime, I've updated the package in the PPA to include the new dependency and the relevant symlinking that you've described. There should be packages in the PPA soon that reflect these changes. However, I'm still getting an error on some panels that need horizon/js/horizon.js:

UncompressableFileError: 'horizon/js/horizon.js' isn't accesible via COMPRESS_URL ('/static/') and can't be compressed, referer: http://nova.235.home.base/nova

Revision history for this message
Emilien Macchi (emilienm) wrote :

That's strange, it's working for me with the procedures I wrote here. Do you have compression working for other pages ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package horizon - 2012.2~f3-0ubuntu1

---------------
horizon (2012.2~f3-0ubuntu1) quantal; urgency=low

  [ Chuck Short ]
  * New upstream release.
  * debian/patches/fix-ubuntu-tests.patch: Fix test suites again to
    run during the builds.
  * debian/watch: Update.
  * debian/control: Add python-glanceclient. (LP: #1030911)
  * debian/openstack-dashboard.conf: Don't hijack apache's webroot. (LP:
    #1020313)
  * debian/control: Update horizon deps to reflect reality.

  [ Adam Gandelman ]
  * debian/control: Bump required python-django version to 1.4.
  * wrap-and-sort.
  * Fix (LP: #1036571):
      - debian/rules, openstack-dashboard.{links, dirs, postinst}: Add required
        symlinks and directories to allow Horizon to function with the packaged
        lessc.
      - debian/control: Add python-{cinder, swift, quantum}client,
        python-django-openstack-auth, python-netaddr, python-compressor, lessc.
  * debian/rules: Improve dh_auto_clean.
 -- Chuck Short <email address hidden> Thu, 16 Aug 2012 14:01:33 -0500

Changed in horizon (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
kesten broughton (dathomir) wrote :

I'm seeing this when trying to add savannadashboard to horizon.

/bin/sh: /usr/share/openstack-dashboard/bin/less/lessc: No such file or directory

will try the work-around

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.