Horizon unable to show details for some policy tables

Bug #1454883 reported by Janet Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Triaged
Medium
Unassigned

Bug Description

Clicking on one of the Policy Data Table Name column links in the Data Sources page results in an error about being unable to get the schema for the table, when the table name looks like <datasource>:<tablename> and <tablename> is not actually a table in <datasource>. This table name format is needed for action names, to indicate on which service to execute the action.

When Horizon doesn't find <tablename> in <datasource>, it should proceed with using the entire <datasource>:<tablename> string as the name of a policy table.

Tags: horizon
Janet Yu (jwy)
Changed in congress:
assignee: nobody → Janet Yu (jwy)
Tim Hinrichs (thinrichs)
Changed in congress:
importance: Undecided → Medium
Revision history for this message
Aimee Ukasick (aimeeu) wrote :
Eric K (ekcs)
Changed in congress:
milestone: none → ocata-2
Tim Hinrichs (thinrichs)
Changed in congress:
assignee: Janet Yu (jwy) → nobody
Eric K (ekcs)
Changed in congress:
milestone: ocata-2 → ocata-3
Revision history for this message
Eric K (ekcs) wrote :

To reproduce (assuming there is a datasource named 'nova'):

$ openstack congress policy create policy1
$ openstack congress policy rule create policy1 'p(x) :- nova:q(x)'

Then navigate to the 'policy1' policy, scroll down to click on the table 'nova:q' in under 'Policy Table Data'

To obtain the error:
Error: Unable to get rows in table "nova:q", data source "policy1": Internal Server Error::Known table but unknown arity for 'nova:q' in policy 'policy1' (HTTP 500) (Request-ID: req-b9712b75-5b4f-4d93-8e91-b26f05eb5543)

Changed in congress:
status: New → Triaged
milestone: ocata-3 → none
Eric K (ekcs)
tags: added: horizon
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.