[data processing] After update to use "data-processing", no sahara panels show up

Bug #1429987 reported by Chad Roberts
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Chad Roberts

Bug Description

Recently, horizon was updated to use "data-processing" as the service type for Sahara. That change went through without updating the permissions checks in each panel. They are still using data_processing...

permissions = ('openstack.services.data-processing',)

Each panel needs to be updated to the following:

permissions = ('openstack.services.data_processing',)

Tags: sahara
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/162736

Changed in horizon:
assignee: nobody → Chad Roberts (croberts)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/162736
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=f4781d87966c9f1288d5c1898a1c6b4ac673c3d6
Submitter: Jenkins
Branch: master

commit f4781d87966c9f1288d5c1898a1c6b4ac673c3d6
Author: Chad Roberts <email address hidden>
Date: Mon Mar 9 15:32:13 2015 -0400

    Fixing permissions for data processing panels

    Recently, the data processing service was renamed to
    "data-processing" rather than "data_processing". Each
    panel needs to be updated so that it will show up when
    the data-processing service is enabled. Also updated
    the underlying test data to reflect the update.

    Change-Id: I38d7350215cbe5c5f406d75d6be7c9057957bc69
    Closes-Bug: #1429987

Changed in horizon:
status: In Progress → Fix Committed
Changed in horizon:
milestone: none → kilo-3
importance: Undecided → High
Revision history for this message
David Lyle (david-lyle) wrote :

Hopefully anyone who's already deployed sahara and registered it with the service catalog finds this update and makes the appropriate changes. Not sure just a full swap was the right answer.

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

You're right, maybe we should be updating the permission check to do an data-processing OR data_processing instead

Revision history for this message
Chad Roberts (croberts) wrote : Re: [Bug 1429987] Re: [data processing] After update to use "data-processing", no sahara panels show up

I agree that using an OR is probably the better way to go to be sure of backward compatibility. Perhaps I'm just being a bit dense here, but I'm not sure what that would look like code-wise. Suggestions?

----- Original Message -----
From: "Lin Hua Cheng" <email address hidden>
To: <email address hidden>
Sent: Tuesday, March 10, 2015 12:56:58 PM
Subject: [Bug 1429987] Re: [data processing] After update to use "data-processing", no sahara panels show up

You're right, maybe we should be updating the permission check to do an
data-processing OR data_processing instead

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1429987

Title:
  [data processing] After update to use "data-processing", no sahara
  panels show up

Status in OpenStack Dashboard (Horizon):
  Fix Committed

Bug description:
  Recently, horizon was updated to use "data-processing" as the service
  type for Sahara. That change went through without updating the
  permissions checks in each panel. They are still using
  data_processing...

  permissions = ('openstack.services.data-processing',)

  Each panel needs to be updated to the following:

  permissions = ('openstack.services.data_processing',)

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

Revision history for this message
Chad Roberts (croberts) wrote :

I agree that using an OR is probably the better way to go to be sure of backward compatibility. Perhaps I'm just being a bit dense here, but I'm not sure what that would look like code-wise. Suggestions?

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

We have to make the service-catalog lookup smarter too: to check first if data_processing is available before trying out data-processing

https://github.com/openstack/horizon/commit/8c4a2cd1265c86d3493b82cb9d1277a2274f63cf#diff-9f28a3f6402460cf88564d4e601dd9a7

Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-3 → 2015.1.0
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.