restarting service fails with error PolicyException when there is table with 0 arity
Bug #1515890 reported by
Anusha
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.
Changed in congress: | |
assignee: | nobody → Anusha (anusha-iiitm) |
Changed in congress: | |
status: | Fix Committed → Fix Released |
Changed in congress: | |
milestone: | none → mitaka-1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/245017 /git.openstack. org/cgit/ openstack/ congress/ commit/ ?id=a7fe040eeb3 c59dc844b1a4675 53109c93bd3deb
Committed: https:/
Submitter: Jenkins
Branch: master
commit a7fe040eeb3c59d c844b1a46755310 9c93bd3deb
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: I133532658c421d 09640419cef7857 cf5eaa864d9 Bug:#1515890
Closes-