← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1476439] Re: update_metadata for flavors and images shows blank. static basePath not set correctly.

 

** No longer affects: horizon/kilo

-- 
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/1476439

Title:
  update_metadata for flavors and images  shows blank.  static basePath
  not set correctly.

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Currently using OpenStack Kilo on CentOS 7. Issue is with:

  openstack-dashboard-2015.1.0-7.el7.noarch
  /usr/share/openstack-dashboard/static/angular/widget.module.js

  When using the update_metadata feature in horizon in the flavors and
  images section, the meta data table is not displayed. Have also seen
  this cause problems when using heat.

  The basePath in the javascript is not being set correctly and
  resulting in a redirect loop:

  [Tue Jul 21 00:14:22.097739 2015] [core:error] [pid 14453] (36)File
  name too long: [client ] AH00036: access to
  /dashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboardauth/login/
  failed (filesystem path
  '/var/www/html/dashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboarddashboardauth')

  I was able to fix by modifying the widget.module.js file

  $ diff -u /usr/share/openstack-dashboard/static/angular/widget.module.js.orig /usr/share/openstack-dashboard/static/angular/widget.module.js
  --- /usr/share/openstack-dashboard/static/angular/widget.module.js.orig       2015-07-21 00:55:07.641502063 +0000
  +++ /usr/share/openstack-dashboard/static/angular/widget.module.js      2015-07-21 00:41:37.476953146 +0000
  @@ -17,6 +17,6 @@
       'hz.widget.metadata-display',
       'hz.framework.validators'
     ])
  -    .constant('basePath', '/static/angular/');
  +    .constant('basePath', '/dashboard/static/angular/');
   
   })();

  Ideally this file should not need to be modified and should be
  generated using WEBROOT in local_settings, alternatively documentation
  should be updated if this file must be modified by hand.

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


References