restarting service fails with error PolicyException when there is table with 0 arity

Bug #1515890 reported by Anusha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
Undecided
Anusha

Bug Description

Creating rules with multiple arities succeeds but fails when restarting the service. This happens when one of the rule arity is 0.

Steps to reproduce:
-----------------------------

1. openstack congress policy rule create test 'test_rule()' -- succeeds
2. openstack congress policy rule create test 'test_rule(x):- y(x)' -- succeeds

But on restarting the service fails with error -
PolicyException: Literal test_rule() contained 0 arguments but only 1 arguments are permitted.

Hence unable to start service until the rule is manually deleted from database.

Anusha (anusha-iiitm)
Changed in congress:
assignee: nobody → Anusha (anusha-iiitm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

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

commit a7fe040eeb3c59dc844b1a467553109c93bd3deb
Author: Anusha Ramineni <email address hidden>
Date: Fri Nov 13 13:00:11 2015 +0530

    Fix PolicyException on restarting service

    Current behaviour allows to create two tables with multiple arities
    if one of the arity is 0. But loading the same rules
    on restarting the service fails. This commit is to fix the same.

    Change-Id: I133532658c421d09640419cef7857cf5eaa864d9
    Closes-Bug:#1515890

Changed in congress:
status: New → Fix Committed
Tim Hinrichs (thinrichs)
Changed in congress:
status: Fix Committed → Fix Released
Tim Hinrichs (thinrichs)
Changed in congress:
milestone: none → mitaka-1
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.