Status API for a rule doesn't work after Congress restarts
Bug #1507329 reported by
Masahito Muroi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
congress |
Fix Released
|
Undecided
|
Masahito Muroi |
Bug Description
Loaded rule's info, id, name, original_str and so on, are set to different from original info persisted in DB after Congress restarts. It causes status API for a rule error.
When Policy Engine starts, it loads persisted rules in DB but doesn't put these into Rule instances Policy Engine maintains in itself. In this case, Status API returns 'could not find rule' error as a response of the API for rule even though an user calls the API with correct URL with correct parameters.
Changed in congress: | |
assignee: | nobody → Masahito Muroi (muroi-masahito) |
Changed in congress: | |
status: | New → In Progress |
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/237026 /git.openstack. org/cgit/ openstack/ congress/ commit/ ?id=19dd02831ec 995c4bcabc256ba c1b0dde5088bb5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 19dd02831ec995c 4bcabc256bac1b0 dde5088bb5
Author: Masahito Muroi <email address hidden>
Date: Mon Oct 19 23:48:15 2015 +0900
Sets loaded rule info to Rule instances
Policy Engine initializes Rule instances when Congress starts
if rules are persited in db. The bug is that Policy Engine only
loads persited rule string but doesn't set other infomation,
id, name and comment. This patch lets Policy Engine set the
lacked infomations to Rule instance.
Closes-Bug: #1507329 5938406473e2f34 4e726bd2f3c
Change-Id: Id8354d9bff0d5b