← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1293727] [NEW] Removing admin and/or project dashboard causes error on login

 

Public bug reported:

I was trying to replace the admin dashboard with a new plugin dashboard
of my own.  I added the correct files in
openstack_dashboard/local/enabled to disable the admin dashboard, and to
plug in my new dashboard.  I implemented my own get_user_home() function
which returned the new dashboard, and set the correct value in
local_settings.py.  But, after login, I got an error saying that the
admin dashboard was not registered.  (See the attached screenshot.)

The admin dashboard not being registered makes perfect sense, but it
doesn't make sense that Horizon would even try to access it.

I believe the problem is in the splash() function in
openstack_dashboard/views.py -- specifically, it directly calls the
get_user_home() function in the same module.  When I change that call to
"horizon.get_user_home(request.user)" it seems to work correctly.

** Affects: horizon
     Importance: Undecided
         Status: New

** Attachment added: "Screenshot of error report"
   https://bugs.launchpad.net/bugs/1293727/+attachment/4028852/+files/NotRegistered.png

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1293727

Title:
  Removing admin and/or project dashboard causes error on login

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  I was trying to replace the admin dashboard with a new plugin
  dashboard of my own.  I added the correct files in
  openstack_dashboard/local/enabled to disable the admin dashboard, and
  to plug in my new dashboard.  I implemented my own get_user_home()
  function which returned the new dashboard, and set the correct value
  in local_settings.py.  But, after login, I got an error saying that
  the admin dashboard was not registered.  (See the attached
  screenshot.)

  The admin dashboard not being registered makes perfect sense, but it
  doesn't make sense that Horizon would even try to access it.

  I believe the problem is in the splash() function in
  openstack_dashboard/views.py -- specifically, it directly calls the
  get_user_home() function in the same module.  When I change that call
  to "horizon.get_user_home(request.user)" it seems to work correctly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1293727/+subscriptions


Follow ups

References