head-only rule fails to make policy table

Bug #1658263 reported by Eric K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
Medium
Unassigned

Bug Description

(openstack) congress policy create new
+--------------+--------------------------------------+
| Field | Value |
+--------------+--------------------------------------+
| abbreviation | new |
| description | |
| id | 71b75b39-c6de-4aaa-be8e-1ee040ec16ef |
| kind | nonrecursive |
| name | new |
| owner_id | user |
+--------------+--------------------------------------+
(openstack) congress policy rule create new 'p(0)'
+---------+--------------------------------------+
| Field | Value |
+---------+--------------------------------------+
| comment | |
| id | 2ee165e3-8065-4dad-8272-78d6bd8b2334 |
| name | None |
| rule | p(0) |
+---------+--------------------------------------+
(openstack) congress policy row list new p
Not Found::table 'p' doesn't exist (HTTP 404) (Request-ID: req-7065d85c-b6b2-4145-9db5-e4351ae1b362)
(openstack) congress policy rule create new 'p(x) :- q(x)'
+---------+--------------------------------------+
| Field | Value |
+---------+--------------------------------------+
| comment | |
| id | d8e1fca3-2cbb-4c62-923d-473d83a17412 |
| name | None |
| rule | p(x) :- |
| | q(x) |
+---------+--------------------------------------+
(openstack) congress policy row list new p
+------+
| Col0 |
+------+
| 0 |
+------+
(openstack) congress policy rule delete new d8e1fca3-2cbb-4c62-923d-473d83a17412
(openstack) congress policy rule list new
// ID: 2ee165e3-8065-4dad-8272-78d6bd8b2334
// Name: None
p(0)

(openstack) congress policy row list new p
Not Found::table 'p' doesn't exist (HTTP 404) (Request-ID: req-cdc4c39a-2388-48d9-8ae8-d010799081e4)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/427992
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=cfecb039b9b20aaa6bdd775cf9821f058eb99c37
Submitter: Jenkins
Branch: master

commit cfecb039b9b20aaa6bdd775cf9821f058eb99c37
Author: Eric K <email address hidden>
Date: Wed Feb 1 18:37:11 2017 -0800

    Add tables contributed by atomic rules

    datalog/* fail to consider tables contributed by atomic rules,
    leading to the problem that user cannot list rows from the
    policy table.

    This change adds the tables contributed by atomic rules.
    This patch is a quick fix intended to have minimal risk
    of disrupting other things (for example by introducing a new
    optional argument for new behavior). More permanent fix is
    needed that respects the abstractions intended by
    congress/datalog/*.

    Closes-Bug: 1658263

    Change-Id: Ie0fd108ebcae01b1f136ff7e859e25b5253a788d

Changed in congress:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/congress 5.0.0.0rc1

This issue was fixed in the openstack/congress 5.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/444526

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on congress (stable/newton)

Change abandoned by Eric Kao (<email address hidden>) on branch: stable/newton
Review: https://review.openstack.org/444526
Reason: Not critical.

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.